[Openstack] keystone user-role-list error

Asher Newcomer ashernew at gmail.com
Sat Sep 29 20:12:12 UTC 2012


Excellent, thanks, that works. I was concerned that I had misconfigured
something. Most appreciated.

-Asher

On Sat, Sep 29, 2012 at 4:00 PM, Dolph Mathews <dolph.mathews at gmail.com>wrote:

> 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:
>   --user-id <user-id>   List roles granted to a user
>   --tenant-id <tenant-id>
>                         List roles granted on a tenant
>
> -Dolph
>
>
>
> On Sat, Sep 29, 2012 at 2:54 PM, heckj <heckj at mac.com> wrote:
>
>> Hey 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.
>>
>> This should definitely be filed as a bug :-)
>> https://bugs.launchpad.net/python-keystoneclient/+bug/1058750
>>
>> Use that link to subscribe to the bug if you want to track it's progress.
>>
>> -joe
>>
>> On Sep 29, 2012, at 5:35 AM, Asher Newcomer <ashernew at gmail.com> wrote:
>>
>> It looks like user-role-list is a recently added command in keystone (
>> launchpad <https://answers.launchpad.net/keystone/+question/190656>).
>>
>> When I run it on a new keystone install in Ubuntu 12.04 I get:
>>
>> keystone --token <mytoken> --endpoint http://192.168.1.11:35357/v2.0user-role-list
>>
>> 'Client' object has no attribute 'auth_tenant_id'
>>
>> It looks client side, and no corresponding entry in keystone.log. Bug?
>>
>> Thanks,
>>
>> Asher
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120929/1230477a/attachment.html>


More information about the Openstack mailing list