When I use glance , it show error:
openstack@pre-production:~/openstack/glance$ glance -A 999888777666 index
Failed to show index. Got error:
Internal Server error: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/home/openstack/openstack/glance/glance/common/wsgi.py", line 174, in __call__
response = req.get_response(self.application)
File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
application, catch_exc_info=False)
File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/middleware/auth_token.py", line 197, in __call__
claims = self._expound_claims(claims)
File "/usr/local/lib/python2.7/dist-packages/keystone-2012.1-py2.7.egg/keystone/middleware/auth_token.py", line 321, in _expound_claims
verified_claims = {'user': token_info['access']['user']['name'],
KeyError: 'name'
This is the issue logic/types/ auth.py
The code in keystone/
auth['user'] = { self.user. id), self.user. username) }
'id': unicode(
'name': unicode(
Builds user like this for authenticate response.However for validate response it builds user like
user = { self.user. id),
"username" : unicode( self.user. username) }
"id": unicode(
Contract right now defines name to be returned and not username.
This inconsistency coupled with previous change has caused this bug.