Cells v1 does not properly support evacuate when destination node is provided.
If a destination node is provided, evacuated instance will stay
in 'REBUILDING' state forever.
The evacuate method expects host to be the actual node name,
not one with complete cell_path. Stripping the cell_path from the host
fixes the problem.
NOTE(mriedem): The test_compute_cells test is modified slightly to
hard-code the instance uuid since the uuids sentinel code was not
in liberty.
Closes-bug: #1552046
Change-Id: Ib48990100ecc02325d323c8e933a859fa839a1a2
(cherry picked from commit 022802997c10fc4ed56b1e1875cd7ccb16cc0688)
Reviewed: https:/ /review. openstack. org/287831 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=4e1957f084e 34baac7da30780a bade03a32fcd45
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 4e1957f084e34ba ac7da30780abade 03a32fcd45
Author: Mathieu Gagné <email address hidden>
Date: Thu Sep 24 13:43:27 2015 -0400
Fix evacuate support with Nova cells v1
Cells v1 does not properly support evacuate when destination node is provided.
If a destination node is provided, evacuated instance will stay
in 'REBUILDING' state forever.
The evacuate method expects host to be the actual node name,
not one with complete cell_path. Stripping the cell_path from the host
fixes the problem.
NOTE(mriedem): The test_compute_cells test is modified slightly to
hard-code the instance uuid since the uuids sentinel code was not
in liberty.
Closes-bug: #1552046 325d323c8e933a8 59fa839a1a2 ed56b1e1875cd7c cb16cc0688)
Change-Id: Ib48990100ecc02
(cherry picked from commit 022802997c10fc4