← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1354258] Re: nova-api will go wrong if AZ name has space in it when memcach is used

 

Easily reproducible

>>> import memcache
>>> mc = memcache.Client(['192.168.1.111:11211'], debug=0)
>>> mc.set("some_key", "Some value")
True
>>> print mc.get("some_key")
Some value
>>> mc.set("some key", "Some value")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/memcache.py", line 584, in set
    return self._set("set", key, val, time, min_compress_len)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/memcache.py", line 804, in _set
    self.check_key(key)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/memcache.py", line 1062, in check_key
    "Control characters not allowed")
memcache.MemcachedKeyCharacterError: Control characters not allowed

** Also affects: oslo
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1354258

Title:
  nova-api will go wrong if AZ name has space in it when memcach is used

Status in OpenStack Compute (Nova):
  New
Status in Oslo - a Library of Common OpenStack Code:
  New

Bug description:
  Description:
  1. memcahe is enabled
  2. AZ name has space in it such as "vmware region"

  Then the nova-api will go wrong:
  [root@rs-144-1 init.d]# nova list
  ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-a26c1fd3-ce08-4875-aacf-f8db8f73b089)

  Reason:
  Memcach retrieve the AZ name as key and check it. It will raise an error if there are unexpected character in the key.

  LOG in /var/log/api.log

  2014-08-08 03:22:50.525 23184 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/availability_zones.py", line 145, in get_instance_availability_zone
  2014-08-08 03:22:50.525 23184 TRACE nova.api.openstack     az = cache.get(cache_key)
  2014-08-08 03:22:50.525 23184 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/memcache.py", line 898, in get
  2014-08-08 03:22:50.525 23184 TRACE nova.api.openstack     return self._get('get', key)
  2014-08-08 03:22:50.525 23184 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/memcache.py", line 847, in _get
  2014-08-08 03:22:50.525 23184 TRACE nova.api.openstack     self.check_key(key)
  2014-08-08 03:22:50.525 23184 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/memcache.py", line 1065, in check_key
  2014-08-08 03:22:50.525 23184 TRACE nova.api.openstack     #        "Control characters not allowed")
  2014-08-08 03:22:50.525 23184 TRACE nova.api.openstack MemcachedKeyCharacterError: Control characters not allowed

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


References