serialize_args throws UnicodeError when message contains non-ascii characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Matt Rabe |
Bug Description
The EventReporter attempts to serialize exception messages and raises another error in doing so if the message contains non-ascii characters, masking the original exception.
File "/usr/lib/
payload)
File "/usr/lib/
six.
File "/usr/lib/
return f(self, context, *args, **kw)
File "/usr/lib/
LOG.
File "/usr/lib/
six.
File "/usr/lib/
return function(self, context, *args, **kwargs)
File "/usr/lib/
return function(self, context, *args, **kwargs)
File "/usr/lib/
exc_tb=exc_tb, want_result=False)
File "/usr/lib/
kwargs[k] = str(v)
File "/usr/lib/
raise UnicodeError(msg)
UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.
Found in Liberty
Changed in nova: | |
milestone: | none → liberty-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-rc1 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/221905
Review: https:/