← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1472987] [NEW] helpless exception message

 

Public bug reported:

When there is an invalid token in use,  keystone will throw
exception.UnsupportedTokenVersionException, but currently, there is no
useful information provided and user don't know what's happened, see the
following error message.


CLI,
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
An unexpected error prevented the server from fulfilling your request:  (Disable debug mode to suppress these details.) (HTTP 500) (Request-ID: req-b116d6e4-336a-48d0-9a00-939249ac5b1a)

keystone.log,
2015-07-09 17:19:27.034038 14283 ERROR keystone.common.wsgi [-]
2015-07-09 17:19:27.034047 14283 TRACE keystone.common.wsgi Traceback (most recent call last):
2015-07-09 17:19:27.034049 14283 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/common/wsgi.py", line 463, in __call__
2015-07-09 17:19:27.034051 14283 TRACE keystone.common.wsgi     response = self.process_request(request)
2015-07-09 17:19:27.034053 14283 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/middleware/core.py", line 209, in process_request
2015-07-09 17:19:27.034055 14283 TRACE keystone.common.wsgi     auth_context = self._build_auth_context(request)
2015-07-09 17:19:27.034057 14283 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/middleware/core.py", line 189, in _build_auth_context
2015-07-09 17:19:27.034059 14283 TRACE keystone.common.wsgi     token_data=self.token_provider_api.validate_token(token_id))
2015-07-09 17:19:27.034061 14283 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/models/token_model.py", line 59, in __init__
2015-07-09 17:19:27.034063 14283 TRACE keystone.common.wsgi     raise exception.UnsupportedTokenVersionException()
2015-07-09 17:19:27.034065 14283 TRACE keystone.common.wsgi UnsupportedTokenVersionException
2015-07-09 17:19:27.034067 14283 TRACE keystone.common.wsgi


We can provide some unformation to end user, so the user knows what's happened and going to fix it.

** Affects: keystone
     Importance: Undecided
     Assignee: Dave Chen (wei-d-chen)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1472987

Title:
  helpless exception message

Status in OpenStack Identity (Keystone):
  In Progress

Bug description:
  When there is an invalid token in use,  keystone will throw
  exception.UnsupportedTokenVersionException, but currently, there is no
  useful information provided and user don't know what's happened, see
  the following error message.

  
  CLI,
  /usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
    'python-keystoneclient.', DeprecationWarning)
  An unexpected error prevented the server from fulfilling your request:  (Disable debug mode to suppress these details.) (HTTP 500) (Request-ID: req-b116d6e4-336a-48d0-9a00-939249ac5b1a)

  keystone.log,
  2015-07-09 17:19:27.034038 14283 ERROR keystone.common.wsgi [-]
  2015-07-09 17:19:27.034047 14283 TRACE keystone.common.wsgi Traceback (most recent call last):
  2015-07-09 17:19:27.034049 14283 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/common/wsgi.py", line 463, in __call__
  2015-07-09 17:19:27.034051 14283 TRACE keystone.common.wsgi     response = self.process_request(request)
  2015-07-09 17:19:27.034053 14283 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/middleware/core.py", line 209, in process_request
  2015-07-09 17:19:27.034055 14283 TRACE keystone.common.wsgi     auth_context = self._build_auth_context(request)
  2015-07-09 17:19:27.034057 14283 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/middleware/core.py", line 189, in _build_auth_context
  2015-07-09 17:19:27.034059 14283 TRACE keystone.common.wsgi     token_data=self.token_provider_api.validate_token(token_id))
  2015-07-09 17:19:27.034061 14283 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/models/token_model.py", line 59, in __init__
  2015-07-09 17:19:27.034063 14283 TRACE keystone.common.wsgi     raise exception.UnsupportedTokenVersionException()
  2015-07-09 17:19:27.034065 14283 TRACE keystone.common.wsgi UnsupportedTokenVersionException
  2015-07-09 17:19:27.034067 14283 TRACE keystone.common.wsgi

  
  We can provide some unformation to end user, so the user knows what's happened and going to fix it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1472987/+subscriptions


Follow ups