MemcachedStringEncodingError in pool manager with memcached

Bug #1425751 reported by Paul Glass
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
Eric Larson

Bug Description

Reproduction: Configure the pool manager to use memcached, then create a zone. You should see an error like this: http://paste.openstack.org/show/182147/

Excerpt:

  File "/root/designate/.venv/local/lib/python2.7/site-packages/memcache.py", line 1050, in check_key
     "Keys must be str()'s, not unicode. Convert your unicode "
MemcachedStringEncodingError: Keys must be str()'s, not unicode. Convert your unicode strings using mystring.encode(charset)!

This seems to cause zone creates to fail (remain in PENDING forever).

Notes: This was on commit 13fd93bc495d71152f8e6e0559788e30ef3723ec.

Changed in designate:
assignee: nobody → Eric Larson (eric-larson)
Changed in designate:
status: New → Confirmed
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/159870

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

Reviewed: https://review.openstack.org/159870
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=8d33b4bd2cc143774d1838872d5ed11eb8de8de7
Submitter: Jenkins
Branch: master

commit 8d33b4bd2cc143774d1838872d5ed11eb8de8de7
Author: Eric Larson <email address hidden>
Date: Fri Feb 27 08:45:03 2015 -0600

    Ensure pool_manager cache keys are strings

    Messages coming from rabbitmq are unicode objects. We need to explicitly
    convert any resulting bytes to a string when performing interpolations
    if the result is a memcached key.

    Change-Id: Idf37ef8e42e93d92af04268e68ef620bca39e04c
    Closes-Bug: 1425751

Changed in designate:
status: In Progress → Fix Committed
Kiall Mac Innes (kiall)
Changed in designate:
milestone: none → kilo-3
importance: Undecided → High
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.