yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04367
[Bug 1215493] Re: error when deleting a consumer token (sql)
** Changed in: keystone
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1215493
Title:
error when deleting a consumer token (sql)
Status in OpenStack Identity (Keystone):
Fix Released
Bug description:
Saw this when creating client support:
$ openstack consumer delete 8b0899403f93496384cddc0755953ba8
ERROR: cliff.app An unexpected error prevented the server from fulfilling your request. 'token' (HTTP 500)
Keystone error:
(keystone.common.wsgi): 2013-08-22 10:16:41,241 ERROR wsgi __call__ 'token'
Traceback (most recent call last):
File "/opt/stack/keystone/keystone/common/wsgi.py", line 237, in __call__
result = method(context, **params)
File "/opt/stack/keystone/keystone/contrib/oauth1/controllers.py", line 60, in delete_consumer
self.token_api.delete_tokens(user_id, consumer_id=consumer_id)
File "/opt/stack/keystone/keystone/common/manager.py", line 44, in _wrapper
return f(*args, **kw)
File "/opt/stack/keystone/keystone/token/backends/sql.py", line 109, in delete_tokens
if not self._consumer_matches(consumer_id, token_ref_dict):
File "/opt/stack/keystone/keystone/token/backends/sql.py", line 125, in _consumer_matches
oauth = token_ref_dict['token_data']['token'].get('OS-OAUTH1', {})
KeyError: 'token'
Suggested fix is to wrap the else block of _consumer_matches in a try,
and catch any KeyErrors.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1215493/+subscriptions