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

Bug #953594 reported by Gabriel Hurley on 2012-03-13
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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)

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)

Fix proposed to branch: master

Changed in nova:
status: Confirmed → In Progress

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) on 2012-03-20
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-rc1 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers