Can't delete volume in an error state via the API

Bug #953594 reported by Gabriel Hurley
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Vish Ishaya

Bug Description

Currently there is no way to get rid of a volume in an error state via the API. Attempting to do so yields the following message:

"Invalid volume: Volume status must be available (HTTP 400)"

Reproducing this is fairly trivial:

  1. Create a volume with a size arbitrarily larger than available storage space (e.g. 10000GB)

  2. Wait for the creation to fail and leave the volume in an "error" state.

  3. Using novaclient, attempt to send a delete request, e.g.: client.volumes.delete(volume_id)

Revision history for this message
Thierry Carrez (ttx) wrote :

Sounds like an annoying thing from an operational perspective :)

Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
tags: added: essex-rc-potential
Changed in nova:
milestone: none → essex-rc1
assignee: nobody → Vish Ishaya (vishvananda)
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/5342

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.openstack.org/5342
Committed: http://github.com/openstack/nova/commit/22b484a6d0b65c2a41fd4c730a5ebddf98c70c84
Submitter: Jenkins
Branch: master

commit 22b484a6d0b65c2a41fd4c730a5ebddf98c70c84
Author: Vishvananda Ishaya <email address hidden>
Date: Wed Mar 14 09:26:40 2012 -0700

    Allow errored volumes to be deleted

     * Allow volumes with no host set to be deleted from db
     * Allow volumes in state error to be deleted
     * Replicates code from nova-manage command
     * Fixes bug 953594

    Change-Id: Ia8b4594a626df58f030406b12dd003f5c9215612

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