UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position ...

Bug #1424772 reported by Jason Dunsmore
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.i18n
Expired
Undecided
Unassigned

Bug Description

The following happens when a message that is going to be internationalized with _() contains unicode characters:

[-] CREATE: SwiftSignal "wait_condition" Stack "Default_Build_Test_1424714187_81" [f5aa778e-8f99-42eb-9130-71afeeec6a0a]
 Traceback (most recent call last):
   File "/opt/heat/lib/python2.7/site-packages/heat/engine/resource.py", line 466, in _action_recorder
     yield
   File "/opt/heat/lib/python2.7/site-packages/heat/engine/resource.py", line 536, in _do_action
     yield self.action_handler_task(action, args=handler_args)
   File "/opt/heat/lib/python2.7/site-packages/heat/engine/scheduler.py", line 312, in wrapper
     step = next(subtask)
   File "/opt/heat/lib/python2.7/site-packages/heat/engine/resource.py", line 510, in action_handler_task
     while not check(handler_data):
   File "/opt/heat/lib/python2.7/site-packages/heat/engine/resources/swiftsignal.py", line 315, in check_create_complete
     statuses = self.get_status()
   File "/opt/heat/lib/python2.7/site-packages/heat/engine/resources/swiftsignal.py", line 295, in get_status
     return [s[self.STATUS] for s in self.get_signals()]
   File "/opt/heat/lib/python2.7/site-packages/heat/engine/resources/swiftsignal.py", line 268, in get_signals
     body)
   File "/opt/heat/lib/python2.7/site-packages/oslo_i18n/_message.py", line 112, in __mod__
     unicode_mod = super(Message, self).__mod__(params)
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41066: ordinal not in range(128)

Here is the relevant line in Heat:
https://github.com/openstack/heat/blob/1dc46db6/heat/engine/resources/swiftsignal.py#L267-L268

This looks similar to https://bugs.launchpad.net/cinder/+bug/1368527

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

What locale is configured for the server process and request?

Changed in oslo.i18n:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for oslo.i18n because there has been no activity for 60 days.]

Changed in oslo.i18n:
status: Incomplete → Expired
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.