[openstack-dev] [swift] temp auth tokens expire immediately

Clay Gerrard clay.gerrard at gmail.com
Wed Aug 21 23:06:39 UTC 2013


Sure *looks* like an issue with memcache...

You might try narrowing down your list of servers in the memcache ring so
you limit the places things might go wrong and try work you way back
starting with something that works.

Can you get this working:

    clayg at swift:~$ echo $ST_USER
    test:tester
    clayg at swift:~$ python -c "from swift.common.memcached import
MemcacheRing; print MemcacheRing(['127.0.0.1']).get('AUTH_/user/$ST_USER')"
    AUTH_tkd9a63e1bb2464ba4a618307ce2521bb0

-Clay


On Wed, Aug 21, 2013 at 3:08 PM, Snider, Tim <Tim.Snider at netapp.com> wrote:

>  I’ve reconfigured  my swift cluster and restarted memcache service on
> all the swift nodes.  Now I have temp auth tokens expiring immeadiately. *
> ***
>
> I’ve checked memcache server lines in /etc/swift/proxy-service.conf –
> those seem to be sane. What am I missing?****
>
> ** **
>
> ** **
>
> root at controller11:~/ssbench-0.2.16# curl -v -H 'X-Storage-User:
> test:tester' -H 'X-Storage-Pass: testing'
> http://192.168.10.68:8080/auth/v1.0****
>
> * About to connect() to 192.168.10.68 port 8080 (#0)****
>
> *   Trying 192.168.10.68... 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: 192.168.10.68:8080****
>
> > Accept: */*****
>
> > X-Storage-User: test:tester****
>
> > X-Storage-Pass: testing****
>
> > ****
>
> < HTTP/1.1 200 OK****
>
> < X-Storage-Url: http://192.168.10.88:8080/v1/AUTH_test****
>
> < X-Storage-Token: AUTH_tk768c95e7330f46efa88d82787a34e9e4****
>
> < X-Auth-Token: AUTH_tk768c95e7330f46efa88d82787a34e9e4****
>
> < X-Trans-Id: tx450df531523b450eaa966b3365250f80****
>
> < Content-Length: 0****
>
> < Date: Wed, 21 Aug 2013 22:00:38 GMT****
>
> < ****
>
> * Connection #0 to host 192.168.10.68 left intact****
>
> * Closing connection #0****
>
> root at controller11:~/ssbench-0.2.16# curl -v -H 'X-Storage-User:
> test:tester' -H 'X-Storage-Pass: testing'
> http://192.168.10.68:8080/auth/v1.0****
>
> * About to connect() to 192.168.10.68 port 8080 (#0)****
>
> *   Trying 192.168.10.68... 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: 192.168.10.68:8080****
>
> > Accept: */*****
>
> > X-Storage-User: test:tester****
>
> > X-Storage-Pass: testing****
>
> > ****
>
> < HTTP/1.1 200 OK****
>
> < X-Storage-Url: http://192.168.10.87:8080/v1/AUTH_test****
>
> < X-Storage-Token: AUTH_tk21ef1ade731e462e91d8d6d3a1d8cbbe****
>
> < X-Auth-Token: AUTH_tk21ef1ade731e462e91d8d6d3a1d8cbbe****
>
> < X-Trans-Id: txe513acba005f42d298eb7c563bb1e6a3****
>
> < Content-Length: 0****
>
> < Date: Wed, 21 Aug 2013 22:00:39 GMT****
>
> < ****
>
> * Connection #0 to host 192.168.10.68 left intact****
>
> * Closing connection #0****
>
> root at controller11:~/ssbench-0.2.16# curl -v -H 'X-Storage-User:
> test:tester' -H 'X-Storage-Pass: testing'
> http://192.168.10.68:8080/auth/v1.0****
>
> * About to connect() to 192.168.10.68 port 8080 (#0)****
>
> *   Trying 192.168.10.68... 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: 192.168.10.68:8080****
>
> > Accept: */*****
>
> > X-Storage-User: test:tester****
>
> > X-Storage-Pass: testing****
>
> > ****
>
> < HTTP/1.1 200 OK****
>
> < X-Storage-Url: http://192.168.10.88:8080/v1/AUTH_test****
>
> < X-Storage-Token: AUTH_tkf433982fff3d484591826d1a02e54f7c****
>
> < X-Auth-Token: AUTH_tkf433982fff3d484591826d1a02e54f7c****
>
> < X-Trans-Id: txc009e567a213466a9de01ab14004c053****
>
> < Content-Length: 0****
>
> < Date: Wed, 21 Aug 2013 22:00:41 GMT****
>
> < ****
>
> * Connection #0 to host 192.168.10.68 left intact****
>
> * Closing connection #0****
>
> root at controller11:~/ssbench-0.2.16# ****
>
> ** **
>
> Thanks,****
>
> Tim****
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130821/80ff4003/attachment.html>


More information about the OpenStack-dev mailing list