[Openstack-operators] Cannot delete a cinder volume; alternative manual procedure ?

Matt Riedemann mriedem at linux.vnet.ibm.com
Mon Oct 26 15:41:23 UTC 2015



On 6/9/2015 11:28 AM, Jesse Keating wrote:
> We've used
> https://github.com/snemetz/openstack-scripts/blob/master/cinder-volume-delete.txt
> with apparent success to delete stuck volumes.
>
>
> - jlk
>
> On Tue, Jun 9, 2015 at 6:37 AM, Alvise Dorigo <alvise.dorigo at pd.infn.it
> <mailto:alvise.dorigo at pd.infn.it>> wrote:
>
>     Hi,
>     I've a cinder volume which is permanently in "deleting" state. I
>     cannot retrace the full history of actions that brought to this
>     scenario. What I cat reporto is that
>
>     1. Cinder is backed by GlusterFS mounted with the glusterfuse,
>     2. a "cinder delete" (or "cinder force-delete" as admin) doesn't
>     produce any effect,
>     3. In the api.log, scheduler.log and volume.log I do not see any
>     useful information but this:
>
>     api.log-20150607:2015-06-05 14:45:20.956 17383 <tel:20.956%2017383>
>     INFO eventlet.wsgi.server [req-bed01706-77ff-48bb-b12c-a0ccdcfd2e25
>     d7b3d4f7d20444adb7fda140553c25bf 3beba6dd3f2648378263bc04d9c205fa -
>     - -] 192.135.16.31,192.168.60.21 - - [05/Jun/2015 14:45:20] "DELETE
>     /v1/3beba6dd3f2648378263bc04d9c205fa/volumes/b056b016-8337-4e64-9069-6c84ab242152
>     HTTP/1.1" 400 338 0.053790
>
>
>     (the verbosity and debug are ON of course).
>
>     This is not a single event... unfortunately more that one volume
>     cannot be deleted and we're, so far, unable to understand why.
>
>     My question is if a manual procedure (operating on the relevant
>     cinder's tables) which gracefully cleans things up (which is not a
>     trivial "delete from volume where id='...'") exists.
>
>     Thanks,
>
>          Alvise
>
>     _______________________________________________
>     OpenStack-operators mailing list
>     OpenStack-operators at lists.openstack.org
>     <mailto:OpenStack-operators at lists.openstack.org>
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>

FYI, there is an effort going on here [1] to add a force volume 
attachment removal command to nova-manage. Operator input on that change 
would be valuable.

[1] https://review.openstack.org/#/c/184537/

-- 

Thanks,

Matt Riedemann




More information about the OpenStack-operators mailing list