kolla can not work with nova migrate and nova resize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
High
|
Jeffrey Zhang | ||
Mitaka |
Fix Released
|
High
|
Jeffrey Zhang |
Bug Description
In the current implement of nova migrate and nova resize, the data will be copy /var/lib/
But in the Kolla, we run the nova-compute in a container and the /var/lib/
This is a very critical issue and need to be solved in Mitaka.
A possible solution is:
1. start a sshd container at 8022 port, which hold the nova_compute volume at /var/lib/nova
2. add a ssh config in the nova_compute container to change the default host port to 8022
in this way, the nova migrate and nova resize will work.
Changed in kolla: | |
assignee: | nobody → Jeffrey Zhang (jeffrey4l) |
tags: | added: rc-backport-potential |
Changed in kolla: | |
importance: | Critical → High |
When migrating, I think nova is searching for the instance’s data in /var/lib/nova/ on the compute host and kolla mounts the instance’s data at /var/lib/ docker/ volumes/ nova_compute/ _data/ on the compute host.
Would it work if /var/lib/nova/ on the compute host is symlinked to /var/lib/ docker/ volumes/ nova_compute/ _data on docker/ volumes/ nova_compute/ _data/ on
the compute host, and the "nova" user is given access to /var/lib/
the compute host so that rsync/ssh works when “nova migrate” is run ?
ln -s /var/lib/ docker/ volumes/ nova_compute/ _data /var/lib/nova
Another approach. If state_path in nova.conf is changed to /var/lib/ docker/ volumes/ nova_compute/ _data so that the instance’s data is at /var/lib/ docker/ volumes/ nova_compute/ _data/ both inside the nova_compute container as well as outside on the compute host ? This approach also needs to give "nova" user access to /var/lib/ docker/ volumes/ nova_compute/ _data/ on the compute host.
https:/ /github. com/openstack/ kolla/blob/ master/ ansible/ roles/nova/ templates/ nova.conf. j2#L9