Ask Your Question

Why does keystone user-role-list turn up emtpy.

asked 2014-10-10 06:38:59 -0600

Krist gravatar image

updated 2014-10-10 08:29:27 -0600

I have exported the correct variables, so I have admin priveleges. I can use the keystone command line tool, and get results for most commands. However some commands do not give the expected results.

For example:

keystone user-list

does list all users.

keystone user-role-list --user-id <some id>

however always turns up emtpy (no error message). And this for any user id.

Withtout a --user-id parameter I get the roles the admin user has...

How do I list all the roles a user has?

This is for openstack Havana

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-10-10 08:28:54 -0600

Krist gravatar image

I have roles assigned to my users. Quite a few even.

edit flag offensive delete link more

answered 2014-10-10 07:12:14 -0600

The command you executed, was right for returning the role assigned to user. Run the following command to check whether the admin role returned or not:

keystone user-role-list --user-id ADMIN_USER_ID

Put the admin_id to the above line. If the return value was exectly the same when you execute the "keystone user-role-list" without --user-id, then it means that no roles assigned to your users except admin.

So you need to assign roles to your users.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-10-10 06:38:59 -0600

Seen: 259 times

Last updated: Oct 10 '14