Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

swift 1.13.0 delete account failed --504 Gateway timeout

Hi, everyone. I installed swift 1.13.0 (from source) in my test environment, in which there are 2 load-balancers, 2 proxy nodes and 5 storage nodes(running account-server, container-server and object-server).
I used swauth(1.8.0) as my auth service.

I can create accounts and users, and use those account&users to CRUD objects.
Everyting works well but, I just can't delete account!
I can delete a user, but when I execute "swauth-delete-account -A URL -K swauthkey account_name",
it always reports "Account deletion failed: 504 Gateway Time-out".
I don't know why, could someone help me?
Thanks!

Here is the log file:
May 21 13:49:57 SHA02-PRX-01 proxy-server: Handoff requested (1) (txn: tx58654b7788b04db4b3a95-00537c3e85)
May 21 13:49:57 SHA02-PRX-01 proxy-server: Handoff requested (2) (txn: tx58654b7788b04db4b3a95-00537c3e85)
May 21 13:49:57 SHA02-PRX-01 proxy-server: Handoff requested (3) (txn: tx58654b7788b04db4b3a95-00537c3e85)
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 HEAD /v1/v2 HTTP/1.0 204 - Swift - - - - tx58654b7788b04db4b3a95-00537c3e85 - 0.0152 GET_INFO - 1400651397.900619030 1400651397.915851116
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 GET /v1/AUTH_.auth/mesh%3Fformat%3Djson%26marker%3D HTTP/1.0 200 - Swauth - - 172 - tx58654b7788b04db4b3a95-00537c3e85 - 0.0060 SWTH - 1400651397.916464090 1400651397.922458887
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 GET /v1/AUTH_.auth/mesh%3Fformat%3Djson%26marker%3D.services HTTP/1.0 200 - Swauth - - 2 - tx58654b7788b04db4b3a95-00537c3e85 - 0.0059 SWTH - 1400651397.922954082 1400651397.928890944
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 GET /v1/AUTH_.auth/mesh/.services HTTP/1.0 200 - Swauth - - 108 - tx58654b7788b04db4b3a95-00537c3e85 - 0.0041 SWTH - 1400651397.929337978 1400651397.933403969
May 21 13:51:01 SHA02-PRX-01 proxy-server: STDOUT: EXCEPTION IN handle: Traceback (most recent call last):#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 454, in handle#012 return self.handle_request(req)(env, start_response)#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 521, in handle_request#012 req.response = handler(req)#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 870, in handle_delete_account#012 headers={'X-Auth-Token': self.get_itoken(req.environ)})#012 File "/usr/lib/python2.7/httplib.py", line 958, in request#012 self._send_request(method, url, body, headers)#012 File "/usr/lib/python2.7/httplib.py", line 992, in _send_request#012 self.endheaders(body)#012 File "/usr/lib/python2.7/httplib.py", line 954, in endheaders#012 self._send_output(message_body)#012 File "/usr/lib/python2.7/httplib.py", line 814, in _send_output#012 self.send(msg)#012 File "/usr/lib/python2.7/httplib.py", line 776, in send#012 self.connect()#012 File "/usr/lib/python2.7/httplib.py", line 757, in connect#012 self.timeout, self.source_address)#012 File "/usr/lib/python2.7/dist-packages/eventlet/green/socket.py", line 59, in create_connection#012 raise error, msg#012error: [Errno 110] ETIMEDOUT#012: {'SCRIPT_NAME': '/auth/v2/mesh', 'REQUEST_METHOD': 'DELETE', 'PATH_INFO': '', 'SERVER_PROTOCOL': 'HTTP/1.0', 'swift.account/v2': {'status': 404, 'container_count': 0, 'bytes': None, 'total_object_count': None, 'meta': {}, 'sysmeta': {}}, 'REMOTE_PORT': '36178', 'SERVER_NAME': '10.12.20.21', 'REMOTE_ADDR': '10.12.20.11', 'eventlet.input': <eventlet.wsgi.input object="" at="" 0x259c890="">, 'HTTP_X_AUTH_ADMIN_KEY': 'Q5MIccGxtYay64zG', 'wsgi.url_scheme': 'http', 'SERVER_PORT': '80', 'HTTP_X_AUTH_ADMIN_USER': '.super_admin', 'wsgi.input': <swift.common.utils.inputproxy object="" at="" 0x259cdd0="">, 'HTTP_HOST': '10.12.5.10', 'swift.cache': <swift.common.memcached.memcachering object="" <br=""> May 21 13:51:01 SHA02-PRX-01 proxy-server: 10.11.20.52 10.12.20.11 21/May/2014/05/51/01 DELETE /auth/v2/mesh HTTP/1.0 500 - - - - 23 - tx58654b7788b04db4b3a95-00537c3e85 - 63.1988 - - 1400651397.899791956 1400651461.098587990

swift 1.13.0 delete account failed --504 Gateway timeout

Hi, everyone. I installed swift 1.13.0 (from source) in my test environment, in which there are 2 load-balancers, 2 proxy nodes and 5 storage nodes(running account-server, container-server and object-server).
I used swauth(1.8.0) as my auth service.

I can create accounts and users, and use those account&users to CRUD objects.
Everyting works well but, I just can't delete account!
I can delete a user, but when I execute "swauth-delete-account -A URL -K swauthkey account_name",
it always reports "Account deletion failed: 504 Gateway Time-out".
I also tried swauth 1.4.0, but encountered the same problem.

I don't know why, could someone help me?
Thanks!

Here is the log file:
May 21 13:49:57 SHA02-PRX-01 proxy-server: Handoff requested (1) (txn: tx58654b7788b04db4b3a95-00537c3e85)
May 21 13:49:57 SHA02-PRX-01 proxy-server: Handoff requested (2) (txn: tx58654b7788b04db4b3a95-00537c3e85)
May 21 13:49:57 SHA02-PRX-01 proxy-server: Handoff requested (3) (txn: tx58654b7788b04db4b3a95-00537c3e85)
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 HEAD /v1/v2 HTTP/1.0 204 - Swift - - - - tx58654b7788b04db4b3a95-00537c3e85 - 0.0152 GET_INFO - 1400651397.900619030 1400651397.915851116
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 GET /v1/AUTH_.auth/mesh%3Fformat%3Djson%26marker%3D HTTP/1.0 200 - Swauth - - 172 - tx58654b7788b04db4b3a95-00537c3e85 - 0.0060 SWTH - 1400651397.916464090 1400651397.922458887
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 GET /v1/AUTH_.auth/mesh%3Fformat%3Djson%26marker%3D.services HTTP/1.0 200 - Swauth - - 2 - tx58654b7788b04db4b3a95-00537c3e85 - 0.0059 SWTH - 1400651397.922954082 1400651397.928890944
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 GET /v1/AUTH_.auth/mesh/.services HTTP/1.0 200 - Swauth - - 108 - tx58654b7788b04db4b3a95-00537c3e85 - 0.0041 SWTH - 1400651397.929337978 1400651397.933403969
May 21 13:51:01 SHA02-PRX-01 proxy-server: STDOUT: EXCEPTION IN handle: Traceback (most recent call last):#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 454, in handle#012 return self.handle_request(req)(env, start_response)#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 521, in handle_request#012 req.response = handler(req)#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 870, in handle_delete_account#012 headers={'X-Auth-Token': self.get_itoken(req.environ)})#012 File "/usr/lib/python2.7/httplib.py", line 958, in request#012 self._send_request(method, url, body, headers)#012 File "/usr/lib/python2.7/httplib.py", line 992, in _send_request#012 self.endheaders(body)#012 File "/usr/lib/python2.7/httplib.py", line 954, in endheaders#012 self._send_output(message_body)#012 File "/usr/lib/python2.7/httplib.py", line 814, in _send_output#012 self.send(msg)#012 File "/usr/lib/python2.7/httplib.py", line 776, in send#012 self.connect()#012 File "/usr/lib/python2.7/httplib.py", line 757, in connect#012 self.timeout, self.source_address)#012 File "/usr/lib/python2.7/dist-packages/eventlet/green/socket.py", line 59, in create_connection#012 raise error, msg#012error: [Errno 110] ETIMEDOUT#012: {'SCRIPT_NAME': '/auth/v2/mesh', 'REQUEST_METHOD': 'DELETE', 'PATH_INFO': '', 'SERVER_PROTOCOL': 'HTTP/1.0', 'swift.account/v2': {'status': 404, 'container_count': 0, 'bytes': None, 'total_object_count': None, 'meta': {}, 'sysmeta': {}}, 'REMOTE_PORT': '36178', 'SERVER_NAME': '10.12.20.21', 'REMOTE_ADDR': '10.12.20.11', 'eventlet.input': <eventlet.wsgi.input object="" at="" 0x259c890="">, 'HTTP_X_AUTH_ADMIN_KEY': 'Q5MIccGxtYay64zG', 'wsgi.url_scheme': 'http', 'SERVER_PORT': '80', 'HTTP_X_AUTH_ADMIN_USER': '.super_admin', 'wsgi.input': <swift.common.utils.inputproxy object="" at="" 0x259cdd0="">, 'HTTP_HOST': '10.12.5.10', 'swift.cache': <swift.common.memcached.memcachering object="" <br=""> May 21 13:51:01 SHA02-PRX-01 proxy-server: 10.11.20.52 10.12.20.11 21/May/2014/05/51/01 DELETE /auth/v2/mesh HTTP/1.0 500 - - - - 23 - tx58654b7788b04db4b3a95-00537c3e85 - 63.1988 - - 1400651397.899791956 1400651461.098587990

swift 1.13.0 delete account failed --504 Gateway timeout

Hi, everyone. I installed swift 1.13.0 (from source) in my test environment, in which there are 2 load-balancers, 2 proxy nodes and 5 storage nodes(running account-server, container-server and object-server).
I used swauth(1.8.0) as my auth service.

I can create accounts and users, and use those account&users to CRUD objects.
Everyting works well but, I just can't delete account!
I can delete a user, but when I execute "swauth-delete-account swauth-delete-account -A URL -K swauthkey account_name", account_name,
it always reports "Account Account deletion failed: 504 Gateway Time-out".
Time-out
. I also tried swauth 1.4.0, but encountered the same problem.
I don't know why, could someone help me?
Thanks!

Here is the log file:

May 21 13:49:57 SHA02-PRX-01 proxy-server: Handoff requested (1) (txn: tx58654b7788b04db4b3a95-00537c3e85) 
May 21 13:49:57 SHA02-PRX-01 proxy-server: Handoff requested (2) (txn: tx58654b7788b04db4b3a95-00537c3e85)
May 21 13:49:57 SHA02-PRX-01 proxy-server: Handoff requested (3) (txn: tx58654b7788b04db4b3a95-00537c3e85)
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 HEAD /v1/v2 HTTP/1.0 204 - Swift - - - - tx58654b7788b04db4b3a95-00537c3e85 - 0.0152 GET_INFO - 1400651397.900619030 1400651397.915851116
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 GET /v1/AUTH_.auth/mesh%3Fformat%3Djson%26marker%3D HTTP/1.0 200 - Swauth - - 172 - tx58654b7788b04db4b3a95-00537c3e85 - 0.0060 SWTH - 1400651397.916464090 1400651397.922458887
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 GET /v1/AUTH_.auth/mesh%3Fformat%3Djson%26marker%3D.services HTTP/1.0 200 - Swauth - - 2 - tx58654b7788b04db4b3a95-00537c3e85 - 0.0059 SWTH - 1400651397.922954082 1400651397.928890944
May 21 13:49:57 SHA02-PRX-01 proxy-server: - - 21/May/2014/05/49/57 GET /v1/AUTH_.auth/mesh/.services HTTP/1.0 200 - Swauth - - 108 - tx58654b7788b04db4b3a95-00537c3e85 - 0.0041 SWTH - 1400651397.929337978 1400651397.933403969
May 21 13:51:01 SHA02-PRX-01 proxy-server: STDOUT: EXCEPTION IN handle: Traceback (most recent call last):#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 454, in handle#012 return self.handle_request(req)(env, start_response)#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 521, in handle_request#012 req.response = handler(req)#012 File "/usr/local/lib/python2.7/dist-packages/swauth-1.0.8-py2.7.egg/swauth/middleware.py", line 870, in handle_delete_account#012 headers={'X-Auth-Token': self.get_itoken(req.environ)})#012 File "/usr/lib/python2.7/httplib.py", line 958, in request#012 self._send_request(method, url, body, headers)#012 File "/usr/lib/python2.7/httplib.py", line 992, in _send_request#012 self.endheaders(body)#012 File "/usr/lib/python2.7/httplib.py", line 954, in endheaders#012 self._send_output(message_body)#012 File "/usr/lib/python2.7/httplib.py", line 814, in _send_output#012 self.send(msg)#012 File "/usr/lib/python2.7/httplib.py", line 776, in send#012 self.connect()#012 File "/usr/lib/python2.7/httplib.py", line 757, in connect#012 self.timeout, self.source_address)#012 File "/usr/lib/python2.7/dist-packages/eventlet/green/socket.py", line 59, in create_connection#012 raise error, msg#012error: [Errno 110] ETIMEDOUT#012: {'SCRIPT_NAME': '/auth/v2/mesh', 'REQUEST_METHOD': 'DELETE', 'PATH_INFO': '', 'SERVER_PROTOCOL': 'HTTP/1.0', 'swift.account/v2': {'status': 404, 'container_count': 0, 'bytes': None, 'total_object_count': None, 'meta': {}, 'sysmeta': {}}, 'REMOTE_PORT': '36178', 'SERVER_NAME': '10.12.20.21', 'REMOTE_ADDR': '10.12.20.11', 'eventlet.input': <eventlet.wsgi.input object="" at="" 0x259c890="">, <eventlet.wsgi.Input object at 0x259c890>, 'HTTP_X_AUTH_ADMIN_KEY': 'Q5MIccGxtYay64zG', 'wsgi.url_scheme': 'http', 'SERVER_PORT': '80', 'HTTP_X_AUTH_ADMIN_USER': '.super_admin', 'wsgi.input': <swift.common.utils.inputproxy object="" at="" 0x259cdd0="">, <swift.common.utils.InputProxy object at 0x259cdd0>, 'HTTP_HOST': '10.12.5.10', 'swift.cache': <swift.common.memcached.memcachering object="" <br=""> <swift.common.memcached.MemcacheRing object May 21 13:51:01 SHA02-PRX-01 proxy-server: 10.11.20.52 10.12.20.11 21/May/2014/05/51/01 DELETE /auth/v2/mesh HTTP/1.0 500 - - - - 23 - tx58654b7788b04db4b3a95-00537c3e85 - 63.1988 - - 1400651397.899791956 1400651461.098587990

1400651461.098587990