virt-who not working with RHEV 4 giving error of "Virt backend 'rhvm' fails with exception: KeyError: 'major'"

Solution In Progress - Updated -


# virt-who --one-shot

2017-05-25 09:41:13,340 [virtwho.rhev-m lab ERROR] RhevM-1(1525):MainThread - Virt backend 'rhev-m lab' fails with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/virtwho/virt/", line 387, in run
  File "/usr/lib/python2.7/site-packages/virtwho/virt/", line 421, in _run
  File "/usr/lib/python2.7/site-packages/virtwho/virt/rhevm/", line 80, in prepare
  File "/usr/lib/python2.7/site-packages/virtwho/virt/rhevm/", line 124, in get_version
    major = version.attrib['major']
KeyError: 'major'


  • Red Hat Satellite 6.2
  • Red Hat Enterprise Linux 7
  • virt-who-0.19-2.el7sat.noarch and lower
  • Red Hat Enterprise Virtualization Hypervisor 4.x

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