virt-who services fails with error "KeyError: ''"

Solution Verified - Updated -


  • Unable to communicate with vCenters after upgrading virt-who package to virt-who-0.21.5-1.el7.noarch from RHEL 7.5 base repository.
  • virt-who service fails with following error,

    2018-04-16 12:04:34,652 [virtwho.main ERROR] MainProcess(53523):Thread-2 - Thread 'virt-config' fails with exception:
    Traceback (most recent call last):
       File "/usr/lib/python2.7/site-packages/virtwho/virt/", line 379, in run
       File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/", line 215, in _run
    assoc = self.getHostGuestMapping()
       File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/", line 262, in getHostGuestMapping
        uuid = host['']
    KeyError: ''
    2018-04-16 12:04:34,652 [virtwho.main INFO] MainProcess(53523):Thread-2 - Report for config "virt-config" gathered, placing in datastore


  • Red Hat Satellite 6.x
  • Red Hat Enterprise Linux 7.5

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