Hi all I use openstack keystone to integrate with ceph radosgw for object storage But when i call "swift stat" command , it always 401 error "Account HEAD failed: http://10.62.9.140:7480/swift/v1 401 Unauthorized"
following is log DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://10.62.13.253:5000/v2.0/tokens INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.62.13.253 DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 3638 INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.62.9.140 DEBUG:requests.packages.urllib3.connectionpool:"HEAD /swift/v1 HTTP/1.1" 401 0 INFO:swiftclient:REQ: curl -i http://10.62.9.140:7480/swift/v1 -I -H "X-Auth-Token: 677444dfb01b41f98d786a28c84ad4e2" INFO:swiftclient:RESP STATUS: 401 Unauthorized INFO:swiftclient:RESP HEADERS: [('X-Trans-Id', 'tx000000000000000000001-0057d6600f-d352-default'), ('Content-Length', '12'), ('Accept-Ranges', 'bytes'), ('Content-Type', 'text/plain; charset=utf-8'), ('Date', 'Mon, 12 Sep 2016 07:58:07 GMT')] DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://10.62.13.253:5000/v2.0/tokens INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.62.13.253 DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 3638 INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.62.9.140 DEBUG:requests.packages.urllib3.connectionpool:"HEAD /swift/v1 HTTP/1.1" 401 0 INFO:swiftclient:REQ: curl -i http://10.62.9.140:7480/swift/v1 -I -H "X-Auth-Token: f67c29ebff52413a9b2f0119fbf9c60e" INFO:swiftclient:RESP STATUS: 401 Unauthorized INFO:swiftclient:RESP HEADERS: [('X-Trans-Id', 'tx000000000000000000002-0057d66010-d352-default'), ('Content-Length', '12'), ('Accept-Ranges', 'bytes'), ('Content-Type', 'text/plain; charset=utf-8'), ('Date', 'Mon, 12 Sep 2016 07:58:08 GMT')] ERROR:swiftclient:Account HEAD failed: http://10.62.9.140:7480/swift/v1 401 Unauthorized Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry service_token=self.service_token, **kwargs) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 591, in head_account http_response_content=body) ClientException: Account HEAD failed: http://10.62.9.140:7480/swift/v1 401 Unauthorized ERROR:swiftclient.service:Account HEAD failed: http://10.62.9.140:7480/swift/v1 401 Unauthorized Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 435, in stat items, headers = get_future_result(stats_future) File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 204, in get_future_result res = f.result(timeout=timeout) File "/usr/lib/python2.7/site-packages/concurrent/futures/_base.py", line 403, in result return self.__get_result() File "/usr/lib/python2.7/site-packages/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python2.7/site-packages/swiftclient/multithreading.py", line 188, in conn_fn return fn(*conn_args, **kwargs) File "/usr/lib/python2.7/site-packages/swiftclient/command_helpers.py", line 23, in stat_account headers = conn.head_account() File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1430, in head_account return self._retry(None, head_account) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry service_token=self.service_token, **kwargs) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 591, in head_account http_response_content=body) ClientException: Account HEAD failed: http://10.62.9.140:7480/swift/v1 401 Unauthorized Account HEAD failed: http://10.62.9.140:7480/swift/v1 401 Unauthorized Could you tell me what happened ?
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com