Ask Your Question
0

How to manage user tenants' instances as Admin with REST API

asked 2015-01-22 08:21:34 -0600

Huaming gravatar image

Admin is able to see user tenants' instances details via CLI (nova show xxxx) after admin.rc is sourced.

But how to do it with REST API?

When generating a token, tenant name must be input. If I use admin as tenant name together with admin credential to generate a token, it cant be used to GET user tenants' instance detail.

{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "xxxx"}}} --> token is only for admin tenant.

If I use user tenant name together with admin credential, token cant be generated.

{"auth": {"tenantName": "user-tenant", "passwordCredentials": {"username": "admin", "password": "xxxx"}}} --> token fail.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-22 08:42:21 -0600

Ranjit gravatar image

Add the role of admin user to that particular tenant

keystone user-role-add --tenant user-tenant --user admin --role admin
edit flag offensive delete link more

Comments

Cool, thanks Ranjit.

Huaming gravatar imageHuaming ( 2015-01-27 01:35:28 -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: 2015-01-22 08:21:34 -0600

Seen: 163 times

Last updated: Jan 22 '15