Can't delete a volume that has snapshots

Bug #968700 reported by Anthony Young
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Anthony Young

Bug Description

It is not possible to delete volumes that have snapshots, and no explanation is provided to the user when they try to do so.

Steps to reproduce:

> run devstack
> nova volume-create 1
> nova volume-snapshot-create [vol_id]
> nova volume-delete [vol_id]

Expected:

Either successful deletion, or a helpful error message.

Actual:

No error message, and the volume state remains 'available'

$ nova volume-list
+----+-----------+----------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+----+-----------+----------------+------+-------------+-------------+
| 11 | available | myvol-23bd8352 | 1 | None | |
+----+-----------+----------------+------+-------------+-------------+

Changed in nova:
assignee: nobody → Anthony Young (sleepsonthefloor)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Changed in nova:
milestone: none → essex-rc2
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/5983
Committed: http://github.com/openstack/nova/commit/43c63d11417de8624d120ca78a9849d09ffa8cf6
Submitter: Jenkins
Branch: master

commit 43c63d11417de8624d120ca78a9849d09ffa8cf6
Author: Anthony Young <email address hidden>
Date: Thu Mar 29 16:57:19 2012 -0700

    Check that volume has no snapshots before deletion

     * Raise a helpful error message if existing snapshots are detected
     * Fixes bug 968700
     * Fixes bug 968649

    Change-Id: I470db6bd51a103249aae9bfcb2167f0a486732c2

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

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/6015

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (milestone-proposed)

Reviewed: https://review.openstack.org/6015
Committed: http://github.com/openstack/nova/commit/58002218446f62b02e576fc605935675d7d1c7e9
Submitter: Jenkins
Branch: milestone-proposed

commit 58002218446f62b02e576fc605935675d7d1c7e9
Author: Anthony Young <email address hidden>
Date: Thu Mar 29 16:57:19 2012 -0700

    Check that volume has no snapshots before deletion

     * Raise a helpful error message if existing snapshots are detected
     * Fixes bug 968700
     * Fixes bug 968649

    Change-Id: I470db6bd51a103249aae9bfcb2167f0a486732c2

Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-rc2 → 2012.1
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.