The pool manager cache doesn't actually use memcached

Bug #1425726 reported by Eric Larson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Medium
Eric Larson

Bug Description

In looking into `designate.pool_manager.cache.impl_memcache.__init__.py` there is no reference to a memcached client. Upon closer inspection, it uses `designate.openstack.common.memorycache`, which is a simple local, fake, client.

This in memory cache could work on a per-node basis. But, if we are going to support this kind of functionality, we should be sure the client is actually threadsafe by adding some locks around the set/delete operations.

Beyond this though, we should be sure that if we have an actual memcached server defined, that server is used. We can also confirm the memcached cilent is threadsafe or uses a thread pool.

Changed in designate:
assignee: nobody → Eric Larson (eric-larson)
Revision history for this message
Eric Larson (eric-larson) wrote :

It looks like I was wrong:

  https://github.com/openstack/designate/blob/master/designate/openstack/common/memorycache.py#L44

Should memcache be a requirement or extra_requires?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

Fix proposed to branch: master
Review: https://review.openstack.org/159535

Changed in designate:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/159535
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=45ac275539ccaf7e4853a26fdcec6e1f6ecc10bb
Submitter: Jenkins
Branch: master

commit 45ac275539ccaf7e4853a26fdcec6e1f6ecc10bb
Author: Eric Larson <email address hidden>
Date: Thu Feb 26 16:38:43 2015 +0000

    Add python-memcached>=1.48 to requirements.txt

    Change-Id: I4f0c2ee57ceabaac873cec06ad49082eab8cb1f8
    Closes-Bug: 1425726

Changed in designate:
status: In Progress → Fix Committed
Kiall Mac Innes (kiall)
Changed in designate:
importance: Undecided → Medium
milestone: none → kilo-3
Thierry Carrez (ttx)
Changed in designate:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in designate:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.