Unable to createImage/snapshot paused volume backed instances

Bug #1878583 reported by Lee Yarwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Lee Yarwood
Queens
Fix Released
Low
Elod Illes
Rocky
Fix Released
Low
Elod Illes
Stein
Fix Released
Low
Elod Illes
Train
Fix Released
Low
Unassigned
Ussuri
Fix Released
Low
Lee Yarwood

Bug Description

Description
===========
Unable to createImage/snapshot paused volume backed instances.

Steps to reproduce
==================
- Pause a volume backed instance
- Attempt to snapshot the instance using the createImage API

Expected result
===============
A snapshot image is successfully created as is the case for paused instances that are not volume backed.

Actual result
=============
n-api returns the following error:

{'code': 409, 'message': "Cannot 'createImage' instance bc5a7ae4-fca9-4d83-b1b8-5534f51a9404 while it is in vm_state paused"}

Environment
===========
1. Exact version of OpenStack you are running. See the following
  list for all releases: http://docs.openstack.org/releases/

   master

2. Which hypervisor did you use?
   (For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
   What's the version of that?

   N/A

2. Which storage type did you use?
   (For example: Ceph, LVM, GPFS, ...)
   What's the version of that?

   N/A

3. Which networking type did you use?
   (For example: nova-network, Neutron with OpenVSwitch, ...)

   N/A

Logs & Configs
==============

As above.

Changed in nova:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/728011

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.opendev.org/728011
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=cfde53e4b402e71d7f53b6e0ab232854dba160dc
Submitter: Zuul
Branch: master

commit cfde53e4b402e71d7f53b6e0ab232854dba160dc
Author: Lee Yarwood <email address hidden>
Date: Thu May 14 10:49:07 2020 +0100

    compute: Allow snapshots to be created from PAUSED volume backed instances

    Iabeb44f843c3c04f767c4103038fcf6c52966ff3 allowed snapshots to be
    created from PAUSED non-volume backed instances but missed the volume
    backed use case.

    This change simply adds PAUSED to the list of acceptable vm_states when
    creating a snapshot from a volume backed instance in addition to the
    already supported ACTIVE, STOPPED and SUSPENDED vm_states.

    Closes-Bug: #1878583
    Change-Id: I9f95a054de9d43ecaa50ff7ffc9343490e212d53

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/729174

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/729175

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/729176

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/729177

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/729178

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/ussuri)

Reviewed: https://review.opendev.org/729174
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a270eeeb9b1a65045c3a8bf3cfad5eee6415f63c
Submitter: Zuul
Branch: stable/ussuri

commit a270eeeb9b1a65045c3a8bf3cfad5eee6415f63c
Author: Lee Yarwood <email address hidden>
Date: Thu May 14 10:49:07 2020 +0100

    compute: Allow snapshots to be created from PAUSED volume backed instances

    Iabeb44f843c3c04f767c4103038fcf6c52966ff3 allowed snapshots to be
    created from PAUSED non-volume backed instances but missed the volume
    backed use case.

    This change simply adds PAUSED to the list of acceptable vm_states when
    creating a snapshot from a volume backed instance in addition to the
    already supported ACTIVE, STOPPED and SUSPENDED vm_states.

    Closes-Bug: #1878583
    Change-Id: I9f95a054de9d43ecaa50ff7ffc9343490e212d53
    (cherry picked from commit cfde53e4b402e71d7f53b6e0ab232854dba160dc)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/train)

Reviewed: https://review.opendev.org/729175
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c93ca609568bac73210f39207c821867620b2f0e
Submitter: Zuul
Branch: stable/train

commit c93ca609568bac73210f39207c821867620b2f0e
Author: Lee Yarwood <email address hidden>
Date: Thu May 14 10:49:07 2020 +0100

    compute: Allow snapshots to be created from PAUSED volume backed instances

    Iabeb44f843c3c04f767c4103038fcf6c52966ff3 allowed snapshots to be
    created from PAUSED non-volume backed instances but missed the volume
    backed use case.

    This change simply adds PAUSED to the list of acceptable vm_states when
    creating a snapshot from a volume backed instance in addition to the
    already supported ACTIVE, STOPPED and SUSPENDED vm_states.

    Closes-Bug: #1878583
    Change-Id: I9f95a054de9d43ecaa50ff7ffc9343490e212d53
    (cherry picked from commit cfde53e4b402e71d7f53b6e0ab232854dba160dc)
    (cherry picked from commit a270eeeb9b1a65045c3a8bf3cfad5eee6415f63c)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/stein)

Reviewed: https://review.opendev.org/729176
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=04a8399f1d0ce38bb3089c6c4cb3e11da924b2ae
Submitter: Zuul
Branch: stable/stein

commit 04a8399f1d0ce38bb3089c6c4cb3e11da924b2ae
Author: Lee Yarwood <email address hidden>
Date: Thu May 14 10:49:07 2020 +0100

    compute: Allow snapshots to be created from PAUSED volume backed instances

    Iabeb44f843c3c04f767c4103038fcf6c52966ff3 allowed snapshots to be
    created from PAUSED non-volume backed instances but missed the volume
    backed use case.

    This change simply adds PAUSED to the list of acceptable vm_states when
    creating a snapshot from a volume backed instance in addition to the
    already supported ACTIVE, STOPPED and SUSPENDED vm_states.

    Closes-Bug: #1878583
    Change-Id: I9f95a054de9d43ecaa50ff7ffc9343490e212d53
    (cherry picked from commit cfde53e4b402e71d7f53b6e0ab232854dba160dc)
    (cherry picked from commit a270eeeb9b1a65045c3a8bf3cfad5eee6415f63c)
    (cherry picked from commit c93ca609568bac73210f39207c821867620b2f0e)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/rocky)

Reviewed: https://review.opendev.org/729177
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=35c1846d5cbdf10b08de1ffcd454a67662d32917
Submitter: Zuul
Branch: stable/rocky

commit 35c1846d5cbdf10b08de1ffcd454a67662d32917
Author: Lee Yarwood <email address hidden>
Date: Thu May 14 10:49:07 2020 +0100

    compute: Allow snapshots to be created from PAUSED volume backed instances

    Iabeb44f843c3c04f767c4103038fcf6c52966ff3 allowed snapshots to be
    created from PAUSED non-volume backed instances but missed the volume
    backed use case.

    This change simply adds PAUSED to the list of acceptable vm_states when
    creating a snapshot from a volume backed instance in addition to the
    already supported ACTIVE, STOPPED and SUSPENDED vm_states.

    Closes-Bug: #1878583
    Change-Id: I9f95a054de9d43ecaa50ff7ffc9343490e212d53
    (cherry picked from commit cfde53e4b402e71d7f53b6e0ab232854dba160dc)
    (cherry picked from commit a270eeeb9b1a65045c3a8bf3cfad5eee6415f63c)
    (cherry picked from commit c93ca609568bac73210f39207c821867620b2f0e)
    (cherry picked from commit 04a8399f1d0ce38bb3089c6c4cb3e11da924b2ae)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/queens)

Reviewed: https://review.opendev.org/729178
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=69ae27579d7ac5fdd30efd57dbde62beff86d5ea
Submitter: Zuul
Branch: stable/queens

commit 69ae27579d7ac5fdd30efd57dbde62beff86d5ea
Author: Lee Yarwood <email address hidden>
Date: Thu May 14 10:49:07 2020 +0100

    compute: Allow snapshots to be created from PAUSED volume backed instances

    Iabeb44f843c3c04f767c4103038fcf6c52966ff3 allowed snapshots to be
    created from PAUSED non-volume backed instances but missed the volume
    backed use case.

    This change simply adds PAUSED to the list of acceptable vm_states when
    creating a snapshot from a volume backed instance in addition to the
    already supported ACTIVE, STOPPED and SUSPENDED vm_states.

    Closes-Bug: #1878583
    Change-Id: I9f95a054de9d43ecaa50ff7ffc9343490e212d53
    (cherry picked from commit cfde53e4b402e71d7f53b6e0ab232854dba160dc)
    (cherry picked from commit a270eeeb9b1a65045c3a8bf3cfad5eee6415f63c)
    (cherry picked from commit c93ca609568bac73210f39207c821867620b2f0e)
    (cherry picked from commit 04a8399f1d0ce38bb3089c6c4cb3e11da924b2ae)
    (cherry picked from commit 35c1846d5cbdf10b08de1ffcd454a67662d32917)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova queens-eol

This issue was fixed in the openstack/nova queens-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova rocky-eol

This issue was fixed in the openstack/nova rocky-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.