problem in Authencation

Asked by abdulhamed

I am using a tutoriel :http://swift.openstack.org/development_saio.html

I'm currently trying to create a swift environment for some test, but got the following error when getting an X-Storage-Url and X-Auth-Token using test command.

root@swift:~# 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
> GET /auth/v1.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: 127.0.0.1:8080
> Accept: */*
> X-Storage-User: test:tester
> X-Storage-Pass: testing
>
< HTTP/1.1 200 OK
< X-Storage-Url: http://127.0.0.1:8080/v1/AUTH_test
< X-Auth-Token: AUTH_tkca30d37fee024ed7a41e738a726f38e7
< Content-Type: text/html; charset=UTF-8
< X-Storage-Token: AUTH_tkca30d37fee024ed7a41e738a726f38e7
< Content-Length: 0
< Date: Mon, 05 Aug 2013 07:07:35 GMT
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0

root@swift:~# curl -v -H 'X-Auth-Token: AUTH_tkca30d37fee024ed7a41e738a726f38e7' http://127.0.0.1:8080/v1/AUTH_test
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1... connected
> GET /v1/AUTH_test 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: 127.0.0.1:8080
> Accept: */*
> X-Auth-Token: AUTH_tkca30d37fee024ed7a41e738a726f38e7
>
< HTTP/1.1 401 Unauthorized
< Content-Length: 131
< Content-Type: text/html; charset=UTF-8
< Date: Mon, 05 Aug 2013 07:08:51 GMT
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
<html><h1>Unauthorized</h1><p>This server could not verify that you are authorized to access the document you requested.</p></html>root@swift:~#

I am new for openstack, Ples help me..

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #1208348.

Revision history for this message
Kun Huang (academicgareth) said :
#1

You could ask any questions in https://answers.launchpad.net/swift

Revision history for this message
clayg (clay-gerrard) said :
#2

Only thing that comes to mind is to verify that memcached is running:

http://docs.openstack.org/developer/swift/development_saio.html#starting-memcached

Can you help with this problem?

Provide an answer of your own, or ask abdulhamed for more information if necessary.

To post a message you must log in.