Created attachment 1196325 [details] Nova Cinder httpd and Horizon logs Description of problem: Didn't find any reference on bugzilla to same upstream bug LP 1492716, I tested this on Kilo and Mitaka with Packstack, hitting same problem. If you boot an instance from a Cinder bootable volume then pause the instance, you can't take a snapshot (image-create) of the paused instance, always fails with: Horizon error: Error: Unable to create snapshot. # grep -ir createImage /var/log/ /var/log/nova/nova-api...... HTTP exception thrown: Cannot 'createImage' instance 325816b2-2da3-4986-bee0-bf1fa6c620f7 while it is in vm_state paused HTTP exception thrown: Cannot 'createImage' instance ....while it is in vm_state paused /var/log/horizon/horizon.log: WARNING horizon.exceptions Recoverable error: Cannot 'createImage' instance 325816b2-2da3-4986-bee0-bf1fa6c620f7 while it is in vm_state paused (HTTP 409) BTW if you do same test with an instance booted from a Glance image rather than Cinder volume works fine. Version-Release number of selected component (if applicable): RHEL7.2 On Kilo python-nova-2015.1.4-13.el7ost.noarch python-novaclient-2.23.0-5.el7ost.noarch openstack-nova-common-2015.1.4-13.el7ost.noarch openstack-nova-compute-2015.1.4-13.el7ost.noarch And Mitaka as well. openstack-nova-common-13.1.1-2.el7ost.noarch openstack-nova-compute-13.1.1-2.el7ost.noarch python-novaclient-3.3.1-1.el7ost.noarch python-nova-13.1.1-2.el7ost.noarch How reproducible: Every time. Steps to Reproduce: 1. Boot instance from a Cinder bootable volume. 2. Pause the instance 3. Try to make a snapshot of that paused instance. Actual results: Fails to create snapshot. Expected results: Should create snapshot without errors. Additional info: On attached logs relevant InstanceID:dfe950ef-1f53-4a69-85b8-b4d1bbdffc1d VolumeID: aadc3b53-5db3-4438-a340-553e7d68159f
This just needs a backport of the upstream patch[1]. I'll take care of it. commit cf82f524bf3a5c7986e4a33872762163b9541235 Author: Rui Chen <chenrui.momo> Date: Tue Sep 15 10:34:14 2015 +0800 Create image for suspended instance booted from volume The suspended instance's power state is power-off on hypervisor, so it's no reason to limit the suspended instance booted from volume to create image, add the suspended state to allowing list of snapshot_volume_backed(). Change-Id: Id3457cd54af9b581b79eccc5d44a97dbdc63232e Closes-Bug: #1492716 [1] https://git.openstack.org/cgit/openstack/nova/commit/?id=cf82f52
*** Bug 1373609 has been marked as a duplicate of this bug. ***
The summary (title) and description are misleading. The fix works on SUSPENDED state, while the reporter has mentioned 'PAUSED'. The following upstream discussion shows that taking a snapshot of instance in PAUSED state is not safe. https://review.openstack.org/#/c/295865/ Still the issue of creating snapshot in SUSPSENDED state is valid. So the backport is valid. So moving the bug to VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-1916.html