Revision history [back]

click to hide/show revision 1
initial version

Failed to validate token with neutron

Hi,

Sometimes I have error with nova-api.log

2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack Traceback (most recent call last):
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/__init__.py", line 125, in __call__
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     return req.get_response(self.application)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1296, in send
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     application, catch_exc_info=False)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     return resp(environ, start_response)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     return self._call_app(env, start_response)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     return self._app(env, _fake_start_response)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     return resp(environ, start_response)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     return resp(environ, start_response)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     response = self.app(environ, start_response)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     return resp(environ, start_response)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 756, in __call__
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     content_type, body, accept)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 847, in _process_stack
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     request, action_args)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 710, in post_process_extensions
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     **action_args)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/contrib/security_groups.py", line 471, in detail
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     self._extend_servers(req, list(resp_obj.obj['servers']))
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/contrib/security_groups.py", line 422, in _extend_servers
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     servers))
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/network/security_group/neutron_driver.py", line 353, in get_instances_security_groups_bindings
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     ports = self._get_ports_from_server_list(servers, neutron)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/network/security_group/neutron_driver.py", line 312, in _get_ports_from_server_list
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     ports.extend(neutron.list_ports(**search_opts).get('ports'))
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 534, in list_ports
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     **_params)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 307, in list
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 320, in _pagination
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     res = self.get(path, params=params)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     headers=headers, params=params)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     headers=headers, params=params)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 211, in do_request
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     self._handle_fault_response(status_code, replybody)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_response
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     exception_handler_v20(status_code, des_error_body)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 83, in exception_handler_v20
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack     message=message)
2015-10-05 09:47:33.020 31933 TRACE nova.api.openstack NeutronClientException: Authentication required

And I can see in neutron server log

2015-10-05 09:47:33.014 31922 WARNING keystonemiddleware.auth_token [req-628e04e3-4fcb-4ded-bea5-3a103dc18564 ] Identity response: {"error": {"message": "Failed to validate token", "code": 404, "title": "Not Found"}}

And in keystone.log

2015-10-05 09:47:33.011 31601 WARNING keystone.common.wsgi [-] Failed to validate token

Why I have this error ? How can I fix this issue ?

Thx for help ;)