<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div><span style="color:rgb(68,68,68)"><font color="#000000">Hi all,<br><br>I have set up a proxy server on 10.0.2.15 and 4 storage nodes on 10.0.2.16-19<br></font></span></div>
<span style="color:rgb(68,68,68)"><font color="#000000"><br>
My proxy-server configuration file<br></font></span><div><span style="color:rgb(68,68,68)"><br>root@ubuntu:~# /etc/swift/proxy-server.conf [DEFAULT]<br>bind_port = 8080<br>user = ug26<br>workers = 8<br><br>[pipeline:main]<br>
pipeline = healthcheck cache tempauth proxy-server<br><br>[app:proxy-server]<br>use = egg:swift#proxy<br>allow_account_management = true<br>account_autocreate = true<br><br>[filter:tempauth]<br>use = egg:swift#tempauth<br>
user_admin_admin = admin .admin .reseller_admin<br>user_test_tester = testing .admin<br>user_test2_tester2 = testing2 .admin<br>user_test_tester3 = testing3<br><br>[filter:healthcheck]<br>use = egg:swift#healthcheck<br><br>
[filter:cache]<br>use = egg:swift#memcache<br></span><br><br>I am getting a different auth token each time i try to get an auth url<br><br><span style="color:rgb(68,68,68)">root@ubuntu:~# curl -k -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' <a href="http://10.0.2.15:8080/auth/v1.0" target="_blank">http://10.0.2.15:8080/auth/v1.0</a><br>
* About to connect() to 10.0.2.15 port 8080 (#0)<br>* Trying 10.0.2.15... connected<br>> GET /auth/v1.0 HTTP/1.1<br>> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/<a href="http://1.2.3.4" target="_blank">1.2.3.4</a> libidn/1.23 librtmp/2.3<br>
> Host: <a href="http://10.0.2.15:8080" target="_blank">10.0.2.15:8080</a><br>> Accept: */*<br>> X-Storage-User: test:tester<br>> X-Storage-Pass: testing<br>> <br>< HTTP/1.1 200 OK<br>< X-Storage-Url: <a href="http://127.0.0.1:8080/v1/AUTH_test" target="_blank">http://127.0.0.1:8080/v1/AUTH_test</a><br>
< X-Storage-Token: AUTH_tkf673fe7a7fc5428398c53bc633f5ff5e<br>< X-Auth-Token: AUTH_tkf673fe7a7fc5428398c53bc633f5ff5e<br>< Content-Length: 0<br>< Date: Thu, 17 Jan 2013 10:44:03 GMT<br>< <br>* Connection #0 to host 10.0.2.15 left intact<br>
* Closing connection #0<br>root@ubuntu:~# curl -k -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' <a href="http://10.0.2.15:8080/auth/v1.0" target="_blank">http://10.0.2.15:8080/auth/v1.0</a><br>
* About to connect() to 10.0.2.15 port 8080 (#0)<br>
* Trying 10.0.2.15... connected<br>> GET /auth/v1.0 HTTP/1.1<br>> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/<a href="http://1.2.3.4" target="_blank">1.2.3.4</a> libidn/1.23 librtmp/2.3<br>
> Host: <a href="http://10.0.2.15:8080" target="_blank">10.0.2.15:8080</a><br>
> Accept: */*<br>> X-Storage-User: test:tester<br>> X-Storage-Pass: testing<br>> <br>< HTTP/1.1 200 OK<br>< X-Storage-Url: <a href="http://127.0.0.1:8080/v1/AUTH_test" target="_blank">http://127.0.0.1:8080/v1/AUTH_test</a><br>
< X-Storage-Token: AUTH_tke4fec7d8413d46df9eb867064e07ac83<br>< X-Auth-Token: AUTH_tke4fec7d8413d46df9eb867064e07ac83<br>< Content-Length: 0<br>< Date: Thu, 17 Jan 2013 10:44:06 GMT<br>< <br>* Connection #0 to host 10.0.2.15 left intact<br>
* Closing connection #0<br><br><br></span></div><div><span style="color:rgb(68,68,68)"><font color="#000000">I am alos unable to GEt an account</font><br></span></div><div><span style="color:rgb(68,68,68)">root@ubuntu:~# curl -k -v -H 'X-Auth-Token: AUTH_</span><span style="color:rgb(68,68,68)"><span style="color:rgb(68,68,68)">tke4fec7d8413d46df9eb867064e07ac83</span>' <a href="http://10.0.2.15:8080/v1/AUTH_test" target="_blank">http://10.0.2.15:8080/v1/AUTH_test</a> <br>
* About to connect() to 10.0.2.15 port 8080 (#0)<br>* Trying 10.0.2.15... connected<br>> GET /v1/AUTH_test HTTP/1.1<br>> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/<a href="http://1.2.3.4" target="_blank">1.2.3.4</a> libidn/1.23 librtmp/2.3<br>
> Host: <a href="http://10.0.2.15:8080" target="_blank">10.0.2.15:8080</a><br>> Accept: */*<br>> X-Auth-Token: AUTH_</span><span style="color:rgb(68,68,68)"><span style="color:rgb(68,68,68)">tke4fec7d8413d46df9eb867064e07ac83</span><br>
> <br>< HTTP/1.1 401 Unauthorized<br>< Content-Length: 358<br>< Content-Type: text/html; charset=UTF-8<br>< Date: Thu, 17 Jan 2013 10:44:09 GMT<br>< <br><html><br> <head><br> <title>401 Unauthorized</title><br>
</head><br> <body><br> <h1>401 Unauthorized</h1><br>
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 /><br>
<br><br><br> </body><br>* Connection #0 to host 10.0.2.15 left intact<br>* Closing connection #0<br></span><br></div><div>Also if i do<br><br>ps -A | grep "memcached" it is no returning anything. I think its a problem with memcached.<br>
<br>please help me. Thanks in advance.<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><div><br></div></div></font></span></div></div><br>-- <br><div dir="ltr">Best Regards,<br>
<br>Sujay M<br>Final year B.Tech<br>Computer Engineering<br>NITK Surathkal<br><br>contact: +918971897571<br></div>
</div>