← Back to team overview

openstack team mailing list archive

Re: glance keystone authentication problem

 

you can check your keystone whether work correctly.

keystone user-list



On Fri, May 11, 2012 at 12:42 PM, Shashi Kanth Boddula <shashi.bsd@xxxxxxxxx
> wrote:

> Ubuntu 12.04 Essex.
>
> # glance index
> Failed to show index. Got error:
> You are not authenticated.
> Details: 401 Unauthorized
>
> This server could not verify that you are authorized to access the
> document you requested. Either you supplied the wrong credentials (e.g.,
> bad password), or your browser does not understand how to supply the
> credentials required.
>
>  Authentication required
>
> # glance --os_username=glance --os_password=glance --os_tenant=service
> --os_auth_url=http://127.0.0.1:5000/v2.0 index
>
> Failed to show index. Got error:
> You are not authenticated.
> Details: 401 Unauthorized
>
> This server could not verify that you are authorized to access the
> document you requested. Either you supplied the wrong credentials (e.g.,
> bad password), or your browser does not understand how to supply the
> credentials required.
>
>  Authentication required
>
>
> ---------------------------------------
>
> In the keystone log file i see the error bellow.
>
>
> 2012-05-11 10:03:11 18461     INFO [keystone.middleware.auth_token]
> Retrying validation
> 2012-05-11 10:03:11 18461     INFO [keystone.middleware.auth_token]
> Keystone rejected admin token {'X-Auth-Token':
> u'6f220a2e7e324bf4bd7a96040f364316'}, resetting
> 2012-05-11 10:03:11 18461  WARNING [keystone.middleware.auth_token]
> Invalid user token: 238dc305de1e418b8b81bee4f648f984. Keystone response:
> {u'error': {u'message': u'The request you have made requires
> authentication.', u'code': 401, u'title': u'Not Authorized'}}.
> 2012-05-11 10:03:11 18461     INFO [keystone.middleware.auth_token]
> Invalid user token - rejecting request
>
>
>
> Not understanding where could be the problem.
>
> glace user is mapped to admin role in the service tenant.
>
> glance endpoint is created.
>
> I have specified glance user name, password and the service tenant in
> glance-api/registry files, and keystone authentication specified.
>
>
> Anyone tell me what could be the problem?  Thank you.
>
>
>
> --
> Thanks & Regards,
> Shashi Kanth
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Shake Chen

Follow ups

References