Invalid snapshot is created from volume backed instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
An incorrect snapshot is created from volume backed instance booted from volume. The snapshot doesn't have disk_format and container_format attributes. As a result booting from the snapshot fails.
Environment: DevStack
Steps to reproduce:
1 Create bootable volume
$ cinder create --image-id xxx 1
Note. I used cirros-
2 Boot instance from volume
$ nova boot --flavor m1.nano --block-device id=yyy,
inst
3 Create instance snapshot
$ nova image-create inst snap
4 Boot instance from snapshot
$ nova boot --flavor m1.nano --image snap inst1
The last command's output:
ERROR (InternalServer
Nova api log:
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack File "/opt/stack/
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack base_image_meta = _translate_
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack File "/opt/stack/
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack image_meta = _extract_
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack File "/opt/stack/
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack output[attr] = getattr(image, attr)
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack File "/opt/stack/
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack return self.__getattr__(k)
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack File "/opt/stack/
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack raise AttributeError(k)
2014-05-22 15:10:48.084 12610 TRACE nova.api.openstack AttributeError: disk_format
6 Check instance snapshot attributes
$ glance image-show snap
Rows for disk and container format are absent.
The problem is in _action_
Changed in nova: | |
assignee: | nobody → Feodor Tersin (ftersin) |
status: | New → Confirmed |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/95522
Review: https:/