<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ahmed - <div><br></div><div>The header that's supposed to have the token within it is labelled "X-Auth-Token', not "X_Auth_Token".  Unless you're really comfortable with the protocol, I'd recommend using the keystone CLI from the python-keystoneclient to do your verifying, using it's debugging (which is to show you the curl output that you did below).</div><div><br></div><div>-joe </div><div><br></div><div><div><div>On Oct 1, 2012, at 5:12 PM, Ahmed Al-Mehdi <<a href="mailto:ahmed@coraid.com">ahmed@coraid.com</a>> wrote:</div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif; "><div>Hello,</div><div><br></div><div>I am trying to verify the installation of keystone.  When I try to run some "curl" commands, I get the following error message:</div><div><br></div><div><div>root@bodega:~/ahmed/keystone-init# curl -d '{"auth": {"tenantName": "adminTenant", "passwordCredentials": {"username": "adminUser", "password": "secretword"}}}' -H "Content-type: application/json" -H "X_Auth_Token: ahmedadmintoken" <a href="http://10.176.20.158:35357/v2.0/tokens">http://10.176.20.158:35357/v2.0/tokens</a> | python -mjson.tool</div><div>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current</div><div>                                 Dload  Upload   Total   Spent    Left  Speed</div><div>100   231    0   116  100   115  15205  15074 --:--:-- --:--:-- --:--:-- 16571</div><div>{</div><div>    "error": {</div><div>        "code": 401, </div><div>        "message": "The request you have made requires authentication.", </div><div>        "title": "Not Authorized"</div><div>    }</div><div>}</div></div><div><br></div><div><br></div><div>I don't see any message in the /var/log/keystone/logging.conf file.   I can pass "-debug" option to keystone to enable debugging, but I am not sure how to do that from curl.  Following is content of /etc/keystone/logging.conf file:</div><div><br></div><div><div>root@bodega:~# cat /etc/keystone/logging.conf </div><div>[loggers]</div><div>keys=root</div><div><br></div><div>[formatters]</div><div>keys=normal,normal_with_name,debug</div><div><br></div><div>[handlers]</div><div>keys=production,file,devel</div><div><br></div><div>[logger_root]</div><div>level=WARNING</div><div>handlers=file</div><div><br></div><div>[handler_production]</div><div>class=handlers.SysLogHandler</div><div>level=ERROR</div><div>formatter=normal_with_name</div><div>args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)</div><div><br></div><div>[handler_file]</div><div>class=FileHandler</div><div>level=DEBUG</div><div>formatter=normal_with_name</div><div>args=('/var/log/keystone/keystone.log', 'a')</div><div><br></div><div>[handler_devel]</div><div>class=StreamHandler</div><div>level=NOTSET</div><div>formatter=debug</div><div>args=(sys.stdout,)</div><div><br></div><div>[formatter_normal]</div><div>format=%(asctime)s %(levelname)s %(message)s</div><div><br></div><div>[formatter_normal_with_name]</div><div>format=(%(name)s): %(asctime)s %(levelname)s %(message)s</div><div><br></div><div>[formatter_debug]</div><div>format=(%(name)s): %(asctime)s %(levelname)s %(module)s %(funcName)s %(message)s</div><div>root@bodega:~# </div></div><div><br></div><div>Any help would be greatly appreciated.</div><div><br></div><div>Regards,</div><div>Ahmed.</div><div><br></div><div><br></div><div><br></div></div>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">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/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></body></html>