Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can't get an X-Storage-Url and X-Auth-Token

Hi, Im testing a Swift environment and everything works perfectly except the "curl" command to get an X-Storage-Url and X-Auth-Token. I am using keystone in another host to authenticate. This is what i get :

[root@SWIFT-MACHINE ~]# curl -k -v -H 'X-Storage-User: admin:admin' -H 'X-Storage-Pass: cloud' * About to connect() to port 5000 (#0) * Trying connected * Connected to ( port 5000 (#0)

GET /v2.0 HTTP/1.1 User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/ zlib/1.2.3 libidn/1.18 libssh2/1.4.2 Host: Accept: / X-Storage-User: admin:admin X-Storage-Pass: cloud

< HTTP/1.1 200 OK < Vary: X-Auth-Token < Content-Type: application/json < Content-Length: 616 < Date: Tue, 02 Apr 2013 10:34:03 GMT < * Connection #0 to host 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": "", "rel": "self"}, {"href": "", "type": "text/html", "rel": "describedby"}, {"href": "", "type": "application/pdf", "rel": "describedby"}]}}

When using the "swift" commad to get stats on my accounts, objects and containers as well as to upload or dowload object, everything works smoothly.

Thanks in advance for your help.