how to clean up zombie volumes

Asked by Toshiharu Harada

Hi all,

I've been trying to construct my own OpenStack environment.
I managed to create a volume after trials.

localadmin@nova3:~$ euca-describe-volumes
VOLUME vol-00000001 10 nova error (proj, nova1, None, None) 2011-12-22T05:39:42Z
VOLUME vol-00000002 10 nova error (proj, nova1, None, None) 2011-12-22T07:44:20Z
VOLUME vol-00000003 7 nova error (proj, nova3, None, None) 2011-12-26T04:11:03Z
VOLUME vol-00000004 7 nova available (proj, nova3, None, None) 2011-12-26T05:24:08Z

As you see, vol-00000004 is available but other three are just garbage.
My problem is I could not find a way to remove those garbage entries.

localadmin@nova3:~$ euca-delete-volume vol-00000001
ApiError: Volume status must be available
localadmin@nova3:~$ euca-deregister vol-00000001
ImageNotFound: Image vol-00000001 could not be found.

It is very likely that I missed the document, but there are so much to read.
Will someone please tell me how?

Thanks in advance. :-)

Question information

Language:
English Edit question
Status:
Solved
For:
nova-deployment-tool Edit question
Assignee:
No assignee Edit question
Solved by:
Everett Toews
Solved:
Last query:
Last reply:
Revision history for this message
Best Everett Toews (everett-toews) said :
#1

Try

nova-manage volume delete vol-XXXXXXXX

Everett

On Wed, Jan 4, 2012 at 10:30 PM, Toshiharu Harada <
<email address hidden>> wrote:

> New question #183780 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/183780
>
> Hi all,
>
> I've been trying to construct my own OpenStack environment.
> I managed to create a volume after trials.
>
> localadmin@nova3:~$ euca-describe-volumes
> VOLUME vol-00000001 10 nova error (proj, nova1, None,
> None) 2011-12-22T05:39:42Z
> VOLUME vol-00000002 10 nova error (proj, nova1, None,
> None) 2011-12-22T07:44:20Z
> VOLUME vol-00000003 7 nova error (proj, nova3, None,
> None) 2011-12-26T04:11:03Z
> VOLUME vol-00000004 7 nova available (proj, nova3,
> None, None) 2011-12-26T05:24:08Z
>
> As you see, vol-00000004 is available but other three are just garbage.
> My problem is I could not find a way to remove those garbage entries.
>
> localadmin@nova3:~$ euca-delete-volume vol-00000001
> ApiError: Volume status must be available
> localadmin@nova3:~$ euca-deregister vol-00000001
> ImageNotFound: Image vol-00000001 could not be found.
>
> It is very likely that I missed the document, but there are so much to
> read.
> Will someone please tell me how?
>
> Thanks in advance. :-)
>
> --
> You received this question notification because you are an answer
> contact for OpenStack Compute (nova).
>

Revision history for this message
Toshiharu Harada (haradats) said :
#2

Everett,

> nova-manage volume delete vol-XXXXXXXX

It did work perfectly!

Thanks!

Revision history for this message
Toshiharu Harada (haradats) said :
#3

Thanks to Everett, I could solve my problem.
With the solution Everett gave, I have searched related bugs and added one to my question.
https://bugs.launchpad.net/nova/+bug/716847
I could not related faq, so I wished to add a new faq entry for other people, but I was not permitted to do it.

So, I leave my own faq here.

how to delete delete volumes in error state?

try
nova-manage volume delete vol-XXXXXXXX

related question
https://answers.launchpad.net/nova/+question/172482

Revision history for this message
Toshiharu Harada (haradats) said :
#4

Thanks Everett Toews, that solved my question.