[Openstack] Keystone doesn't return X-Auth-Token and X-Storage-URL

Kuo Hugo tonytkdk at gmail.com
Thu Nov 22 11:05:15 UTC 2012


http://docs.openstack.org/developer/keystone/api_curl_examples.html

curl -d '{"auth":{"passwordCredentials":{"username": "admin",
"password": "$ADMINPASS"}}}' -H "Content-type: application/json"
http://localhost:35357/v2.0/tokens



2012/11/22 Shashank Sahni <shredder12 at gmail.com>

> Hi,
>
> 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.
>
>
> http://docs.openstack.org/trunk/openstack-object-storage/admin/content/verify-swift-installation.html
>
> The first command
>
> $ swift -V 2.0 -A http://<AUTH_HOSTNAME>:5000/v2.0 -U demo:admin -K
> $ADMINPASS stat
>
> returns
>
> Account: AUTH_2b2f3b2f1db5442ca05a823dcbb047e1
> Containers: 0
> Objects: 0
> Bytes: 0
> Accept-Ranges: bytes
> X-Timestamp: 1353569489.57971
>
> But when I try to run
>
> $ curl -k -v -H 'X-Storage-User: demo:admin' -H 'X-Storage-Pass:
> $ADMINPASS' http://<AUTH_HOSTNAME>:5000/auth/v2.0
>
> 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.
>
> * About to connect() to 10.2.4.115 port 5000 (#0)
> *   Trying 10.2.4.115... connected
> > GET /v2.0 HTTP/1.1
> > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0
> OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> > Host: 10.2.4.115:5000
> > Accept: */*
> > X-Storage-User: admin:admin
> > X-Storage-Pass: xxxxx
> >
> < HTTP/1.1 200 OK
> < Vary: X-Auth-Token
> < Content-Type: application/json
> < Date: Wed, 21 Nov 2012 05:46:25 GMT
> < Transfer-Encoding: chunked
> <
> * Connection #0 to host 10.2.4.115 left intact
> * Closing connection #0
> {"version": {"status": "beta", "updated": "2011-11-19T00:00:00Z",
> "media-types": [{"base": "application/json", "type":
> "application/vnd.openstack.
> identity-v2.0+json"}, {"base": "application/xml", "type":
> "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links":
> [{"href": "http://10.2.4.115:5000/v2.0/", "rel": "self"}, {"href": "
> http://docs.openstack.org/api/openstack-identity-service/2.0/content/",
> "type": "text/html", "rel": "describedby"}, {"href": "
> http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf",
> "type": "application/pdf", "rel": "describedby"}]}}
>
>
> Any thoughts?
>
> --
> Shashank Sahni
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
+Hugo Kuo+
tonytkdk at gmail.com
+ <tonytkdk at gmail.com>886 935004793
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121122/bda38e42/attachment.html>


More information about the Openstack mailing list