Reviewed: https://review.openstack.org/590611 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=fbc91183ffa32e881ca5cf15758f5f602401acc0 Submitter: Zuul Branch: stable/ocata
commit fbc91183ffa32e881ca5cf15758f5f602401acc0 Author: Sivasathurappan Radhakrishnan <email address hidden> Date: Wed Nov 23 00:17:47 2016 +0000
Fix host validity check for live-migration
When live migrating instance to invalid host, live migration fails with host not found and sets instance task state to migrating.
This change handles host validity in API layer before changing instance task_state to 'MIGRATING' and raise proper exception on invalid host.
Change-Id: I7c5e80298b9adf1bd53cc6c464a3744b5397b7e8 Related-Bug: #1643623 Closes-Bug: #1785031 (cherry picked from commit c7aed3d139909913387e4ac2e771f19c9502c5b1) (cherry picked from commit 064daf9aeb39a7f977de4989ad096821e7830ff6)
Reviewed: https:/ /review. openstack. org/590611 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=fbc91183ffa 32e881ca5cf1575 8f5f602401acc0
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit fbc91183ffa32e8 81ca5cf15758f5f 602401acc0
Author: Sivasathurappan Radhakrishnan <email address hidden>
Date: Wed Nov 23 00:17:47 2016 +0000
Fix host validity check for live-migration
When live migrating instance to invalid host, live migration fails
with host not found and sets instance task state to migrating.
This change handles host validity in API layer before changing instance
task_state to 'MIGRATING' and raise proper exception on invalid host.
Change-Id: I7c5e80298b9adf 1bd53cc6c464a37 44b5397b7e8 3387e4ac2e771f1 9c9502c5b1) 977de4989ad0968 21e7830ff6)
Related-Bug: #1643623
Closes-Bug: #1785031
(cherry picked from commit c7aed3d13990991
(cherry picked from commit 064daf9aeb39a7f