← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1245060] Re: memcached token backend doesn't work when memcached running remotely

 

[Expired for Keystone because there has been no activity for 60 days.]

** Changed in: keystone
       Status: Incomplete => Expired

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

Title:
  memcached token backend doesn't work when memcached running remotely

Status in OpenStack Identity (Keystone):
  Expired

Bug description:
  Keystone's memcached token configuration has changed since Grizzly.
  We want to run multiple keystone instances fronted by a load balancer.
  We opted to use memcached vs sql for our token backend.  This has
  worked very well for us in our Grizzly environment.

  Relevant Keystone configuration:

  [cache]
  backend = dogpile.cache.memcached
  backend_argument = url:10.10.10.26,10.10.10.27

  [token]
  driver = keystone.token.backends.memcache.Token

  Looking at keystone's cache config, it looks to be correctly
  configuring dogpile.

  2013-10-26 08:24:35.598 25832 ERROR keystone.common.cache.core [-]
  {'cache.keystone.expiration_time': 600, 'cache.keyston
  e.arguments.url': '10.10.10.26,10.10.10.27', 'cache.keystone.backend':
  'dogpile.cache.memcached'}

  However, looking at what is being sent to the python memcache library,
  the wscgi looks to correctly initialize memcache.Client, but the last
  couple calls are set to localhost, which ends up resulting in the
  following error [1], since I do not have memcached running locally.
  This could also explain why nobody has caught this, since memached is
  likely running locally or bound to *.

  [1] '2013-10-26 21:01:46.975 1736 WARNING keystone.common.wsgi [-]
  Unable to add token user list'

  Modified memcached.py to log the servers being passed into __init__.

  SERVERS
  ['10.10.10.26,10.10.10.27']
  SERVERS
  ['10.10.10.26,10.10.10.27']
  SERVERS
  ['10.10.10.26,10.10.10.27']
  SERVERS
  ['10.10.10.26,10.10.10.27']
  SERVERS
  ['localhost:11211']
  SERVERS
  ['localhost:11211']

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