Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Followed by the contents of the log, please help me diagnose the problem, thanks all~ details: 2017-07-12 15:27:42.585 2780 INFO neutron.wsgi [-] (2780) accepted ('192.168.16.27', 37672) 2017-07-12 15:27:42.591 2780 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token Traceback (most recent call last): 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 849, in _fetch_token 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token data = self._identity_server.verify_token(token) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 213, in verify_token 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token auth_ref = self._request_strategy.verify_token(user_token) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 165, in _request_stra tegy 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token strategy_class = self._get_strategy_class() 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 187, in _get_strategy _class 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token if self._adapter.get_endpoint(version=klass.AUTH_VERSION): 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 129, in get_endpoint 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return self.session.get_endpoint(auth or self.auth, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 660, in get_endpoint 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return auth.get_endpoint(self, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 315, in get_endpoint 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token service_catalog = self.get_access(session).service_catalog 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 240, in get_access 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token self.auth_ref = self.get_auth_ref(session) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 184, in get_auth_re f 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token self._plugin = self._do_create_plugin(session) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 139, in _do_create_ plugin 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token authenticated=False) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return func(args, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 400, in get_discovery 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token authenticated=authenticated) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return func(args, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 142, in __init__ 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token authenticated=authenticated) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return func(args, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 40, in get_version_data 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token resp = session.get(url, headers=headers, authenticated=authenticated) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 493, in get 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return self.request(url, 'GET', *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return func(args, **kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 319, in request 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token if not urllib.parse.urlparse(url).netloc: 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib64/python2.7/urlparse.py", line 142, in urlparse 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token tuple = urlsplit(url, scheme, allow_fragments) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib64/python2.7/urlparse.py", line 181, in urlsplit 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token i = url.find(':') 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token AttributeError: 'NoneType' object has no attribute 'find' 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token 2017-07-12 15:27:42.598 2780 INFO neutron.wsgi [-] 192.168.16.27 - - [12/Jul/2017 15:27:42] "GET /v2.0/agents.json HTTP/1.1" 500 341 0.010664

Followed by the contents of the log, please help me diagnose the problem, thanks all~ details: 2017-07-12 15:27:42.585 2780 INFO neutron.wsgi [-] (2780) accepted ('192.168.16.27', 37672) 2017-07-12 15:27:42.591 2780 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token Traceback (most recent call last): 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 849, in _fetch_token 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token data = self._identity_server.verify_token(token) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 213, in verify_token 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token auth_ref = self._request_strategy.verify_token(user_token) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 165, in _request_stra tegy 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token strategy_class = self._get_strategy_class() 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/_identity.py", line 187, in _get_strategy _class 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token if self._adapter.get_endpoint(version=klass.AUTH_VERSION): 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 129, in get_endpoint 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return self.session.get_endpoint(auth or self.auth, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 660, in get_endpoint 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return auth.get_endpoint(self, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 315, in get_endpoint 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token service_catalog = self.get_access(session).service_catalog 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 240, in get_access 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token self.auth_ref = self.get_auth_ref(session) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 184, in get_auth_re f 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token self._plugin = self._do_create_plugin(session) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 139, in _do_create_ plugin 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token authenticated=False) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return func(args, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 400, in get_discovery 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token authenticated=authenticated) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return func(args, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 142, in __init__ 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token authenticated=authenticated) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return func(args, *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 40, in get_version_data 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token resp = session.get(url, headers=headers, authenticated=authenticated) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 493, in get 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return self.request(url, 'GET', *kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token return func(args, **kwargs) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 319, in request 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token if not urllib.parse.urlparse(url).netloc: 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib64/python2.7/urlparse.py", line 142, in urlparse 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token tuple = urlsplit(url, scheme, allow_fragments) 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token File "/usr/lib64/python2.7/urlparse.py", line 181, in urlsplit 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token i = url.find(':') 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token AttributeError: 'NoneType' object has no attribute 'find' 2017-07-12 15:27:42.591 2780 ERROR keystonemiddleware.auth_token 2017-07-12 15:27:42.598 2780 INFO neutron.wsgi [-] 192.168.16.27 - - [12/Jul/2017 15:27:42] "GET /v2.0/agents.json HTTP/1.1" 500 341 0.010664


I configured the document in this way(https://docs.openstack.org/ocata/install-guide-rdo/neutron-controller-install-option2.html#configure-the-server-component), and even the service can't start now, following is the detailed content of the document, please help to check and diagnose ~: [root@node1 neutron]# cat /etc/keystone/keystone.conf|grep -v "^#"|grep -v "^$" [DEFAULT] admin_token = a5beca86c67e16f014c6 [assignment] [auth] [cache] [catalog] [cors] [cors.subdomain] [credential] [database] connection = mysql://keystone:keystone@192.168.16.27/keystone [domain_config] [endpoint_filter] [endpoint_policy] [eventlet_server] [eventlet_server_ssl] [federation] [fernet_tokens] [identity] [identity_mapping] [kvs] [ldap] [matchmaker_redis] [matchmaker_ring] [memcache] servers = 192.168.16.27:11211

[oauth1] [os_inherit] [oslo_messaging_amqp] [oslo_messaging_qpid] [oslo_messaging_rabbit] [oslo_middleware] [oslo_policy] [paste_deploy] [policy] [resource] [revoke] [role] [saml] [signing] [ssl] [token] [tokenless_auth] [trust]