Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
virt-who throws UnicodeEncodeError: 'ascii' codec can't encode characters for Japanese characters
Version-Release number of selected component (if applicable):
https://access.redhat.com/downloads/content/rhel---7/x86_64/2456/virt-who/0.22.5-1.el7/noarch/fd431d51/package
How reproducible:
100%
Steps to Reproduce:
1. Get some Japanese names for ESX/VMs
2. run virt-who
3.
Actual results:
WebFault: Server raised fault: '\u30e6\u30fc\u30b6\u30fc\u540d\u307e\u305f\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e0d\u6b63\u306a\u305f\u3081\u3001\u30ed\u30b0\u30a4\u30f3\u3092\u5b8c\u4e86\u3067\u304d\u307e\u305b\u3093\u3002'
2019-02-15 17:49:35,432 [virtwho.main ERROR] MainProcess(81149):Thread-2 @virt.py:run:388 - Thread 'vmware' fails with exception:
Traceback (most recent call last):
File "/bin/virt-who", line 9, in <module>
load_entry_point('virt-who==0.21.7', 'console_scripts', 'virt-who')()
File "/usr/lib/python2.7/site-packages/virtwho/__main__.py", line 24, in main
virtwho.main.exit(res)
File "/usr/lib/python2.7/site-packages/virtwho/main.py", line 241, in exit
executor.terminate()
File "/usr/lib/python2.7/site-packages/virtwho/executor.py", line 223, in terminate
self.stop_threads()
File "/usr/lib/python2.7/site-packages/virtwho/executor.py", line 218, in stop_threads
self.terminate_threads(self.virts)
File "/usr/lib/python2.7/site-packages/virtwho/executor.py", line 140, in terminate_threads
thread.stop()
File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/esx.py", line 230, in stop
self.cleanup()
File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/esx.py", line 243, in cleanup
self.logout()
File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/esx.py", line 366, in logout
self.logger.info("Can't log out from ESX: %s", str(e))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 22-37: ordinal not in range(128)
Expected results:
No issues
Additional info: