Ask Your Question
0

Listing containers per tenant

asked 2013-03-02 13:39:17 -0600

vkmc gravatar image

Hi,

I was wondering if listing containers per tenant is an available feature. I checked the client and the current code, and it doesn't look like it.

I know that the --os-tenant-name option is available but is not a viable replacement in the current implementation I'm working on [0] because it only works for projects of which the admin is a member.

In case that this functionality is indeed not available, do you think that filing a blueprint is a good idea?

I'd like to hear your suggestions, thanks a lot!

[0] https://blueprints.launchpad.net/horizon/+spec/tenant-deletion (https://blueprints.launchpad.net/hori...)

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-11 01:26:03 -0600

vkmc gravatar image

Thanks Chmouel! It sounds feasible, I will try that approach :)

edit flag offensive delete link more
0

answered 2013-03-03 19:32:14 -0600

Hi Victoria,

I am not sure I understand your question, you would like to list containers in a tenant without specifying a user?

Thansk, Chmouel.

edit flag offensive delete link more
0

answered 2013-03-03 20:28:02 -0600

vkmc gravatar image

Hi Chmouel,

Oh you're right, I missed an important detail. I wanted to list all the containers within a tenant with the admin user. As mentioned, this is to implement the tenant deletion workflow on Horizon :)

Do you know if there is a similar feature I could use to access all the containers within a tenant?

Thanks,

Victoria

edit flag offensive delete link more
0

answered 2013-03-04 14:44:08 -0600

vkmc gravatar image

#2 provides more information for this question

edit flag offensive delete link more
0

answered 2013-03-08 22:03:41 -0600

So you basically would need to have a account with the ResellerAdmin role which would allow you to access other accounts.

The steps would be :

  • have an admin user with the ResellerAdmin role (create the role already if it wasn't created before) : https://gist.github.com/chmouel/5120245

  • get the tenant_id of the tenant you want to access.

  • the storage_url will become :

http://storage_ip:8080/v1/AUTH_%(tena...

  • get a token from the admin user.

  • you will be able to access the tenant_id like this :

curl -H 'X-Auth-User: ${ADMIN_TOKEN}' ${USER_STORAGE_URL}

I don't know if that's clear enough, feel free to ping me on irc if needed.

edit flag offensive delete link more

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: 2013-03-02 13:39:17 -0600

Seen: 127 times

Last updated: Mar 11 '13