user-role-list command fails when using --token and --endpoint authentication mechanism
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Won't Fix
|
Medium
|
Marcos Lobo |
Bug Description
On Sep 29, 2012, at 5:35 AM, Asher Newcomer <email address hidden> wrote:
It looks like user-role-list is a recently added command in keystone (launchpad).
When I run it on a new keystone install in Ubuntu 12.04 I get:
keystone --token <mytoken> --endpoint http://
'Client' object has no attribute 'auth_tenant_id'
It looks client side, and no corresponding entry in keystone.log. Bug?
Thanks,
Asher
...
That's a bug in keystoneclient - the method for doing the role listing is making a bad assumption that you're authenticating with a username and password, not handing in a token, and is getting wrapped around the axle trying to figure out what tenant you are. If you create an admin account with the --token and --endpoint options, and then use those options for this same command, you should be OK.
Changed in python-keystoneclient: | |
importance: | High → Medium |
From dolph:
By default, I believe it shows you your own roles. With a token/endpoint specified (bypassing auth), it should work if you specify a user & tenant:
$ keystone help user-role-list
usage: keystone user-role-list [--user-id <user-id>] [--tenant-id <tenant-id>]
List roles granted to a user
Optional arguments:
List roles granted on a tenant
--user-id <user-id> List roles granted to a user
--tenant-id <tenant-id>