OpenStack Compute (Nova)

Can't delete a volume that has snapshots

Reported by Anthony Young on 2012-03-29
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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)

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

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

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) on 2012-04-05
Changed in nova:
milestone: essex-rc2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers