virt-who fails with error: Invalid XML file returned from RHEV-M: 'ascii' codec can't encode characters in position 2548-2549: ordinal not in range(128)
Issue
- When
virt-whocommunicates with the hypervisor's API, it returns errors due to non-ASCII characters:
2017-03-27 17:20:05,292 [virtwho.env_cmdline ERROR] RhevM-2(15497):MainThread @virt.py:run:375 - Virt backend 'env/cmdline' fails with error: Invalid XML file returned from RHEV-M: 'ascii' codec can't encode characters in position 2548-2549: ordinal not in range(128)
2017-03-27 17:20:05,292 [virtwho.env_cmdline INFO] RhevM-2(15497):MainThread @virt.py:run:392 - Waiting 60 seconds before retrying backend 'env/cmdline'
2017-03-27 17:20:49,241 [virtwho.rhevm DEBUG] RhevM-1(15496):MainThread @rhevm.py:get_xml:100 - Invalid xml file: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
- Red Hat Satellite 5.7, 6.2
- virt-who
- Hypervisors:
- Xen
- VMware
- RHEV
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
