Ask Your Question
0

problem in Authencation

asked 2013-08-05 07:11:53 -0500

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>

Unauthorized

This server could not verify that you are authorized to access the document you requested.

</html>root@swift:~#

I am new for openstack, Ples help me..

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-08-08 05:13:59 -0500

clay-gerrard gravatar image

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

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

edit flag offensive delete link more
0

answered 2013-08-08 03:38:26 -0500

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-08-05 07:11:53 -0500

Seen: 19 times

Last updated: Aug 08 '13