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

Shashank Sahni shredder12 at gmail.com
Thu Nov 22 11:17:10 UTC 2012


Hi Kuo,

Thanks for a quick reply. This method got me the token, but the service
catalog was returned empty. Here is the comman ran and output.

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

{"access": {"token": {"expires": "2012-11-23T11:14:46Z", "id":
"8f047727d3144658a521b9a9443c060c"}, "serviceCatalog": {}, "user":
{"username": "admin", "roles_links": [], "id":
"0d34dea491c746ecae426adb301430e6", "roles": [], "name": "admin"}}}

--
Shashank Sahni



On Thu, Nov 22, 2012 at 4:35 PM, Kuo Hugo <tonytkdk at gmail.com> wrote:

> 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/8e55ed72/attachment.html>


More information about the Openstack mailing list