virt-who services fails with error "KeyError: 'config.network.dnsConfig.hostName'"
Issue
- 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 @virt.py:run:388 - Thread 'virt-config' fails with exception: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/virtwho/virt/virt.py", line 379, in run self._run() File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/esx.py", line 215, in _run assoc = self.getHostGuestMapping() File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/esx.py", line 262, in getHostGuestMapping uuid = host['config.network.dnsConfig.hostName'] KeyError: 'config.network.dnsConfig.hostName' 2018-04-16 12:04:34,652 [virtwho.main INFO] MainProcess(53523):Thread-2 @virt.py:_send_data:922 - Report for config "virt-config" gathered, placing in datastore
Environment
- 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.