Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Failed to get Get an X-Storage-Url and X-Auth-Token

Hi All,

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@proxy-node:/etc/swift# curl -k -v -H 'X-Storage-User: system:root' -H 'X-Storage-Pass: testpass' https://$PROXY_LOCAL_NET_IP:8080/auth/v1.0 * About to connect() to 172.17.1.121 port 8080 (#0) * Trying 172.17.1.121... connected * Connected to 172.17.1.121 (172.17.1.121) port 8080 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS handshake, Server finished (14): * SSLv3, TLS handshake, Client key exchange (16): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSL connection using AES256-SHA * Server certificate: * subject: C=CH; ST=SHANXI; L=XIAN; O=Platform; OU=Computing; CN=Guangya; emailAddress=gyliu@platform.com * start date: 2011-08-05 09:36:55 GMT * expire date: 2011-09-04 09:36:55 GMT * common name: Guangya (does not match '172.17.1.121') * issuer: C=CH; ST=SHANXI; L=XIAN; O=Platform; OU=Computing; CN=Guangya; emailAddress=gyliu@platform.com * SSL certificate verify result: self signed certificate (18), continuing anyway.

GET /auth/v1.0 HTTP/1.1 User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15 Host: 172.17.1.121:8080 Accept: / X-Storage-User: system:root X-Storage-Pass: testpass

< HTTP/1.1 401 Unauthorized < Content-Length: 358 < Content-Type: text/html; charset=UTF-8 < Date: Fri, 05 Aug 2011 09:57:37 GMT < <html> <head> <title>401 Unauthorized</title> </head> <body>

401 Unauthorized

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.

</body> * Connection #0 to host 172.17.1.121 left intact * Closing connection #0 * SSLv3, TLS alert, Client hello (1): </html>root@proxy-node:/etc/swift# vi proxy-server.conf

root@proxy-node:/etc/swift# cat proxy-server.conf [DEFAULT] cert_file = /etc/swift/cert.crt key_file = /etc/swift/cert.key bind_port = 8080 workers = 8 user = swift

[pipeline:main] pipeline = healthcheck cache auth proxy-server

[app:proxy-server] use = egg:swift#proxy allow_account_management = true

[filter:auth] use = egg:swift#auth user_system_root = testpass .admin https://172.17.1.121:8080/v1/AUTH_system

[filter:healthcheck] use = egg:swift#healthcheck

[filter:cache] use = egg:swift#memcache memcache_servers = 172.17.1.121:11211

I was using multi-node configuration, the steps that I followed is get from: http://swift.openstack.org/howto_installmultinode.html

Thanks,

Guangya Liu gyliu@platform.com