<pre style="overflow:auto;padding:10px;border:1px solid rgb(198,201,203);margin-top:1.5em;margin-bottom:1.5em"><font color="#555555"><span style="line-height:14.383333206176758px"><a href="http://docs.openstack.org/developer/keystone/api_curl_examples.html">http://docs.openstack.org/developer/keystone/api_curl_examples.html</a></span><span style="font-size:1.1em;line-height:1.2em"><br>
</span></font></pre><pre style="overflow:auto;padding:10px;border:1px solid rgb(198,201,203);margin-top:1.5em;margin-bottom:1.5em"><span style="color:rgb(85,85,85);font-size:1.1em;line-height:1.2em">curl -d '{"auth":{"passwordCredentials":{"username": "admin", "password": "$ADMINPASS"}}}' -H "Content-type: application/json" <a href="http://localhost:35357/v2.0/tokens">http://localhost:35357/v2.0/tokens</a></span><br>
</pre><div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/22 Shashank Sahni <span dir="ltr"><<a href="mailto:shredder12@gmail.com" target="_blank">shredder12@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>I'm trying to install swift. I'm able to start all the relevant services, but I'm getting error during verification while following the instructions mentioned here.<br><br><a href="http://docs.openstack.org/trunk/openstack-object-storage/admin/content/verify-swift-installation.html" target="_blank">http://docs.openstack.org/trunk/openstack-object-storage/admin/content/verify-swift-installation.html</a><br>


<br>The first command<br><br>$ swift -V 2.0 -A http://<AUTH_HOSTNAME>:5000/v2.0 -U demo:admin -K $ADMINPASS stat<br><br>returns <br><br>Account: AUTH_2b2f3b2f1db5442ca05a823dcbb047e1<br>Containers: 0<br>Objects: 0<br>


Bytes: 0<br>Accept-Ranges: bytes<br>X-Timestamp: 1353569489.57971<br><br>But when I try to run <br><br>$ curl -k -v -H 'X-Storage-User: demo:admin' -H 'X-Storage-Pass: $ADMINPASS' http://<AUTH_HOSTNAME>:5000/auth/v2.0<br>


<br>It doesn't return X-Auth-Token and X-Storage-URL. I believe this shows some trouble with Keystone, but I already have glance successfully configured. Here is the output.<br><br>* About to connect() to 10.2.4.115 port 5000 (#0)<br>


*   Trying 10.2.4.115... connected<br>> GET /v2.0 HTTP/1.1<br>
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/<a href="http://1.2.3.4" target="_blank">1.2.3.4</a> libidn/1.23 librtmp/2.3<br>> Host: <a href="http://10.2.4.115:5000" target="_blank">10.2.4.115:5000</a><br>


> Accept: */*<br>
> X-Storage-User: admin:admin<br>> X-Storage-Pass: xxxxx<br>> <br>< HTTP/1.1 200 OK<br>< Vary: X-Auth-Token<br>< Content-Type: application/json<br>< Date: Wed, 21 Nov 2012 05:46:25 GMT<br>< Transfer-Encoding: chunked<br>



< <br>* Connection #0 to host 10.2.4.115 left intact<br>* Closing connection #0<br>{"version":
 {"status": "beta", "updated": "2011-11-19T00:00:00Z", "media-types": 
[{"base": "application/json", "type": "application/vnd.openstack.<div>identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "<a href="http://10.2.4.115:5000/v2.0/" target="_blank">http://10.2.4.115:5000/v2.0/</a>", "rel": "self"}, {"href": "<a href="http://docs.openstack.org/api/openstack-identity-service/2.0/content/" target="_blank">http://docs.openstack.org/api/openstack-identity-service/2.0/content/</a>", "type": "text/html", "rel": "describedby"}, {"href": "<a href="http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf" target="_blank">http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf</a>", "type": "application/pdf", "rel": "describedby"}]}}</div>


<br><br>Any thoughts?<br><br clear="all">--<br>Shashank Sahni<br>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" 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/~openstack" 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"><div><br></div>-- <br><div>+Hugo Kuo+</div><div><a href="mailto:tonytkdk@gmail.com" target="_blank">tonytkdk@gmail.com<br></a></div><div><a href="mailto:tonytkdk@gmail.com" target="_blank">+</a>886 935004793</div>
<br>
</div>