RemoteFS: volume cascade delete fails

Bug #1681406 reported by Lucian Petrut on 2017-04-10
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Undecided
Lucian Petrut

Bug Description

Attempting to delete a volume along with its snapshots fails for RemoteFS based drivers. The reason is that that the driver expects the volume status to be 'available', 'in-use' or 'backing-up', while in this situation the volume status would be 'deleting'.

Trace: http://paste.openstack.org/raw/606034/

Most of those drivers apply locks to the volume/snapshot deletion methods, so it should be safe to just add 'deleting' to the list of acceptable volume states for this operation.

description: updated

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

Changed in cinder:
assignee: nobody → Lucian Petrut (petrutlucian94)
status: New → In Progress

Reviewed: https://review.openstack.org/455256
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=78a532cdd672307f78397b5a1afa5386f47c5a07
Submitter: Jenkins
Branch: master

commit 78a532cdd672307f78397b5a1afa5386f47c5a07
Author: Lucian Petrut <email address hidden>
Date: Mon Apr 10 14:08:34 2017 +0300

    RemoteFS: fix volume cascade delete

    Attempting to delete a volume along with its snapshots fails for
    RemoteFS based drivers. The reason is that that the driver expects
    the volume status to be 'available', 'in-use' or 'backing-up',
    while in this situation the volume status would be 'deleting'.

    Most of those drivers apply locks to the volume/snapshot deletion
    methods, so it should be safe to just add 'deleting' to the list of
    acceptable volume states for this operation.

    Change-Id: I1242d03fb6bbbd40ac2dace1aa865a6f91c22d23
    Closes-Bug: #1681406

Changed in cinder:
status: In Progress → Fix Released

This issue was fixed in the openstack/cinder 11.0.0.0b2 development milestone.

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

Other bug subscribers