← Back to team overview

openstack team mailing list archive

Re: keystone user-role-list error

 

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@xxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References