[Satellite 6] virt-who is not reporting the VMware Hypervisor whose FQDN is recently changed

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.2
  • virt-who-0.19-6.el7_4.noarch
  • VMware

Issue

  • virt-who is not reporting the VMware Hypervisor whose fully-qualified-domain-name is recently changed, it is not listed in SatWEBUI
    For example, a VMware ESX Host has name changed from pvxhost1.example.com to pvyhost1example.com, virt-who is still reporting the old hostname instead of the new.

Resolution

  • Contact VMware administrator.
    After the VMware ESX/ESXi hostname change, there could still be old entries left in the DB and needs cleaning up.

Root Cause

  • VMware still keep the old cache after ESX/ESXi hostname change.

Diagnostic Steps

  • Create virt-who filter to ensure Hypervisors are reported and verify that the virt-who config is reporting hostname:
 hypervisor_id=hostname
 filter_hosts=host1.example.com,host2.example.com, host3.example.com
  • Restart virt-who and verify that the correct number of Hypervisors/guests reported in virt-who log has the same number of Hypervisor/guest in VMware WEBUI:
2017-10-30 10:05:28,040 [virtwho.destination_-7426371236027194430 INFO] MainProcess(9391):Thread-3 @subscriptionmanager.py:hypervisorCheckIn:202 - Sending update in hosts-to-guests mapping for config "destination_-7426371236027194430": 3 hypervisors and 47 guests found
  • In the SatWEBUI > Host > Content Hosts>, look for the above 3 included Hypervisors
    virt-who-host1.example.com-1
    virt-who-host2.example.com-1
    virt-who-host3.example.com-1

  • If the Hypervisor is not listed, take note of a guest of Hypervisor in Vmware WEBUI and search in:
    SatWEBUI > Host > Content Host >
    On guest "Details tab", look for

    Virtual Host xxxxx

  • Check the host linked of the VM and verify it has the correct name to that in the VMware.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.