Skip to content

Instantly share code, notes, and snippets.

@vkmc
Created March 4, 2013 17:46
Show Gist options
  • Save vkmc/5084034 to your computer and use it in GitHub Desktop.
Save vkmc/5084034 to your computer and use it in GitHub Desktop.
Trying to list all the volumes associated to a tenant
Cinder provides the list command to list all the volumes, but unluckily in this case we don't have
listing per tenant either.
[vkmc@thermalx2 devstack]$ cinder help list
usage: cinder list [--all-tenants [<0|1>]] [--display-name <display-name>]
[--status <status>]
List all the volumes.
Optional arguments:
--all-tenants [<0|1>]
Display information from all tenants (Admin only).
--display-name <display-name>
Filter results by display-name
--status <status> Filter results by status
Same situation for snapshots
[vkmc@thermalx2 devstack]$ cinder help snapshot-list
usage: cinder snapshot-list [--all-tenants [<0|1>]]
[--display-name <display-name>]
[--status <status>] [--volume-id <volume-id>]
List all the snapshots.
Optional arguments:
--all-tenants [<0|1>]
Display information from all tenants (Admin only).
--display-name <display-name>
Filter results by display-name
--status <status> Filter results by status
--volume-id <volume-id>
Filter results by volume-id
Without the option to specify a tenant we can't proceed to delete anything.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment