← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1119641] Re: PKI support breaks memcache token backend

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => havana-1

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

Title:
  PKI support breaks memcache token backend

Status in OpenStack Identity (Keystone):
  Fix Released
Status in Keystone grizzly series:
  Fix Released
Status in Python client library for Keystone:
  Invalid

Bug description:
  When using PKI support, the memcache backend breaks. It appears to be
  attempting to place the entire token as the key?

  (root): 2013-02-08 01:14:03,404 ERROR wsgi __call__ Key length is > 250
  Traceback (most recent call last):
    File "/opt/stack/keystone/keystone/common/wsgi.py", line 228, in __call__
      result = method(context, **params)
    File "/opt/stack/keystone/keystone/token/controllers.py", line 470, in validate_token
      token_ref = self._get_token_ref(context, token_id, belongs_to)
    File "/opt/stack/keystone/keystone/token/controllers.py", line 432, in _get_token_ref
      self.assert_admin(context)
    File "/opt/stack/keystone/keystone/common/wsgi.py", line 261, in assert_admin
      context=context, token_id=context['token_id'])
    File "/opt/stack/keystone/keystone/common/manager.py", line 47, in _wrapper
      return f(*args, **kw)
    File "/opt/stack/keystone/keystone/token/backends/memcache.py", line 58, in get_token
      token = self.client.get(ptk)
    File "/usr/lib/python2.7/dist-packages/memcache.py", line 862, in get
      return self._get('get', key)
    File "/usr/lib/python2.7/dist-packages/memcache.py", line 813, in _get
      self.check_key(key)
    File "/usr/lib/python2.7/dist-packages/memcache.py", line 1023, in check_key
      % self.server_max_key_length)
  MemcachedKeyLengthError: Key length is > 250

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