When nova is used without shared_storage and glance doesn't have the
images required by the instance anymore, the live block migration code
can't prepare the destination host properly.
This patch catches the case when images are not found in glance, and
copies the missing images from the source host, like the
migrate_disk_and_power_off code already does.
The KVM disk deep copy method is not used because it won't work for AMI
image that depends of AKI/ARI image. kernel and initrd are not considered
by the kvm disk migration because they are readonly file (by the kvm pov)
used only to boot the VM.
Reviewed: https:/ /review. openstack. org/90321 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3345ca029fd 2527eec8de365a3 7779fd37809398
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3345ca029fd2527 eec8de365a37779 fd37809398
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Apr 25 10:39:48 2014 +0200
libvirt: Fix migration when image doesn't exist
When nova is used without shared_storage and glance doesn't have the
images required by the instance anymore, the live block migration code
can't prepare the destination host properly.
This patch catches the case when images are not found in glance, and disk_and_ power_off code already does.
copies the missing images from the source host, like the
migrate_
The KVM disk deep copy method is not used because it won't work for AMI
image that depends of AKI/ARI image. kernel and initrd are not considered
by the kvm disk migration because they are readonly file (by the kvm pov)
used only to boot the VM.
Co-Authored-By: Sahid Orentino Ferdjaoui <email address hidden>
Closes-bug: #1270825
Change-Id: If81f8b1bbe3e73 8579ffe2d8f3680 7afb77560d8