Bug 1371903 - Can't do image-create for suspended instance booted from volume
Summary: Can't do image-create for suspended instance booted from volume
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 9.0 (Mitaka)
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: async
: 9.0 (Mitaka)
Assignee: Kashyap Chamarthy
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
: 1373609 (view as bug list)
Depends On:
Blocks: 1387617
TreeView+ depends on / blocked
 
Reported: 2016-08-31 12:08 UTC by Tzach Shefi
Modified: 2023-02-22 23:02 UTC (History)
11 users (show)

Fixed In Version: openstack-nova-13.1.1-5.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1373609 1387617 (view as bug list)
Environment:
Last Closed: 2016-09-21 14:09:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Nova Cinder httpd and Horizon logs (345.19 KB, application/x-gzip)
2016-08-31 12:08 UTC, Tzach Shefi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1492716 0 None None None 2016-08-31 12:08:07 UTC
Red Hat Product Errata RHBA-2016:1916 0 normal SHIPPED_LIVE openstack-nova bug fix advisory 2016-09-21 18:06:17 UTC

Description Tzach Shefi 2016-08-31 12:08:08 UTC
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

Comment 2 Kashyap Chamarthy 2016-09-01 17:58:42 UTC
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

Comment 6 Kashyap Chamarthy 2016-09-06 18:08:36 UTC
*** Bug 1373609 has been marked as a duplicate of this bug. ***

Comment 10 Prasanth Anbalagan 2016-09-15 12:23:26 UTC
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.

Comment 12 errata-xmlrpc 2016-09-21 14:09:09 UTC
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


Note You need to log in before you can comment on or make changes to this bug.