[Openstack-operators] Problem using Curl with Swift.

Stephen Broeker steve_broeker at yahoo.com
Mon Jun 27 16:37:20 UTC 2011

In step 4, try:

curl -k -i -H "X-Auth-Token: $XT" -X PUT $XU/test-container

From: e.testingcloud <e.testingcloud at tid.es>
To: "openstack-operators at lists.openstack.org" <openstack-operators at lists.openstack.org>
Sent: Monday, June 27, 2011 2:46 AM
Subject: [Openstack-operators] Problem using Curl with Swift.


I'm doing test with Swift and Curl and I have the next problem.

1. I create the user.

swauth-add-user -A -K beto -a openstack tester2 testerpass2

2. I get the X-Storage-Url and X-Auth-Token

curl -k -v -H 'X-Storage-User: openstack:tester2' -H 'X-Storage-Pass: testerpass2' 
* About to connect() to port 8080 (#0)
*   Trying connected
* Connected to ( port 8080 (#0)
> GET /auth/v1.0 HTTP/1.1
> User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/ libidn/1.15
> Host:
> Accept: */*
> X-Storage-User: openstack:tester2
> X-Storage-Pass: testerpass2
< HTTP/1.1 200 OK
< X-Storage-Url: 
< X-Storage-Token: AUTH_tkaf8d1d9b65174e77a57e9493775aaa14
< X-Auth-Token: AUTH_tkaf8d1d9b65174e77a57e9493775aaa14
< Content-Length: 113
< Date: Mon, 27 Jun 2011 09:26:12 GMT
* Connection #0 to host left intact
* Closing connection #0
{"storage": {"default": "local", "local": ""}}

3. environtment

export XU=""
export XT="AUTH_tkaf8d1d9b65174e77a57e9493775aaa14"

4. Create a container.

curl -k -i -H "$XT" -X PUT $XU/test-container
HTTP/1.1 401 Unauthorized
Content-Length: 358
Content-Type: text/html; charset=UTF-8
Date: Mon, 27 Jun 2011 09:42:40 GMT

  <title>401 Unauthorized</title>
  <h1>401 Unauthorized</h1>
  This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br />


Always I get the same error. I'm not authorized, but the X-Auth-Token and X-Storage-Url are correct.
Somebody can help me please?

Thanks in advance.

Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo.
This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at.
Openstack-operators mailing list
Openstack-operators at lists.openstack.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20110627/177764c6/attachment-0002.html>

More information about the Openstack-operators mailing list