keystoneclient is looking for enough arguments for it to either fully authenticate or bypass authentication.<div><br></div><div>To fully authenticate:</div><div>keystone --os_username=admin --os_password=secret --os_tenant_name=project-x --os_auth_url=<a href="http://keystone:5000/v2.0/">http://keystone:5000/v2.0/</a> tenant-list</div>
<div><br></div><div>To bypass authentication (i.e. you already have a token & endpoint):</div><div>keystone --token=94eabe5d --endpoint=<a href="http://keystone:35357/v2.0/">http://keystone:35357/v2.0/</a> tenant-list
</div><div><br></div><div>As shown in the error messages you're seeing, you can also set all these variables in your environment so you don't have to specify them for each keystoneclient command.</div><div><br></div>
<div>-Dolph</div><div><br><div class="gmail_quote">On Thu, May 24, 2012 at 9:17 AM, Salman Malik <span dir="ltr"><<a href="mailto:salmanmk@live.com" target="_blank">salmanmk@live.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">
<font style="font-size:10pt" color="#366092" face="Tahoma" size="2">Thanks guys. Here is the output of the curl command:<br><br>{"error": {"message": "Invalid tenant", "code": 401, "title": "Not Authorized"}}<br>
<br>Seems like there is no such tenant in keystone database. I tried doing keystone tenant-list but it keeps on asking for one extra argument each time (i.e after keystone tenant-list, I tried "keystone --os_username admin tenant-list" and "keystone --os_username --os_password tenant-list" ). Anyway, what could be th cause of keystone's database problems?<br>
<br></font><br><br><div><div></div><hr>Date: Thu, 24 May 2012 00:40:19 -0500<br>Subject: Re: [Openstack] devstack installation failing<br>From: <a href="mailto:dolph.mathews@gmail.com" target="_blank">dolph.mathews@gmail.com</a><br>
To: <a href="mailto:Mandar.Vaze@nttdata.com" target="_blank">Mandar.Vaze@nttdata.com</a><br>CC: <a href="mailto:salmanmk@live.com" target="_blank">salmanmk@live.com</a>; <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><div>
<div class="h5"><br><br>The output to the curl command below should definitely point you in the right direction -- devstack is expecting keystone to return an authentication response there, but it's getting something else instead. Feel free to paste the results to the list.<div>

<br></div><div>-Dolph<br><br><div>On Wed, May 23, 2012 at 11:47 PM, Vaze, Mandar <span dir="ltr"><<a href="mailto:Mandar.Vaze@nttdata.com" target="_blank">Mandar.Vaze@nttdata.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US">
<div>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Last time when I ran into this error, I had updated (git pull) only nova, but forgot to update keystone.<u></u><u></u></span></p>


<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Once I updated (git pull) all the other projects, including keystone, the error went away.<u></u><u></u></span></p>

<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Few things you can use for troubleshooting :<u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>1.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Run this command from terminal – See if the outpur gives any clue : “</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#366092">curl
 -s -d '{"auth":{"passwordCredentials": {"username": "admin", "password": "nova"}, "tenantName": "admin"}}' -H 'Content-type: application/json'
<a href="http://10.0.3.15:5000/v2.0/tokens" target="_blank">http://10.0.3.15:5000/v2.0/tokens</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">”<u></u><u></u></span><br>


<u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>2.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Check the keystone database, see if user admin and tenant admin are created OK<u></u><u></u></span><br>


<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">-Mandar<u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> openstack-bounces+mandar.vaze=<a href="mailto:nttdata.com@lists.launchpad.net" target="_blank">nttdata.com@lists.launchpad.net</a> [mailto:<a href="mailto:openstack-bounces%2Bmandar.vaze" target="_blank">openstack-bounces+mandar.vaze</a>=<a href="mailto:nttdata.com@lists.launchpad.net" target="_blank">nttdata.com@lists.launchpad.net</a>]
<b>On Behalf Of </b>Salman Malik<br>
<b>Sent:</b> Thursday, May 24, 2012 9:48 AM<br>
<b>To:</b> <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
<b>Subject:</b> [Openstack] devstack installation failing<u></u><u></u></span></p>
</div>
</div><div><div>
<p><u></u> <u></u></p>
<div>
<div>
<p><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#366092">Hi All,<br>
<br>
While installing devstack, installation is failing with the error :<br>
++ python -c 'import sys; import json; tok = json.loads(sys.stdin.read()); print tok['\''access'\'']['\''token'\'']['\''id'\''];'<br>
++ curl -s -d '{"auth":{"passwordCredentials": {"username": "admin", "password": "nova"}, "tenantName": "admin"}}' -H 'Content-type: application/json'
<a href="http://10.0.3.15:5000/v2.0/tokens" target="_blank">http://10.0.3.15:5000/v2.0/tokens</a><br>
Traceback (most recent call last):<br>
  File "<string>", line 1, in <module><br>
KeyError: 'access'<br>
<br>
With some searching I know this has something to do with the keystone but I have no clue how to resolve this one.<br>
Thanks for your help.<br>
<br>
Salman</span><u></u><u></u></p>
</div>
</div>
</div></div></div>
<br clear="all">
______________________________________________________________________<br>
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data.  If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding<br>


</div>

<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" target="_blank">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></div></div></div></div>                                       </div></div>
</blockquote></div><br></div>