Ask Your Question
0

Cinder: find who created some volume

asked 2015-08-31 02:43:09 -0500

updated 2015-09-03 03:14:08 -0500

I am wondering if there is a way to know which user created some cinder volume ?

$ cinder show volume_name
+------------------------------+--------------------------------------+
|           Property           |                Value                 |
+------------------------------+--------------------------------------+
|         attachments          |                  []                  |
|      availability_zone       |                 nova                 |
|           bootable           |                false                 |
|          created_at          |      2012-27-23T12:15:52.000000      |
|     display_description      |                 None                 |
|         display_name         |             volume_name              |
|          encrypted           |                False                 |
|              id              | cf510999-666b-4666-6668-c46666752180 |
|           metadata           |       {u'readonly': u'False'}        |
| os-vol-tenant-attr:tenant_id |   50002a7327114c2cb97f0d9e0000cdda   |
|             size             |                  8                   |
|         snapshot_id          |                 None                 |
|         source_volid         |                 None                 |
|            status            |              available               |
|         volume_type          |                 None                 |
+------------------------------+--------------------------------------+

This shows only the tenant, and as you can guess the volume name is not very useful either...

Should I just search the logfiles, hoping there is still something in there ?

Edit:

Having a look at openstack code to eventually add the missing piece to show that info. It does not look like it's in python-cinderclient.

Now, if someone could give me a clue about where to look for, I'd be grateful...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-08-31 04:18:22 -0500

updated 2015-08-31 04:18:50 -0500

Hello,

In the database you have an entry called user_id, there you can see which user has created the volume.

Regards

edit flag offensive delete link more

Comments

Thanks, I'd preferred a way to get that info with the cinder CLI client, but I'll have to make do with what's available for the time being...

vincent-legoll gravatar imagevincent-legoll ( 2015-08-31 09:00:11 -0500 )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: 2015-08-31 02:43:09 -0500

Seen: 102 times

Last updated: Sep 03 '15