instance with Chinese name failed to get metrics

Bug #1676315 reported by lvdongbing
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Monasca
In Progress
Undecided
lvdongbing

Bug Description

Create a vm with Chinese name, and if balloon driver is not active, vm metrics with fail to gather metrics, error logs as following:
ERROR | collector | monasca_agent.collector.checks.check.libvirt(check.py:205) | Check 'libvirt' instance #0 failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/monasca_agent/collector/checks/check.py", line 203, in run
    self.check(instance)
  File "/usr/lib/python2.7/dist-packages/monasca_agent/common/../collector/checks_d/libvirt.py", line 750, in check
    instance_cache.get(inst_name)['hostname']))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

lvdongbing (dbcocle)
Changed in monasca:
assignee: nobody → lvdongbing (dbcocle)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to monasca-agent (master)

Fix proposed to branch: master
Review: https://review.openstack.org/450133

Changed in monasca:
status: New → In Progress
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.