you can check your keystone whether work correctly.<br><br>keystone user-list<br><br><br><br><div class="gmail_quote">On Fri, May 11, 2012 at 12:42 PM, Shashi Kanth Boddula <span dir="ltr"><<a href="mailto:shashi.bsd@gmail.com" target="_blank">shashi.bsd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ubuntu 12.04 Essex.<br><br># glance index<br>Failed to show index. Got error:<br>You are not authenticated.<br>Details: 401 Unauthorized<br>
<br>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.<br>
<br> Authentication required <br><br># glance --os_username=glance --os_password=glance --os_tenant=service --os_auth_url=<a href="http://127.0.0.1:5000/v2.0" target="_blank">http://127.0.0.1:5000/v2.0</a> index<br><br>
Failed to show index. Got error:<br>
You are not authenticated.<br>Details: 401 Unauthorized<br><br>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.<br>
<br> Authentication required <br><br><br>---------------------------------------<br><br>In the keystone log file i see the error bellow.<br><br><br>2012-05-11 10:03:11 18461 INFO [keystone.middleware.auth_token] Retrying validation<br>
2012-05-11 10:03:11 18461 INFO [keystone.middleware.auth_token] Keystone rejected admin token {'X-Auth-Token': u'6f220a2e7e324bf4bd7a96040f364316'}, resetting<br>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'}}.<br>
2012-05-11 10:03:11 18461 INFO [keystone.middleware.auth_token] Invalid user token - rejecting request<br><br><br><br>Not understanding where could be the problem.<br><br>glace user is mapped to admin role in the service tenant.<br>
<br>glance endpoint is created.<br><br>I have specified glance user name, password and the service tenant in glance-api/registry files, and keystone authentication specified.<br><br><br>Anyone tell me what could be the problem? Thank you.<span class="HOEnZb"><font color="#888888"><br>
<br><br clear="all"><br>-- <br>Thanks & Regards,<br>Shashi Kanth<br><br>
</font></span><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Shake Chen<br><br><br>