Comment 1 for bug 716847

Revision history for this message
Vish Ishaya (vishvananda) wrote : Re: [Bug 716847] [NEW] euca-delete-volume cannot delete volumes in error state

There are also nova-manage commands for dealing with messed up volumes.
Check nova-manage volume.
On Feb 10, 2011 9:20 PM, "Wayne A. Walls" <email address hidden> wrote:
> Public bug reported:
>
> If all the appropriate services are not running for nova-volume, a
> volume will still try to be created, but will be stuck in 'error' state.
> These cannot be deleted via euca-delete-volumes. You can, however,
> delete all the invalid volumes from nova.volumes in the DB which will
> remove the rogue entries.
>
> ##########
> root@osdemo05:~# euca-describe-volumes
> VOLUME vol-00000001 1 nova creating (wayne, None, None, None) 2011-02-10
15:19:41
> VOLUME vol-00000002 1 nova error (wayne, osdemo03, None, None) 2011-02-10
23:42:41
> ...
> ...
> VOLUME vol-00000008 2 nova error (wayne, osdemo03, None, None) 2011-02-11
00:07:13
> VOLUME vol-00000009 2 nova available (wayne, osdemo03, None, None)
2011-02-11 00:07:37
>
> root@osdemo05:~# euca-delete-volume vol-00000008
> Unknown: Unknown: Volume status must be available
> ##########
>
> ** Affects: nova
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Nova Bug
> Team, which is subscribed to OpenStack Compute (nova).
> https://bugs.launchpad.net/bugs/716847
>
> Title:
> euca-delete-volume cannot delete volumes in error state
>
> Status in OpenStack Compute (Nova):
> New
>
> Bug description:
> If all the appropriate services are not running for nova-volume, a
> volume will still try to be created, but will be stuck in 'error'
> state. These cannot be deleted via euca-delete-volumes. You can,
> however, delete all the invalid volumes from nova.volumes in the DB
> which will remove the rogue entries.
>
> ##########
> root@osdemo05:~# euca-describe-volumes
> VOLUME vol-00000001 1 nova creating (wayne, None, None, None) 2011-02-10
15:19:41
> VOLUME vol-00000002 1 nova error (wayne, osdemo03, None, None) 2011-02-10
23:42:41
> ...
> ...
> VOLUME vol-00000008 2 nova error (wayne, osdemo03, None, None) 2011-02-11
00:07:13
> VOLUME vol-00000009 2 nova available (wayne, osdemo03, None, None)
2011-02-11 00:07:37
>
> root@osdemo05:~# euca-delete-volume vol-00000008
> Unknown: Unknown: Volume status must be available
> ##########
>
>