virt-who not working with RHEV 4 giving error of "Virt backend 'rhvm' fails with exception: KeyError: 'major'"
Issue
- Following steps as given in guide CONFIGURING VIRT-WHO TO CONNECT TO RED HAT ENTERPRISE VIRTUALIZATION HYPERVISOR gives below error when run
# 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 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.
