Activity log for bug #1605720

Date Who What changed Old value New value Message
2016-07-22 18:19:13 Chris Friesen bug added bug
2016-07-22 19:02:52 Diana Clarke bug added subscriber Diana Clarke
2016-07-22 19:48:07 Chris Friesen summary backing store missing for ephemeral disk on migration with boot-from-vol backing store missing for ephemeral disk on cold migration
2016-07-22 19:49:02 Chris Friesen description I'm on stable/mitaka, but the master code looks similar. I have compute nodes configured to use qcow2 and libvirt. The flavor has an ephemeral disk and a swap disk. I boot an instance with this flavor, and the instance is boot-from-volume. When I try to cold-migrate the instance, I get an error: 2016-07-21 23:33:48.561 46340 ERROR nova.compute.manager [instance: 4e52bfd8-0c71-48dc-89fb-6f6b31dc06bb] libvirtError: Cannot access backing file '/etc/nova/instances/_base/ephemeral_1_0706d66' of storage file '/etc/nova/instances/4e52bfd8-0c71-48dc-89fb-6f6b31dc06bb/disk.eph0' (as uid:0, gid:0): No such file or directory The problem seems to be that in nova.virt.libvirt.driver.LibvirtDriver.finish_migration() we call self._create_image(...block_device_info=None...) Down in _create_image() we handle the case of a "disk.local" ephemeral device, but that doesn't help because the device is actually named "disk.eph0". It looks like we then try to loop over any ephemerals in block_device_info, but that's None so we don't handle any of those (which is too bad since it looks like they would be named correctly). The end result is that we have a qcow2 "disk.eph0" image, but with potentially no backing store in <instances_path>/_base. When we tell libvirt to start the instance, this results in the above error. I'm on stable/mitaka, but the master code looks similar. I have compute nodes configured to use qcow2 and libvirt. The flavor has an ephemeral disk and a swap disk, with root disk size of "0" for auto-size. I boot an instance with this flavor. When I try to cold-migrate the instance, I get an error: 2016-07-21 23:33:48.561 46340 ERROR nova.compute.manager [instance: 4e52bfd8-0c71-48dc-89fb-6f6b31dc06bb] libvirtError: Cannot access backing file '/etc/nova/instances/_base/ephemeral_1_0706d66' of storage file '/etc/nova/instances/4e52bfd8-0c71-48dc-89fb-6f6b31dc06bb/disk.eph0' (as uid:0, gid:0): No such file or directory The problem seems to be that in nova.virt.libvirt.driver.LibvirtDriver.finish_migration() we call self._create_image(...block_device_info=None...) Down in _create_image() we handle the case of a "disk.local" ephemeral device, but that doesn't help because the device is actually named "disk.eph0". It looks like we then try to loop over any ephemerals in block_device_info, but that's None so we don't handle any of those (which is too bad since it looks like they would be named correctly). The end result is that we have a qcow2 "disk.eph0" image, but with potentially no backing store in <instances_path>/_base. When we tell libvirt to start the instance, this results in the above error.
2016-07-25 15:45:24 Chris Friesen nova: assignee Chris Friesen (cbf123)
2016-08-02 16:15:46 Maciej Szankin nova: status New In Progress
2016-10-05 12:44:01 OpenStack Infra nova: assignee Chris Friesen (cbf123) Feodor Tersin (ftersin)
2016-10-31 18:46:52 shewless bug added subscriber shewless
2016-11-01 06:14:19 Dr. Jens Harbott bug added subscriber Dr. Jens Rosenboom
2016-11-16 00:36:43 melanie witt nova: importance Undecided Medium
2016-11-16 00:37:10 melanie witt tags compute compute libvirt
2016-11-16 21:57:21 OpenStack Infra nova: status In Progress Fix Released
2017-02-10 22:49:29 Matt Riedemann nominated for series nova/newton
2017-02-10 22:49:29 Matt Riedemann bug task added nova/newton
2017-02-10 22:49:36 Matt Riedemann nova/newton: status New In Progress
2017-02-10 22:49:40 Matt Riedemann nova/newton: importance Undecided Medium
2017-02-10 22:49:45 Matt Riedemann nova/newton: assignee Lee Yarwood (lyarwood)
2017-02-10 22:51:55 Matt Riedemann nova: assignee Feodor Tersin (ftersin) Chris Friesen (cbf123)
2017-02-11 01:23:23 OpenStack Infra nova/newton: status In Progress Fix Committed
2017-08-01 10:13:41 Manish Kumar bug added subscriber Manish Kumar