Ask Your Question
1

How to list all volumes in a tenant?

asked 2016-07-18 06:36:51 -0600

frarape gravatar image

Hi,

I'm using the http://developer.openstack.org/sdks/python/openstacksdk/users/proxies/block_store.html (pyhton-openstacksdk) and I've seen that there's no method to list all created volumes in a tenant...and the get_volume method only receive ID volume parameter and not the volume's name. So, how can we get the ID of the volumes if we can't list all of them?

Thank you in advance.

edit retag flag offensive close merge delete

Comments

Also, there's a documented way to attach a volume to a server?

frarape gravatar imagefrarape ( 2016-07-19 06:04:38 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-12 03:53:32 -0600

Hamzoz gravatar image

updated 2016-08-12 03:53:50 -0600

your answer is http://docs.openstack.org/developer/python-openstackclient/command-objects/volume.html#volume-list (here)

edit flag offensive delete link more

Comments

I was looking for a python module/command inside python-openstacksdk...I already know cinder list...

frarape gravatar imagefrarape ( 2016-08-26 05:47:05 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-07-18 06:36:51 -0600

Seen: 382 times

Last updated: Aug 12 '16