Red Hat Bugzilla – Bug 1312228
Failed to get mapping info if one of the esx host is unreachable after reboot vcenter
Last modified: 2016-11-30 19:35:32 EST
Description of problem:
After reboot vcenter, if anyone of esx host in disconnect status, virt-who will failed to get all host/guest mapping info as failed to get hostname.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Register system to satellite6.1, configure virt-who run at esx mode, and there are two esx host(both are reachable) in vcenter.
[root@hp-z220-07 run]# cat /etc/sysconfig/virt-who | grep -v ^# | grep -v ^$
2. Restart virt-who service, virt-who can send host/guest mapping info to server.
3. Disconnect one esx host in vcenter, then check virt-who's log, virt-who still can send host/guest mapping info to server.
4. Reboot windows system which installed vcenter, then check virt-who's log
2016-02-26 15:36:44,614 [virtwho.test-esx1 DEBUG] Esx-1(26238):MainThread @esx.py:_prepare:55 - Log into ESX
2016-02-26 15:36:44,959 [virtwho.test-esx1 DEBUG] Esx-1(26238):MainThread @esx.py:_prepare:58 - Creating ESX event filter
2016-02-26 15:36:45,086 [virtwho.test-esx1 ERROR] Esx-1(26238):MainThread @virt.py:run:371 - Virt backend 'test-esx1' fails with exception:
Traceback (most recent call last):
File "/usr/share/virt-who/virt/virt.py", line 366, in run
File "/usr/share/virt-who/virt/esx/esx.py", line 141, in _run
assoc = self.getHostGuestMapping()
File "/usr/share/virt-who/virt/esx/esx.py", line 214, in getHostGuestMapping
name = '%(config.network.dnsConfig.hostName)s.%(config.network.dnsConfig.domainName)s' % host
2016-02-26 15:36:45,087 [virtwho.test-esx1 INFO] Esx-1(26238):MainThread @virt.py:run:384 - Waiting 60 seconds before retrying backend 'test-esx1'
Failed to get host/guest mapping info if anyone of esx host is in disconnect status after reboot vcenter
Virt-who should send the normal host/guest mapping info satellite, it also can state the unreachable host in the log.
Fixed in virt-who-0.16-7.el6.
Verified it on virt-who-0.16-7.el6 since virt-who can send the disconnected esx host's mapping info to server after reboot vcenter. Therefore, verify it.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.