libvirt: UnicodeDecodeError in qemu guest agent error message handling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Chen Hanxiao | ||
Ocata |
Confirmed
|
Undecided
|
Unassigned | ||
Pike |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
Description
===========
Some of error messages from qemu-guest-agent is
localized encoding.
We may get GB2312(Chinese charactors) from qga's error message
from a Chinese version of Windows.
nova didn't cover this senario, we may get errors like:
in position 138: ordinal not in range(128)
Steps to reproduce
==================
1) upload a non-English Windows image, such as Chinese version.
2) don't set os_type metadata of image
3) nova set-password XXXX
4) check log of nova-compute, see 'Logs & Configs'
Expected result
===============
error message from qemu guest agent should be logged properly in nova-compute.log
Actual result
=============
UnicodeDecodeError
Logs & Configs
==============
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
ERROR oslo_messaging.
2017-09-30 16:02:00.613 12980 ERROR oslo_messaging.
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: libvirt |
Fixed by:
https:/ /review. openstack. org/#/c/ 511459/