yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #64963
[Bug 1546778] Re: libvirt: resize with deleted backing image fails
** Changed in: nova/liberty
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1546778
Title:
libvirt: resize with deleted backing image fails
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) kilo series:
Won't Fix
Status in OpenStack Compute (nova) liberty series:
Fix Released
Bug description:
Once the glance image from which an instance was spawned is deleted,
resizes of that image fail if they would take place across more than
one compute node. Migration and live block migration both succeed.
Resize fails, I believe, because 'qemu-img resize' is called
(https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L7218-L7221)
before the backing image has been transferred from the source compute
node
(https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L7230-L7233).
Replication requires two compute nodes. To replicate:
1. Boot an instance from an image or snapshot.
2. Delete the image from Glance.
3. Resize the instance. It will fail with an error similar to:
Stderr: u"qemu-img: Could not open '/var/lib/nova/instances/f77f1c5c-
71f7-4645-afa1-dd30bacef874/disk': Could not open backing file: Could
not open
'/var/lib/nova/instances/_base/ca94b18d94077894f4ccbaafb1881a90225f1224':
No such file or directory\n"
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1546778/+subscriptions
References