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

Solution In Progress - Updated -

Issue

# virt-who --one-shot

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

Environment

  • 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