[Openstack-operators] swift - 401 unauthorized error

Anne Gentle anne at openstack.org
Wed Feb 16 15:28:38 UTC 2011


Hi Shashi -
Looks like you are working through your errors one at a time, thanks for
keeping the posts coming.

I think the SAIO instructions for swauth have an error in the third line -
this should probably be test3 tester3 testing3

swauth-add-user -K swauthkey -a test tester testing
swauth-add-user -K swauthkey -a test2 tester2 testing2
swauth-add-user -K swauthkey test tester3 testing3


I think what's happening is that the credentials it wants are test:tester3
and testing3. Let us know if that works. If not, we'll keep troubleshooting.


We're also working on logging instructions so that should help you
troubleshoot in the future.

I'm going to correct the SAIO instructions to avoid this issue, thanks for
asking about it!
Anne
 *Anne Gentle*
anne at openstack.org
 my blog <http://justwriteclick.com/> | my
book<http://xmlpress.net/publications/conversation-community/>|
LinkedIn <http://www.linkedin.com/in/annegentle> |
Delicious<http://del.icio.us/annegentle>|
Twitter <http://twitter.com/annegentle>
On Thu, Feb 10, 2011 at 8:23 AM, shashidhar v <
shashidhar.velagandula at gmail.com> wrote:

>
>
> HI ,
>
> I am trying to deploy  and test the swift as mentioned in the SAIO docs,
>
> shashi at test2:~$
> shashi at test2:~$ recreateaccounts
> Auth subsystem prep failed: 401 Unauthorized
> Account creation failed: 401 Unauthorized
> User creation failed: 401 Unauthorized
> Account creation failed: 401 Unauthorized
> User creation failed: 401 Unauthorized
> Account creation failed: 401 Unauthorized
> User creation failed: 401 Unauthorized
> Account creation failed: 401 Unauthorized
> User creation failed: 401 Unauthorized
> shashi at test2:~$
>
>
> shashi at test2:~$ curl -v -H 'X-Storage-User: test:tester' -H
> 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0
> * About to connect() to 127.0.0.1 port 8080 (#0)
> *   Trying 127.0.0.1... connected
> * Connected to 127.0.0.1 (127.0.0.1) 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/1.2.3.3 libidn/1.15
> > Host: 127.0.0.1:8080
> > Accept: */*
> > X-Storage-User: test:tester
> > X-Storage-Pass: testing
> >
> < HTTP/1.1 401 Unauthorized
> < Content-Length: 358
> < Content-Type: text/html; charset=UTF-8
> < Date: Thu, 10 Feb 2011 14:14:34 GMT
> <
> <html>
>  <head>
>   <title>401 Unauthorized</title>
>  </head>
>  <body>
>   <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 />
>
>
>
>  </body>
> * Connection #0 to host 127.0.0.1 left intact
> * Closing connection #0
> </html>shashi at test2:~$
> shashi at test2:~$ curl -v -H 'X-Storage-User: test:tester' -H
> 'X-Storage-Pass: testing' http://127.0.0.1:11000/v1.0
> * About to connect() to 127.0.0.1 port 11000 (#0)
> *   Trying 127.0.0.1... connected
> * Connected to 127.0.0.1 (127.0.0.1) port 11000 (#0)
> > GET /v1.0 HTTP/1.1
> > User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k
> zlib/1.2.3.3 libidn/1.15
> > Host: 127.0.0.1:11000
> > Accept: */*
> > X-Storage-User: test:tester
> > X-Storage-Pass: testing
> >
> < HTTP/1.1 401 Unauthorized
> < Content-Length: 358
> < Content-Type: text/html; charset=UTF-8
> < Date: Thu, 10 Feb 2011 14:14:46 GMT
> <
> <html>
>  <head>
>   <title>401 Unauthorized</title>
>  </head>
>  <body>
>   <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 />
>
>
>
>  </body>
> * Connection #0 to host 127.0.0.1 left intact
> * Closing connection #0
> </html>
>
> Can someone help me to resolve this error
>
>
> Thanks & Regards,
> shashi
>
>
>
> _______________________________________________
> Openstack-operators mailing list
> Openstack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20110216/6aab3374/attachment-0002.html>


More information about the Openstack-operators mailing list