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)

Solution In Progress - Updated -

Issue

  • When virt-who communicates 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content