swift stat コマンドを実行すると、Account HEAD failed: http://controller:8080 エラーとなる。
[root@controller ~]# swift stat Account HEAD failed: http://controller:8080/v1/AUTH_b9644b0689c4469baa45f9acb009d860 500 Internal Error Failed Transaction ID: tx5e20b73a46a84c8fa48d6-005bdc5df2 [root@controller ~]#
プロキシーサービスがインストールされているコントローラーノードの messages ログで、Please check that your auth_url is correct. Unable to establish connection to http://controller:35357: といったメッセージが出力される。
[root@controller ~]# tail -F /var/log/messages Nov 2 23:32:14 controller keystoneauth.identity.generic.base: Failed to discover available identity versions when contacting http://controller:35357. Attempting to parse version from URL. Nov 2 23:32:14 controller proxy-server: 192.168.24.111 192.168.24.111 02/Nov/2018/14/32/14 HEAD /v1/AUTH_b9644b0689c4469baa45f9acb009d860%3Fformat%3Djson HTTP/1.0 500 - python-swiftclient-3.6.0 gAAAAABb3F_umyIz... - - - tx7e44e9aa511048ecbc2e4-005bdc5fee - 0.0024 - - 1541169134.134795904 1541169134.137197971 - Nov 2 23:32:14 controller proxy-server: エラー: エラーが発生しました: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/catch_errors.py", line 75, in handle_request#012 resp = self._app_call(env)#012 File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 1196, in _app_call#012 resp = self.app(env, self._start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/gatekeeper.py", line 122, in __call__#012 return self.app(env, gatekeeper_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/healthcheck.py", line 52, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/proxy_logging.py", line 332, in __call__#012 iterable = self.app(env, my_start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/memcache.py", line 109, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/listing_formats.py", line 137, in __call__#012 status, headers, resp_iter = req.call_application(self.app)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1064, in call_application#012 app_iter = application(self.environ, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/ratelimit.py", line 311, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 129, in __call__#012 resp = self.call_func(req, *args, **kw)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 193, in call_func#012 return self.func(req, *args, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 332, in __call__#012 response = self.process_request(req)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 622, in process_request#012 resp = super(AuthProtocol, self).process_request(request)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 405, in process_request#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 437, in _do_fetch_token#012 data = self.fetch_token(token, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 761, in fetch_token#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 219, in verify_token#012 auth_ref = self._request_strategy.verify_token(#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 170, in _request_strategy#012 strategy_class = self._get_strategy_class()#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 192, in _get_strategy_class#012 if self._adapter.get_endpoint(version=klass.AUTH_VERSION):#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 247, in get_endpoint#012 return self.session.get_endpoint(auth or self.auth, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1113, in get_endpoint#012 return auth.get_endpoint(self, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint#012 allow_version_hack=allow_version_hack, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data#012 service_catalog = self.get_access(session).service_catalog#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access#012 self.auth_ref = self.get_auth_ref(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 206, in get_auth_ref#012 self._plugin = self._do_create_plugin(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 161, in _do_create_plugin#012 'auth_url is correct. %s' % e)#012DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to http://controller:35357: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7efd9c9e6e10>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) (txn: tx7e44e9aa511048ecbc2e4-005bdc5fee) Nov 2 23:32:15 controller keystoneauth.identity.generic.base: Failed to discover available identity versions when contacting http://controller:35357. Attempting to parse version from URL. Nov 2 23:32:15 controller proxy-server: 192.168.24.111 192.168.24.111 02/Nov/2018/14/32/15 HEAD /v1/AUTH_b9644b0689c4469baa45f9acb009d860%3Fformat%3Djson HTTP/1.0 500 - python-swiftclient-3.6.0 gAAAAABb3F_umyIz... - - - tx6ef28080f8ce4809bbcc8-005bdc5fef - 0.0045 - - 1541169135.141923904 1541169135.146471977 - Nov 2 23:32:15 controller proxy-server: エラー: エラーが発生しました: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/catch_errors.py", line 75, in handle_request#012 resp = self._app_call(env)#012 File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 1196, in _app_call#012 resp = self.app(env, self._start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/gatekeeper.py", line 122, in __call__#012 return self.app(env, gatekeeper_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/healthcheck.py", line 52, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/proxy_logging.py", line 332, in __call__#012 iterable = self.app(env, my_start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/memcache.py", line 109, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/listing_formats.py", line 137, in __call__#012 status, headers, resp_iter = req.call_application(self.app)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1064, in call_application#012 app_iter = application(self.environ, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/ratelimit.py", line 311, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 129, in __call__#012 resp = self.call_func(req, *args, **kw)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 193, in call_func#012 return self.func(req, *args, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 332, in __call__#012 response = self.process_request(req)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 622, in process_request#012 resp = super(AuthProtocol, self).process_request(request)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 405, in process_request#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 437, in _do_fetch_token#012 data = self.fetch_token(token, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 761, in fetch_token#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 219, in verify_token#012 auth_ref = self._request_strategy.verify_token(#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 170, in _request_strategy#012 strategy_class = self._get_strategy_class()#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 192, in _get_strategy_class#012 if self._adapter.get_endpoint(version=klass.AUTH_VERSION):#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 247, in get_endpoint#012 return self.session.get_endpoint(auth or self.auth, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1113, in get_endpoint#012 return auth.get_endpoint(self, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint#012 allow_version_hack=allow_version_hack, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data#012 service_catalog = self.get_access(session).service_catalog#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access#012 self.auth_ref = self.get_auth_ref(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 206, in get_auth_ref#012 self._plugin = self._do_create_plugin(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 161, in _do_create_plugin#012 'auth_url is correct. %s' % e)#012DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to http://controller:35357: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7efd9c9e6f10>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) (txn: tx6ef28080f8ce4809bbcc8-005bdc5fef) Nov 2 23:32:17 controller keystoneauth.identity.generic.base: Failed to discover available identity versions when contacting http://controller:35357. Attempting to parse version from URL. Nov 2 23:32:17 controller proxy-server: 192.168.24.111 192.168.24.111 02/Nov/2018/14/32/17 HEAD /v1/AUTH_b9644b0689c4469baa45f9acb009d860%3Fformat%3Djson HTTP/1.0 500 - python-swiftclient-3.6.0 gAAAAABb3F_umyIz... - - - tx7a7a168abf3b4770b852e-005bdc5ff1 - 0.0045 - - 1541169137.152441978 1541169137.156980038 - Nov 2 23:32:17 controller proxy-server: エラー: エラーが発生しました: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/catch_errors.py", line 75, in handle_request#012 resp = self._app_call(env)#012 File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 1196, in _app_call#012 resp = self.app(env, self._start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/gatekeeper.py", line 122, in __call__#012 return self.app(env, gatekeeper_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/healthcheck.py", line 52, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/proxy_logging.py", line 332, in __call__#012 iterable = self.app(env, my_start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/memcache.py", line 109, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/listing_formats.py", line 137, in __call__#012 status, headers, resp_iter = req.call_application(self.app)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1064, in call_application#012 app_iter = application(self.environ, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/ratelimit.py", line 311, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 129, in __call__#012 resp = self.call_func(req, *args, **kw)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 193, in call_func#012 return self.func(req, *args, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 332, in __call__#012 response = self.process_request(req)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 622, in process_request#012 resp = super(AuthProtocol, self).process_request(request)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 405, in process_request#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 437, in _do_fetch_token#012 data = self.fetch_token(token, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 761, in fetch_token#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 219, in verify_token#012 auth_ref = self._request_strategy.verify_token(#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 170, in _request_strategy#012 strategy_class = self._get_strategy_class()#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 192, in _get_strategy_class#012 if self._adapter.get_endpoint(version=klass.AUTH_VERSION):#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 247, in get_endpoint#012 return self.session.get_endpoint(auth or self.auth, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1113, in get_endpoint#012 return auth.get_endpoint(self, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint#012 allow_version_hack=allow_version_hack, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data#012 service_catalog = self.get_access(session).service_catalog#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access#012 self.auth_ref = self.get_auth_ref(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 206, in get_auth_ref#012 self._plugin = self._do_create_plugin(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 161, in _do_create_plugin#012 'auth_url is correct. %s' % e)#012DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to http://controller:35357: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7efd9c9e6290>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) (txn: tx7a7a168abf3b4770b852e-005bdc5ff1) Nov 2 23:32:21 controller keystoneauth.identity.generic.base: Failed to discover available identity versions when contacting http://controller:35357. Attempting to parse version from URL. Nov 2 23:32:21 controller proxy-server: 192.168.24.111 192.168.24.111 02/Nov/2018/14/32/21 HEAD /v1/AUTH_b9644b0689c4469baa45f9acb009d860%3Fformat%3Djson HTTP/1.0 500 - python-swiftclient-3.6.0 gAAAAABb3F_umyIz... - - - txcb7ceac9433543f2851aa-005bdc5ff5 - 0.0058 - - 1541169141.165107965 1541169141.170922041 - Nov 2 23:32:21 controller proxy-server: エラー: エラーが発生しました: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/catch_errors.py", line 75, in handle_request#012 resp = self._app_call(env)#012 File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 1196, in _app_call#012 resp = self.app(env, self._start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/gatekeeper.py", line 122, in __call__#012 return self.app(env, gatekeeper_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/healthcheck.py", line 52, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/proxy_logging.py", line 332, in __call__#012 iterable = self.app(env, my_start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/memcache.py", line 109, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/listing_formats.py", line 137, in __call__#012 status, headers, resp_iter = req.call_application(self.app)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1064, in call_application#012 app_iter = application(self.environ, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/ratelimit.py", line 311, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 129, in __call__#012 resp = self.call_func(req, *args, **kw)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 193, in call_func#012 return self.func(req, *args, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 332, in __call__#012 response = self.process_request(req)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 622, in process_request#012 resp = super(AuthProtocol, self).process_request(request)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 405, in process_request#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 437, in _do_fetch_token#012 data = self.fetch_token(token, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 761, in fetch_token#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 219, in verify_token#012 auth_ref = self._request_strategy.verify_token(#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 170, in _request_strategy#012 strategy_class = self._get_strategy_class()#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 192, in _get_strategy_class#012 if self._adapter.get_endpoint(version=klass.AUTH_VERSION):#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 247, in get_endpoint#012 return self.session.get_endpoint(auth or self.auth, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1113, in get_endpoint#012 return auth.get_endpoint(self, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint#012 allow_version_hack=allow_version_hack, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data#012 service_catalog = self.get_access(session).service_catalog#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access#012 self.auth_ref = self.get_auth_ref(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 206, in get_auth_ref#012 self._plugin = self._do_create_plugin(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 161, in _do_create_plugin#012 'auth_url is correct. %s' % e)#012DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to http://controller:35357: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7efd9c9e6a10>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) (txn: txcb7ceac9433543f2851aa-005bdc5ff5) Nov 2 23:32:29 controller keystoneauth.identity.generic.base: Failed to discover available identity versions when contacting http://controller:35357. Attempting to parse version from URL. Nov 2 23:32:29 controller proxy-server: 192.168.24.111 192.168.24.111 02/Nov/2018/14/32/29 HEAD /v1/AUTH_b9644b0689c4469baa45f9acb009d860%3Fformat%3Djson HTTP/1.0 500 - python-swiftclient-3.6.0 gAAAAABb3F_umyIz... - - - txc8a7a8d8863041d4bc711-005bdc5ffd - 0.0093 - - 1541169149.184989929 1541169149.194243908 - Nov 2 23:32:29 controller proxy-server: エラー: エラーが発生しました: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/catch_errors.py", line 75, in handle_request#012 resp = self._app_call(env)#012 File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 1196, in _app_call#012 resp = self.app(env, self._start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/gatekeeper.py", line 122, in __call__#012 return self.app(env, gatekeeper_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/healthcheck.py", line 52, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/proxy_logging.py", line 332, in __call__#012 iterable = self.app(env, my_start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/memcache.py", line 109, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/listing_formats.py", line 137, in __call__#012 status, headers, resp_iter = req.call_application(self.app)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1064, in call_application#012 app_iter = application(self.environ, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/ratelimit.py", line 311, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 129, in __call__#012 resp = self.call_func(req, *args, **kw)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 193, in call_func#012 return self.func(req, *args, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 332, in __call__#012 response = self.process_request(req)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 622, in process_request#012 resp = super(AuthProtocol, self).process_request(request)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 405, in process_request#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 437, in _do_fetch_token#012 data = self.fetch_token(token, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 761, in fetch_token#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 219, in verify_token#012 auth_ref = self._request_strategy.verify_token(#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 170, in _request_strategy#012 strategy_class = self._get_strategy_class()#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 192, in _get_strategy_class#012 if self._adapter.get_endpoint(version=klass.AUTH_VERSION):#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 247, in get_endpoint#012 return self.session.get_endpoint(auth or self.auth, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1113, in get_endpoint#012 return auth.get_endpoint(self, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint#012 allow_version_hack=allow_version_hack, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data#012 service_catalog = self.get_access(session).service_catalog#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access#012 self.auth_ref = self.get_auth_ref(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 206, in get_auth_ref#012 self._plugin = self._do_create_plugin(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 161, in _do_create_plugin#012 'auth_url is correct. %s' % e)#012DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to http://controller:35357: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7efd9c9e6210>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) (txn: txc8a7a8d8863041d4bc711-005bdc5ffd) Nov 2 23:32:45 controller proxy-server: - - 02/Nov/2018/14/32/45 HEAD /v1/AUTH_b9644b0689c4469baa45f9acb009d860%3Fformat%3Djson HTTP/1.0 200 - Swift - - - - tx51140ed2334041a0b96e8-005bdc600d - 0.0360 RL - 1541169165.222848892 1541169165.258824110 - Nov 2 23:32:45 controller keystoneauth.identity.generic.base: Failed to discover available identity versions when contacting http://controller:35357. Attempting to parse version from URL. Nov 2 23:32:45 controller proxy-server: 192.168.24.111 192.168.24.111 02/Nov/2018/14/32/45 HEAD /v1/AUTH_b9644b0689c4469baa45f9acb009d860%3Fformat%3Djson HTTP/1.0 500 - python-swiftclient-3.6.0 gAAAAABb3F_umyIz... - - - tx51140ed2334041a0b96e8-005bdc600d - 0.0492 - - 1541169165.220432043 1541169165.269629955 - Nov 2 23:32:45 controller proxy-server: エラー: エラーが発生しました: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/catch_errors.py", line 75, in handle_request#012 resp = self._app_call(env)#012 File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 1196, in _app_call#012 resp = self.app(env, self._start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/gatekeeper.py", line 122, in __call__#012 return self.app(env, gatekeeper_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/healthcheck.py", line 52, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/proxy_logging.py", line 332, in __call__#012 iterable = self.app(env, my_start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/memcache.py", line 109, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/listing_formats.py", line 137, in __call__#012 status, headers, resp_iter = req.call_application(self.app)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1064, in call_application#012 app_iter = application(self.environ, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/swob.py", line 1488, in _wsgify_self#012 return func(self, Request(env))(env, start_response)#012 File "/usr/lib/python2.7/site-packages/swift/common/middleware/ratelimit.py", line 311, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 129, in __call__#012 resp = self.call_func(req, *args, **kw)#012 File "/usr/lib/python2.7/site-packages/webob/dec.py", line 193, in call_func#012 return self.func(req, *args, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 332, in __call__#012 response = self.process_request(req)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 622, in process_request#012 resp = super(AuthProtocol, self).process_request(request)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 405, in process_request#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 437, in _do_fetch_token#012 data = self.fetch_token(token, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 761, in fetch_token#012 allow_expired=allow_expired)#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 219, in verify_token#012 auth_ref = self._request_strategy.verify_token(#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 170, in _request_strategy#012 strategy_class = self._get_strategy_class()#012 File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 192, in _get_strategy_class#012 if self._adapter.get_endpoint(version=klass.AUTH_VERSION):#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 247, in get_endpoint#012 return self.session.get_endpoint(auth or self.auth, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1113, in get_endpoint#012 return auth.get_endpoint(self, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint#012 allow_version_hack=allow_version_hack, **kwargs)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data#012 service_catalog = self.get_access(session).service_catalog#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access#012 self.auth_ref = self.get_auth_ref(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 206, in get_auth_ref#012 self._plugin = self._do_create_plugin(session)#012 File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 161, in _do_create_plugin#012 'auth_url is correct. %s' % e)#012DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to http://controller:35357: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7efd9c9e6d10>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) (txn: tx51140ed2334041a0b96e8-005bdc600d)
解決方法
Swift プロキシーサービスの設定ファイル( /etc/swift/proxy-server.conf )の [filter:authtoken] セクションでの設定している 認証サービスへの接続が間違っていることが原因であるため、修正する。 Openstack Rocky では、5000 ポートを使って認証サービスに接続するため、そのように修正する。
[filter:authtoken] # ... # auth_url = http://keystonehost:35357 auth_url = http://controller:35357 ↓ 以下に修正 auth_url = http://controller:5000