swift 401 Unauthorized: Temp URL invalid

asked 2014-09-24 01:23:44 -0600

flyingoncloud gravatar image

I configured /etc/swift/proxy-server.conf to use temp url.

[pipeline:main] pipeline = catch_errors bulk healthcheck cache crossdomain ratelimit tempurl authtoken keystone staticweb slo formpost account_quotas container_quotas proxy-server

[filter:tempurl] use = egg:swift#tempurl incoming_allow_headers = incoming_remove_headers = x-timestamp methods = GET HEAD PUT POST DELETE outgoing_allow_headers = x-object-meta-public-* outgoing_remove_headers = x-object-meta-*

While I tried to verify the swift with temp url, I got the error above. Any ideas?

[root@ror-openstack ~(keystone_demo)]# swift list cloudfoundry-packages 52/75/52751ef9-f2fa-4afd-96e8-66cd818a6ef1 [root@ror-openstack ~(keystone_demo)]#

[root@ror-openstack ~(keystone_demo)]# swift stat Account: AUTH_cfe9f5b6e3bf4bacaec2bfad67d21ba7 Containers: 3 Objects: 1 Bytes: 775 Meta Temp-Url-Key: b3968d0207b54ece87cccc06515a89d4 X-Timestamp: 1411449537.83052 X-Trans-Id: txa150681cbb554041b7109-005422639b Content-Type: text/plain; charset=utf-8 Accept-Ranges: bytes [root@ror-openstack ~(keystone_demo)]#

[root@ror-openstack ~(keystone_demo)]# swift-temp-url GET 60 /v1/AUTH_cfe9f5b6e3bf4bacaec2bfad67d21ba7/cloudfoundry-packages/52/75/52751ef9-f2fa-4afd-96e8-66cd818a6ef1 $OS_TOKEN /v1/AUTH_cfe9f5b6e3bf4bacaec2bfad67d21ba7/cloudfoundry-packages/52/75/52751ef9-f2fa-4afd-96e8-66cd818a6ef1?temp_url_sig=91fce42937cc3c6cf1c3af5a3a1cb06680ec490f&temp_url_expires=1411539033

[root@ror-openstack ~(keystone_demo)]# curl "http://137.172.74.130:8080/v1/AUTH_cfe9f5b6e3bf4bacaec2bfad67d21ba7/cloudfoundry-packages/52/75/52751ef9-f2fa-4afd-96e8-66cd818a6ef1?temp_url_sig=91fce42937cc3c6cf1c3af5a3a1cb06680ec490f&temp_url_expires=1411539033" 401 Unauthorized: Temp URL invalid

edit retag flag offensive close merge delete