[openstack-dev] [swift]Connection error with swift mitaka version
Ajitha Robert
ajitharobert01 at gmail.com
Mon Jan 2 14:08:20 UTC 2017
Hi all,
We have installed swift(mitaka version). its able to authenticate with
keystone.. but couldnt process the request in swift side.. swift(proxy
server) is not accepting the request/token..
I got the following error when i give openstack container list
Starting new HTTP connection (1): swifthost
Unable to establish connection to
http://swifthost:8080/v1/AUTH_080e4cf4b97846fe846fd3f679d7f5a3
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 387, in
run_subcommand
result = cmd.run(parsed_args)
File
"/usr/local/lib/python2.7/dist-packages/openstackclient/common/command.py",
line 38, in run
return super(Command, self).run(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 100,
in run
column_names, data = self.take_action(parsed_args)
File
"/usr/local/lib/python2.7/dist-packages/openstackclient/object/v1/container.py",
line 151, in take_action
**kwargs
File
"/usr/local/lib/python2.7/dist-packages/openstackclient/api/object_store_v1.py",
line 124, in container_list
return self.list('', **params)
File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/api.py",
line 197, in list
params=params,
File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/api.py",
line 83, in _request
return session.request(url, method, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/openstackclient/common/session.py",
line 40, in request
resp = super(TimingSession, self).request(url, method, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line
101, in inner
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py",
line 555, in request
resp = send(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py",
line 599, in _send_request
raise exceptions.ConnectFailure(msg)
ConnectFailure: Unable to establish connection to
http://swifthost:8080/v1/AUTH_080e4cf4b97846fe846fd3f679d7f5a3
clean_up ListContainer: Unable to establish connection to
http://swifthost:8080/v1/AUTH_080e4cf4b97846fe846fd3f679d7f5a3
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py",
line 118, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 267, in run
result = self.run_subcommand(remainder)
File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py",
line 153, in run_subcommand
ret_value = super(OpenStackShell, self).run_subcommand(argv)
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 387, in
run_subcommand
result = cmd.run(parsed_args)
File
"/usr/local/lib/python2.7/dist-packages/openstackclient/common/command.py",
line 38, in run
return super(Command, self).run(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 100,
in run
column_names, data = self.take_action(parsed_args)
File
"/usr/local/lib/python2.7/dist-packages/openstackclient/object/v1/container.py",
line 151, in take_action
**kwargs
File
"/usr/local/lib/python2.7/dist-packages/openstackclient/api/object_store_v1.py",
line 124, in container_list
return self.list('', **params)
File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/api.py",
line 197, in list
params=params,
File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/api.py",
line 83, in _request
return session.request(url, method, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/openstackclient/common/session.py",
line 40, in request
resp = super(TimingSession, self).request(url, method, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line
101, in inner
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py",
line 555, in request
resp = send(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py",
line 599, in _send_request
raise exceptions.ConnectFailure(msg)
ConnectFailure: Unable to establish connection to
http://swifthost:8080/v1/AUTH_080e4cf4b97846fe846fd3f679d7f5a3
END return value: 1
Also my swift.log always throwing 404 error which follows
Jan 2 19:05:12 swifthost2 proxy-server: 10.208.252.2 10.208.252.2
02/Jan/2017/13/35/12 OPTIONS / HTTP/1.0 404 - - - - 70 -
tx333cbe62e4234c8aa7abc-00586a5710 - 0.0015 - - 1483364112.814496994
1483364112.816014051 -
Jan 2 19:05:12 swifthost2 proxy-server: 10.208.252.2 10.208.252.2
02/Jan/2017/13/35/12 OPTIONS / HTTP/1.0 404 - - - - 70 -
tx410e29ac554c4d6bbb7ea-00586a5710 - 0.0016 - - 1483364112.815314054
1483364112.816864967 -
Jan 2 19:05:14 swifthost2 object-auditor: Begin object audit "forever" mode
(ZBF)
Jan 2 19:05:14 swifthost2 object-auditor: Object audit (ZBF) "forever" mode
completed: 0.00s. Total quarantined: 0, Total errors: 0, Total files/sec:
0.00, Total bytes/sec: 0.00, Auditing time: 0.00, Rate: 0.00
Jan 2 19:05:14 swifthost2 proxy-server: Deferring reject downstream
Jan 2 19:05:14 swifthost2 proxy-server: 10.208.252.3 10.208.252.3
02/Jan/2017/13/35/14 OPTIONS / HTTP/1.0 404 - - - - 70 -
tx183eee6f0058415889130-00586a5712 - 0.0015 - - 1483364114.814668894
1483364114.816170931 -
Jan 2 19:05:14 swifthost2 proxy-server: Deferring reject downstream
Jan 2 19:05:14 swifthost2 proxy-server: Deferring reject downstream
Jan 2 19:05:14 swifthost2 proxy-server: 10.208.252.2 10.208.252.2
02/Jan/2017/13/35/14 OPTIONS / HTTP/1.0 404 - - - - 70 -
tx0cfbf2dd29b94531942f5-00586a5712 - 0.0012 - - 1483364114.819396973
1483364114.820627928 -
Jan 2 19:05:14 swifthost2 proxy-server: 10.208.252.2 10.208.252.2
02/Jan/2017/13/35/14 OPTIONS / HTTP/1.0 404 - - - - 70 -
tx456d640865b4440a94150-00586a5712 - 0.0015 - - 1483364114.819680929
1483364114.821194887 -
Jan 2 19:05:14 swifthost2 account-replicator: Beginning replication run
Jan 2 19:05:14 swifthost2 account-replicator: Replication run OVER
Jan 2 19:05:14 swifthost2 account-replicator: Attempted to replicate 0 dbs
in 0.00080 seconds (0.00000/s)
Jan 2 19:05:14 swifthost2 account-replicator: Removed 0 dbs
Jan 2 19:05:14 swifthost2 account-replicator: 0 successes, 0 failures
Jan 2 19:05:14 swifthost2 account-replicator: no_change:0 ts_repl:0 diff:0
rsync:0 diff_capped:0 hashmatch:0 empty:0
Jan 2 19:05:15 swifthost2 account-server: 10.208.252.2 - -
[02/Jan/2017:13:35:15 +0000] "HEAD /c0d1/262/.misplaced_objects" 404 -
"HEAD http://localhost/v1/.misplaced_objects"
"tx220ebad6b1454fcd8191d-00586a5713" "proxy-server 25466" 0.0006 "-" 15056 -
Jan 2 19:05:15 swifthost2 account-server: 10.208.252.2 - -
[02/Jan/2017:13:35:15 +0000] "GET /c0d1/262/.misplaced_objects" 404 - "GET
http://localhost/v1/.misplaced_objects?format=json&marker=&end_marker="
"txfb062c3a3e8242d2a1096-00586a5713" "proxy-server 25466" 0.0007 "-" 15082 -
Jan 2 19:05:15 swifthost2 swift: - - 02/Jan/2017/13/35/15 GET
/v1/.misplaced_objects/1483362000%3Fformat%3Djson%26marker%3D%26end_marker%3D
HTTP/1.0 404 - Swift%20Container%20Reconciler - - 70 -
tx05ed3965c37c48aa82b1c-00586a5713 - 0.0012 - - 1483364115.120167017
1483364115.121400118 -
Jan 2 19:05:15 swifthost2 account-server: 10.208.252.3 - -
[02/Jan/2017:13:35:15 +0000] "GET /c0d1/262/.misplaced_objects" 404 - "GET
http://localhost/v1/.misplaced_objects?format=json&marker=&end_marker="
"tx44169cbf86e440c0aba47-00586a5713" "proxy-server 14954" 0.0005 "-" 15082 -
Jan 2 19:05:15 swifthost2 swift: - - 02/Jan/2017/13/35/15 GET
/v1/.misplaced_objects%3Fformat%3Djson%26marker%3D%26end_marker%3D HTTP/1.0
404 - Swift%20Container%20Reconciler - - - -
tx44169cbf86e440c0aba47-00586a5713 - 0.0078 - - 1483364115.122296095
1483364115.130084038 -
Will it be any db issues??? please let me know how can i fix this
also
swift --debug stat results in
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to
http://keystonehost:35358/v3/auth/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): keystonehost
DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens
HTTP/1.1" 201 5089
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): keystonehost
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): keystonehost
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): keystonehost
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): keystonehost
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): keystonehost
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): keystonehost
ERROR:swiftclient:('Connection aborted.', BadStatusLine("''",))
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line
1565, in _retry
service_token=self.service_token, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line
739, in head_account
conn.request(method, parsed.path, '', headers)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line
401, in request
files=files, **self.requests_args)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line
384, in _request
return self.request_session.request(*arg, **kwarg)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line
475, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line
596, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line
473, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', BadStatusLine("''",))
ERROR:swiftclient.service:('Connection aborted.', BadStatusLine("''",))
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/swiftclient/service.py", line
440, in stat
items, headers = get_future_result(stats_future)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/service.py", line
207, in get_future_result
res = f.result(timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/concurrent/futures/_base.py",
line 405, in result
return self.__get_result()
File "/usr/local/lib/python2.7/dist-packages/concurrent/futures/thread.py",
line 55, in run
result = self.fn(*self.args, **self.kwargs)
File
"/usr/local/lib/python2.7/dist-packages/swiftclient/multithreading.py",
line 188, in conn_fn
return fn(*conn_args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/swiftclient/command_helpers.py",
line 23, in stat_account
headers = conn.head_account()
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line
1605, in head_account
return self._retry(None, head_account)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line
1565, in _retry
service_token=self.service_token, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line
739, in head_account
conn.request(method, parsed.path, '', headers)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line
401, in request
files=files, **self.requests_args)
File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line
384, in _request
return self.request_session.request(*arg, **kwarg)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line
475, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line
596, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line
473, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', BadStatusLine("''",))
('Connection aborted.', BadStatusLine("''",))
--
*Regards,Ajitha R*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170102/d606d973/attachment.html>
More information about the OpenStack-dev
mailing list