Bug 975942 - Backport unicode fix in nova api
Backport unicode fix in nova api
Status: CLOSED CURRENTRELEASE
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova (Show other bugs)
3.0
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 4.0
Assigned To: RHOS Maint
Ami Jeain
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-19 12:07 EDT by Matthew Mosesohn
Modified: 2016-04-26 15:45 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-19 12:24:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Matthew Mosesohn 2013-06-19 12:07:36 EDT
Description of problem:
When locale is changed to Russian, for example, we get this error:
TRACE nova.api.metadata.handler [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data\n    rval = self.proxy.dispatch(ctxt, version, method, **args)\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch\n    return getattr(proxyobj, method)(ctxt, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/conductor/manager.py", line 410, in get_ec2_ids\n    ec2_ids[\'instance-id\'] = ec2utils.id_to_ec2_inst_id(instance[\'uuid\'])\n', u'  File "/usr/lib/python2.6/site-packages/nova/api/ec2/ec2utils.py", line 161, in id_to_ec2_inst_id\n    int_id = get_int_id_from_instance_uuid(ctxt, instance_id)\n', u'  File "/usr/lib/python2.6/site-packages/nova/api/ec2/ec2utils.py", line 45, in memoizer\n    value = _CACHE.get(key)\n', u'  File "/usr/lib/python2.6/site-packages/memcache.py", line 656, in get\n    check_key(key)\n', u'  File "/usr/lib/python2.6/site-packages/memcache.py", line 938, in check_key\n    raise Client.MemcachedStringEncodingError, ("Keys must be str()\'s, not"\n', u"MemcachedStringEncodingError: Keys must be str()'s, notunicode.  Convert your unicode strings using mystring.encode(charset)!\n"].

https://github.com/openstack/nova/commit/37fbfad813e12d00da8f9d3e9f6f13256d5bb7c1
https://bugs.launchpad.net/nova/+bug/1174487/comments/3


Version-Release number of selected component (if applicable):
openstack-nova-api-2013.1.0.1.1.g1ad6e38-mira.2.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 2 Perry Myers 2013-06-19 12:24:02 EDT
This bug was fixed in the 2013.1.1 stable branch release, which is already part of the RHOS 3.0 Preview release and available on RHN.

If you can reproduce this problem on an official RHOS package (the package mentioned in the bug description was not one that we are familiar with), please let us know which specific build and reopen the bug.

Thanks!

Note You need to log in before you can comment on or make changes to this bug.