Virt-who service fails with "KeyError: 'config.network.dnsConfig.hostName'" error

Solution Verified - Updated -

Issue

  • virt-who is failing with the"'config.network.dnsConfig.hostName' error.
  • Restarting the virt-who service fails with below error in RHEL 6 system
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/virtwho/virt/virt.py", line 379, in run
    self._run()
  File "/usr/lib/python2.6/site-packages/virtwho/virt/esx/esx.py", line 215, in _run
    assoc = self.getHostGuestMapping()
  File "/usr/lib/python2.6/site-packages/virtwho/virt/esx/esx.py", line 262, in getHostGuestMapping
    uuid = host['config.network.dnsConfig.hostName']
KeyError: 'config.network.dnsConfig.hostName'

Environment

  • Red Hat Enterprise Linux 6
  • virt-who

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