Comment 13 for bug 1270825

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/90321
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=3345ca029fd2527eec8de365a37779fd37809398
Submitter: Jenkins
Branch: master

commit 3345ca029fd2527eec8de365a37779fd37809398
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
    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.

    Co-Authored-By: Sahid Orentino Ferdjaoui <email address hidden>
    Closes-bug: #1270825

    Change-Id: If81f8b1bbe3e738579ffe2d8f36807afb77560d8