backing store missing for ephemeral disk on cold migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Chris Friesen | ||
Newton |
Fix Committed
|
Medium
|
Lee Yarwood |
Bug 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, 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.
The problem seems to be that in nova.virt.
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_
summary: |
- backing store missing for ephemeral disk on migration with boot-from-vol + backing store missing for ephemeral disk on cold migration |
description: | updated |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
assignee: | Chris Friesen (cbf123) → Feodor Tersin (ftersin) |
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: libvirt |
Changed in nova: | |
assignee: | Feodor Tersin (ftersin) → Chris Friesen (cbf123) |
The proposed fix is at https:/ /review. openstack. org/#/c/ 346263/