← Back to team overview

openstack team mailing list archive

Re: [openstack-dev] [OpenStack]

 

Hi Daniele,

Thanks for the reply. I tried to start memcached using

service memcached start

but even after doing this the ps -A | grep "memcached"  returns nothing and
multiple tokens are generated


On 17 January 2013 16:33, Daniele Valeriani <daniele@xxxxxxxxxxxxxx> wrote:

> Sujay,
>
> If memcached isn't running the proxy server doesn't have a backend to
> store auth tokens (and the cache section in your config becomes vain). The
> proxy server then generates a new token for each new request.
> This should be OK after memcached has started.
>
> Daniele
>
> Daniele
>
>
> On 17 January 2013 10:54, Sujay M <sujay.m17@xxxxxxxxx> wrote:
>
>>  Hi all,
>>
>> I have set up a proxy server on 10.0.2.15 and 4 storage nodes on
>> 10.0.2.16-19
>>
>> My proxy-server configuration file
>>
>> root@ubuntu:~# /etc/swift/proxy-server.conf [DEFAULT]
>> bind_port = 8080
>> user = ug26
>> workers = 8
>>
>> [pipeline:main]
>> pipeline = healthcheck cache tempauth proxy-server
>>
>> [app:proxy-server]
>> use = egg:swift#proxy
>> allow_account_management = true
>> account_autocreate = true
>>
>> [filter:tempauth]
>> use = egg:swift#tempauth
>> user_admin_admin = admin .admin .reseller_admin
>> user_test_tester = testing .admin
>> user_test2_tester2 = testing2 .admin
>> user_test_tester3 = testing3
>>
>> [filter:healthcheck]
>> use = egg:swift#healthcheck
>>
>> [filter:cache]
>> use = egg:swift#memcache
>>
>>
>> I am getting a different auth token each time i try to get an auth url
>>
>> root@ubuntu:~# curl -k -v -H 'X-Storage-User: test:tester' -H
>> 'X-Storage-Pass: testing' http://10.0.2.15:8080/auth/v1.0
>> * About to connect() to 10.0.2.15 port 8080 (#0)
>> *   Trying 10.0.2.15... 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: 10.0.2.15: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-Storage-Token: AUTH_tkf673fe7a7fc5428398c53bc633f5ff5e
>> < X-Auth-Token: AUTH_tkf673fe7a7fc5428398c53bc633f5ff5e
>> < Content-Length: 0
>> < Date: Thu, 17 Jan 2013 10:44:03 GMT
>> <
>> * Connection #0 to host 10.0.2.15 left intact
>> * Closing connection #0
>> root@ubuntu:~# curl -k -v -H 'X-Storage-User: test:tester' -H
>> 'X-Storage-Pass: testing' http://10.0.2.15:8080/auth/v1.0
>> * About to connect() to 10.0.2.15 port 8080 (#0)
>> *   Trying 10.0.2.15... 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: 10.0.2.15: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-Storage-Token: AUTH_tke4fec7d8413d46df9eb867064e07ac83
>> < X-Auth-Token: AUTH_tke4fec7d8413d46df9eb867064e07ac83
>> < Content-Length: 0
>> < Date: Thu, 17 Jan 2013 10:44:06 GMT
>> <
>> * Connection #0 to host 10.0.2.15 left intact
>> * Closing connection #0
>>
>>
>> I am alos unable to GEt an account
>> root@ubuntu:~# curl -k -v -H 'X-Auth-Token: AUTH_
>> tke4fec7d8413d46df9eb867064e07ac83' http://10.0.2.15:8080/v1/AUTH_test
>> * About to connect() to 10.0.2.15 port 8080 (#0)
>> *   Trying 10.0.2.15... 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: 10.0.2.15:8080
>> > Accept: */*
>> > X-Auth-Token: AUTH_tke4fec7d8413d46df9eb867064e07ac83
>> >
>> < HTTP/1.1 401 Unauthorized
>> < Content-Length: 358
>> < Content-Type: text/html; charset=UTF-8
>> < Date: Thu, 17 Jan 2013 10:44:09 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 10.0.2.15 left intact
>> * Closing connection #0
>>
>> Also if i do
>>
>> ps -A | grep "memcached"  it is no returning anything. I think its a
>> problem with memcached.
>>
>> please help me. Thanks in advance.
>>
>>
>> --
>> Best Regards,
>>
>> Sujay M
>> Final year B.Tech
>> Computer Engineering
>> NITK Surathkal
>>
>> contact: +918971897571
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev@xxxxxxxxxxxxxxxxxxx
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Best Regards,

Sujay M
Final year B.Tech
Computer Engineering
NITK Surathkal

contact: +918971897571

Follow ups

References