Stack snapshot fails for volume in use

Bug #1687006 reported by Thomas Herve
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Thomas Herve

Bug Description

I tried to do a stack snapshot on a stack with a used volume, and got:

BadRequest: Invalid volume: Backing up an in-use volume must use the force flag

We need to force the backup in that case.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/461034

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to heat (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/465592

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/465593

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on heat (master)

Change abandoned by Thomas Herve (<email address hidden>) on branch: master
Review: https://review.openstack.org/461034
Reason: Split the patch, but didn't keep the change id.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to heat (master)

Reviewed: https://review.openstack.org/465592
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=42e3d02dbf311e6e0d6ce87ccfb218499b09a4a9
Submitter: Jenkins
Branch: master

commit 42e3d02dbf311e6e0d6ce87ccfb218499b09a4a9
Author: Thomas Herve <email address hidden>
Date: Wed May 17 16:06:33 2017 +0200

    Fix restore with convergence

    Handle the restore operation as a normal convergence update instead of a
    legacy one.

    Change-Id: I6ee46cdf7a8fdf89c58c9812d08af21c97fb0f9e
    Related-Bug: #1687006

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/465593
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=b2f990d6c87475015866c8644762dabc3f88eea1
Submitter: Jenkins
Branch: master

commit b2f990d6c87475015866c8644762dabc3f88eea1
Author: Thomas Herve <email address hidden>
Date: Wed May 17 16:08:19 2017 +0200

    Fix snapshot/restore of volumes

    This fixes the snapshot of the volume resource by passing the force
    flag, and the restore by detaching it properly beforehand.

    Change-Id: I69936a12fe6bca44ee445cdfe0cedb38a5926f32
    Closes-Bug: #1687006

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 9.0.0.0b2

This issue was fixed in the openstack/heat 9.0.0.0b2 development milestone.

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/474513

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to heat (stable/ocata)

Related fix proposed to branch: stable/ocata
Review: https://review.openstack.org/474514

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

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/474515

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to heat (stable/newton)

Related fix proposed to branch: stable/newton
Review: https://review.openstack.org/474516

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to heat (stable/ocata)

Reviewed: https://review.openstack.org/474514
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=32533868734ebb0315297e2f5fec4d737a0c62d2
Submitter: Jenkins
Branch: stable/ocata

commit 32533868734ebb0315297e2f5fec4d737a0c62d2
Author: Thomas Herve <email address hidden>
Date: Wed May 17 16:06:33 2017 +0200

    Fix restore with convergence

    Handle the restore operation as a normal convergence update instead of a
    legacy one.

    Change-Id: I6ee46cdf7a8fdf89c58c9812d08af21c97fb0f9e
    Related-Bug: #1687006
    (cherry picked from commit 42e3d02dbf311e6e0d6ce87ccfb218499b09a4a9)

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

Reviewed: https://review.openstack.org/474513
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=1530f8e5c7893298425fa599cb44206b98c92338
Submitter: Jenkins
Branch: stable/ocata

commit 1530f8e5c7893298425fa599cb44206b98c92338
Author: Thomas Herve <email address hidden>
Date: Wed May 17 16:08:19 2017 +0200

    Fix snapshot/restore of volumes

    This fixes the snapshot of the volume resource by passing the force
    flag, and the restore by detaching it properly beforehand.

    Change-Id: I69936a12fe6bca44ee445cdfe0cedb38a5926f32
    Closes-Bug: #1687006
    (cherry picked from commit b2f990d6c87475015866c8644762dabc3f88eea1)

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

Reviewed: https://review.openstack.org/474515
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=ce421c2e34e2b1610689ac64d6be6997185e5ba0
Submitter: Jenkins
Branch: stable/newton

commit ce421c2e34e2b1610689ac64d6be6997185e5ba0
Author: Thomas Herve <email address hidden>
Date: Wed May 17 16:08:19 2017 +0200

    Fix snapshot/restore of volumes

    This fixes the snapshot of the volume resource by passing the force
    flag, and the restore by detaching it properly beforehand.

    Change-Id: I69936a12fe6bca44ee445cdfe0cedb38a5926f32
    Closes-Bug: #1687006
    (cherry picked from commit b2f990d6c87475015866c8644762dabc3f88eea1)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 7.0.6

This issue was fixed in the openstack/heat 7.0.6 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 8.0.4

This issue was fixed in the openstack/heat 8.0.4 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to heat (stable/newton)

Reviewed: https://review.openstack.org/474516
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=cd290793de506c678622d3294ddb94f62ce44f42
Submitter: Jenkins
Branch: stable/newton

commit cd290793de506c678622d3294ddb94f62ce44f42
Author: Thomas Herve <email address hidden>
Date: Wed May 17 16:06:33 2017 +0200

    Fix restore with convergence

    Handle the restore operation as a normal convergence update instead of a
    legacy one.

    Change-Id: I6ee46cdf7a8fdf89c58c9812d08af21c97fb0f9e
    Related-Bug: #1687006
    (cherry picked from commit 42e3d02dbf311e6e0d6ce87ccfb218499b09a4a9)
    (cherry picked from commit 32533868734ebb0315297e2f5fec4d737a0c62d2)

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.