Current check_can_live_migrate_destination trys to get instance info
by call self._conn.lookupByName(instance_name) on the destination
host before migrating. Because the instance is not on the destination
host yet, it failes with InstanceNotFound.
This fix gets the available disk size of the destination side.
On the source side, checks whether the above space is enough before
migrating.
Reviewed: https:/ /review. openstack. org/12784 github. com/openstack/ nova/commit/ b006e6bcb4b5803 9663b5ee0d0b007 cf42245e49
Committed: http://
Submitter: Jenkins
Branch: master
commit b006e6bcb4b5803 9663b5ee0d0b007 cf42245e49
Author: Jian Wen <email address hidden>
Date: Tue Sep 11 20:57:14 2012 +0800
libvirt: Fix live block migration
Current check_can_ live_migrate_ destination trys to get instance info lookupByName( instance_ name) on the destination
by call self._conn.
host before migrating. Because the instance is not on the destination
host yet, it failes with InstanceNotFound.
This fix gets the available disk size of the destination side.
On the source side, checks whether the above space is enough before
migrating.
Fixes bug 1044237
Change-Id: I20f64e1f858280 49b697a4b1173ba c8e5779d45a