Sometimes a volume detach will not complete and volume will be undeletable

Bug #1361662 reported by David Hill
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

Sometimes a volume detach will not complete and volume will be undeletable . The state is "in-use" but it's no longer attached to the VM and the VM no longer exists.

We're using Icehouse 2014.1.2

    [root@stv-lab-ctrl02 monitoring_aux]# cinder list
    +--------------------------------------+--------+----------------------------------------------------+------+-------------+----------+-------------+
    | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
    +--------------------------------------+--------+----------------------------------------------------+------+-------------+----------+-------------+
    | 64890ec4-9847-4074-ad89-15ec93983ab3 | in-use | monitoring-stv-lab-ctrl02_-DataVolume-xfiepunaoqsc | 1 | None | false | |
    +--------------------------------------+--------+----------------------------------------------------+------+-------------+----------+-------------+
    # cinder delete 64890ec4-9847-4074-ad89-15ec93983ab3
    Delete for volume 64890ec4-9847-4074-ad89-15ec93983ab3 failed: Invalid volume: Volume status must be available or error,
    but current status is: in-use (HTTP 400) (Request-ID: req-8fdc62a9-62b3-4bbd-ac0b-04cfc89c3ad5)
    ERROR: Unable to delete any of the specified volumes.

Revision history for this message
David Hill (david-hill-ubisoft) wrote :

Some workaround
1) cinder reset-state
2) cinder delete

The problem is that with heat, when this happens, the stack will fail to delete. In order to solve this issue, the following workaround will do:
1) cinder reset-state
2) cinder delete
3) nova delete
4) heat stack-delete

But in a production environment, when reset-state can only be done by an admin, it could be a show stopper.

Dve

Revision history for this message
David Hill (david-hill-ubisoft) wrote :

This bug also affects Havana.

tags: added: icehouse
Revision history for this message
Thang Pham (thang-pham) wrote :

"cinder reset-state" was create for such scenarios. I am not sure this can be fixed.

Revision history for this message
Jay Bryant (jsbryant) wrote :

I am in agreement with Thang. There are many reasons that a volume attach can fail. The reset-state command is designed to let the user get back to a state where they can clean up and debug what went wrong.

I think this is invalid.

Changed in cinder:
status: New → Invalid
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.