<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>First:<br>Make sure you have not set SERVICE_TOKEN and SERVICE_ENDPOINT env since keystone client honours token auth over user/password way.<br>Second: you can use keystone --debug user-list to show what http message sent to server<br><br>also you can see the request body from server log, just like this:<br><br><br>2012-03-31 10:16:44    DEBUG [keystone.common.wsgi] ******************** REQUEST BODY ********************<br>2012-03-31 10:16:44    DEBUG [keystone.common.wsgi] {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "password"}}}<br>2012-03-31 10:16:44    DEBUG [keystone.common.wsgi] <br></div><div><br><div><br></div><font color="#990099">-----openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net wrote: -----<br><br></font><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid #000000; margin-right: 0px;">To: openstack <a class="moz-txt-link-rfc2396E" href="mailto:openstack@lists.launchpad.net"><openstack@lists.launchpad.net></a><br>From: Pete Zaitcev <a class="moz-txt-link-rfc2396E" href="mailto:zaitcev@redhat.com"><zaitcev@redhat.com></a><br>Sent by: <a class="moz-txt-link-abbreviated" href="mailto:openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net">openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net</a><br>Date: 03/31/2012 09:47AM<br>Subject: [Openstack] Code 500 when authenticating with password<br><br><font face="Courier New,Courier,monospace" size="3">Greetings:<br><br>It seems that I am unable to authenticate against the current Keystone,<br>and I am not sure if it is a bug or a local misconfiguration. So, before<br>I file in Launchpad, I'd like someone to verify that I am doing the<br>right thing.<br><br>The problem looks like this:<br><br>[zaitcev@kvm-rei zaitcev]$ keystone --os_auth_url=<a class="moz-txt-link-freetext" href="http://localhost:35357/v2.0">http://localhost:35357/v2.0</a> --os_username=admin --os_password=admpass --os_tenant_name=admten user-list<br>No handlers could be found for logger "keystoneclient.v2_0.client"<br>Authorization Failed: An unexpected error prevented the server from fulfilling your request. incomplete format (HTTP 500)<br><br>The server logs this:<br><br>2012-03-30 21:35:41    ERROR [root] incomplete format<br>Traceback (most recent call last):<br>  File "/usr/lib/python2.7/site-packages/keystone/common/wsgi.py", line 184, in __call__<br>    result = method(context, **params)<br>  File "/usr/lib/python2.7/site-packages/keystone/service.py", line 292, in authenticate<br>    metadata=metadata_ref)<br>  File "/usr/lib/python2.7/site-packages/keystone/common/manager.py", line 48, in _wrapper<br>    return f(*args, **kw)<br>  File "/usr/lib/python2.7/site-packages/keystone/catalog/backends/sql.py", line 167, in get_catalog<br>    catalog[region][srv_type]['publicURL'] = public_url % d<br>ValueError: incomplete format<br>2012-03-30 21:35:41    DEBUG [keystone.common.wsgi] ******************** RESPONSE HEADERS ********************<br>2012-03-30 21:35:41    DEBUG [keystone.common.wsgi] Content-Type = application/json<br>2012-03-30 21:35:41    DEBUG [keystone.common.wsgi] Vary = X-Auth-Token<br>2012-03-30 21:35:41    DEBUG [keystone.common.wsgi] Content-Length = 161<br>2012-03-30 21:35:41    DEBUG [keystone.common.wsgi] <br>2012-03-30 21:35:41    DEBUG [keystone.common.wsgi] ******************** RESPONSE BODY ********************<br>2012-03-30 21:35:41    DEBUG [keystone.common.wsgi] {"error": {"message": "An unexpected error prevented the server from fulfilling your request. incomplete format", "code": 500, "title": "Internal Server Error"}}<br>2012-03-30 21:35:41    DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [30/Mar/2012 21:35:41] "POST /v2.0/tokens HTTP/1.1" 500 327 0.260567<br><br>Yay, a traceback. However, it may be hinting that some kind of publicURL<br>field is not set somewhere. Does this looks familiar to anyone?<br><br>BTW, authentication with token works, and produces this:<br><br>[zaitcev@kvm-rei zaitcev]$ keystone --endpoint <a href="http://kvm-rei:35357/v2.0">http://kvm-rei:35357/v2.0</a> --token=758ce883df47 user-list<br>+----------------------------------+---------+-------+---------+<br>|                id                | enabled | email |   name  |<br>+----------------------------------+---------+-------+---------+<br>| 5c3c279d18f541aa859178869584ca40 | True    | None  | zaitcev |<br>| ed6aa912c28849c0913cb1106bb26b8c | True    | None  | admin   |<br>+----------------------------------+---------+-------+---------+<br><br>So, the Keystone server kinda-sorta works, just not really.<br><br>-- Pete<br><br>_______________________________________________<br>Mailing list: <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br><br></font> </blockquote><br></div></font> <br/>