yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #56273
[Bug 1621392] Re: emit_event() is failing when locale/language is changed to other than english
Reviewed: https://review.openstack.org/367455
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2b57b3d867f568a1539d4419b441ae8d666b77c4
Submitter: Jenkins
Branch: master
commit 2b57b3d867f568a1539d4419b441ae8d666b77c4
Author: Matt Riedemann <mriedem@xxxxxxxxxx>
Date: Thu Sep 8 11:14:52 2016 -0400
virt: handle unicode when logging LifecycleEvents
The repr on the LifecycleEvent object includes a translated
name, which blows up with a UnicodeEncodeError in the emit_event
method because of str(event) and non-English locales.
This change uses six.text_type on the object rather than str
and adds a test to recreate the bug and show the fix.
Change-Id: I9b7b52739883043b7aae9759f500e5e21cfe8b30
Closes-Bug: #1621392
** Changed in: nova
Status: In Progress => Fix Released
--
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/1621392
Title:
emit_event() is failing when locale/language is changed to other than
english
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) mitaka series:
Confirmed
Bug description:
https://github.com/openstack/nova/blob/master/nova/virt/driver.py#L1439
is causing emit_event() failure
Even though debug is not on, this line is causing emit_event() method
failure.
2016-09-07 01:57:36.286 89568 INFO nova_powervm.virt.powervm.driver [req-9ef673ff-6d82-4a8e-b1fc-b7b635bc5bc8 - - - - -] [instance: bbb4890e-4e7f-47aa-b18f-cac527085966] Sending life cycle event for instance state change to: running
2016-09-07 01:57:36.287 89568 ERROR nova.virt.driver [req-9ef673ff-6d82-4a8e-b1fc-b7b635bc5bc8 - - - - -] Exception dispatching event <LifecycleEvent: 1473227856.29, bbb4890e-4e7f-47aa-b18f-cac527085966 => [G'Startedฏูİı|]>: 'ascii' codec can't encode characters in position 82-86: ordinal not in range(128)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1621392/+subscriptions
References