Ask Your Question
1

How to list deleted volumes

asked 2014-12-31 09:01:23 -0500

HT_Sergio gravatar image

updated 2014-12-31 12:34:44 -0500

smaffulli gravatar image

Using the python libraries I'm trying to see resources that were deleted in my tenant. It's easy to see deleted instances

>>> nova.servers.list(search_opts={'deleted':True})
[ ... ]

But doing the same for volumes doesn't do anything:

>>> cinder.volumes.list()
[<Volume: 97b56047-c523-4ba6-8702-71ff8ad06fa3>]
>>> cinder.volumes.list(search_opts={'deleted':True})
[<Volume: 97b56047-c523-4ba6-8702-71ff8ad06fa3>]

I know the database contains many deleted volumes in my tenant, but I can't get cinder to show me them.

This should be easy to reproduce so please see if you get the same result. Here's the code I use: http://paste.openstack.org/show/155265/

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-01 21:06:18 -0500

HT_Sergio gravatar image

updated 2015-01-01 21:06:55 -0500

I discovered it's not possible (in Icehouse or Juno, and I was told it won't be possible in Kilo). I had to write a small patch to make it work in Icehouse, but performance sucks.
Currently Cinder marks deleted volumes as delete, but I was told in the future the volume entries will be removed completely from the db.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-31 09:01:23 -0500

Seen: 569 times

Last updated: Jan 01 '15