← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1253054] Re: keystone auth token caching throws error in memcache

 

I'm not able to reproduce on master, and unfortunately folsom is now
unsupported. If this is reproducible on grizzly or havana, perhaps
there's something we can backport. That said, I suspect this issue
actually exists in the version of the python memcache client -- perhaps
it can be updated to something > 1.50? My attempt to reproduce with
python-memcached 1.53:

    >>> import memcache
    >>> c = memcache.Client(['127.0.0.1:11211'])
    >>> c.set('foo', 'bar')
    True
    >>> c.get('foo')
    'bar'
    >>> memcache.__version__
    '1.53'


** Changed in: keystone
       Status: New => Invalid

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

Title:
  keystone auth token caching throws error in memcache

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  I tried to use the auth_token caching to improve the performance of
  the response rather than checking with keystone every time.

  I am using the folsom keystone version and added the config in
  auth_token filter

  If i add memcached_servers = 10.11.12.13:11211 then auth_token

  try:
                  import memcache
                  import iso8601
                  LOG.info('Using memcache for caching token')
                  self._cache = memcache.Client(memcache_servers.split(','))
                  self._iso8601 = iso8601
              except ImportError as e:
                  LOG.warn('disabled caching due to missing libraries %s', e)

  Above memcache.client can't establish the connection along with port,
  it goes the except part. It works only with just ip address.

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