virt-who configuration created through Red Hat Satellite GUI doest not list whitelisted hypervisors.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.x

Issue

  • virt-who not reporting whitelisted hypervisors.

Resolution

  • Verify that you are using the correct(and exact) hostnames of the hypervisors while whitelisting them from Red Hat Satellite GUI:
Infrastructure > Virt-who Configurations > Select desired virt-who configuration > Edit this configuration > Filtering > Whitelist > Filter hosts > Verify the hostnames of hypervisors

Root Cause

  • The hostnames used to whitelist are different from the actual hypervisor hostnames.

Diagnostic Steps

  • Logs as captured upon executing # virt-who -o -d on virt-who server:
Mar 27 14:14:39 satellite.example.com systemd: Started Flexible Branding Service.
Mar 27 14:14:39 satellite.example.com systemd: Stopping Daemon for reporting virtual guest IDs to subscription-manager...
Mar 27 14:14:39 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:39,223 [virtwho.main INFO] MainProcess(30523):MainThread @esx.py:logout:401 - Can't log out from ESX: Server raised fault: 'The session is not authenticated.'
Mar 27 14:14:39 satellite.example.com systemd: Stopped Daemon for reporting virtual guest IDs to subscription-manager.
Mar 27 14:14:39 satellite.example.com systemd: Starting Daemon for reporting virtual guest IDs to subscription-manager...
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,186 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [global]: Value for "oneshot" not set, using default: False
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,186 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [global]: Value for "log_per_config" not set, using default: False
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,186 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [global]: Value for "print_" not set, using default: False
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,187 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [global]: Value for "reporter_id" not set, using default: satellite.example.com-69b0154213954ab38be32b161b6c5f31
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,187 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [global]: Value for "log_dir" not set, using default: /var/log/rhsm
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,187 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [global]: Value for "debug" not set, using default: False
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,187 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [global]: Value for "configs" not set, using default: []
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,188 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [global]: Value for "log_file" not set, using default: rhsm.log
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,188 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [virt-who-config-1]: Value for "simplified_vim" not set, using default: True
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,188 [virtwho.rhsm_log WARNING] MainProcess(20041):MainThread @config.py:init_config:1457 - [virt-who-config-1]: Value for "is_hypervisor" not set, using default: True
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,189 [virtwho.rhsm_log INFO] MainProcess(20041):MainThread @main.py:main:159 - Using configuration "virt-who-config-1" ("esx" mode)
Mar 27 14:14:40 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:40,189 [virtwho.rhsm_log INFO] MainProcess(20041):MainThread @main.py:main:161 - Using reporter_id='satellite.example.com-69b0154213954ab38be32b161b6c5f31'
Mar 27 14:14:40 satellite.example.com systemd: Started Daemon for reporting virtual guest IDs to subscription-manager.
Mar 27 14:14:43 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:43,223 [virtwho.main INFO] MainProcess(20041):Thread-2 @virt.py:_send_data:935 - Report for config "virt-who-config-1" gathered, placing in datastore
Mar 27 14:14:44 satellite.example.com /usr/bin/virt-who: 2019-03-27 14:14:44,232 [virtwho.destination_6126576151582193322 INFO] MainProcess(20041):Thread-3 @virt.py:_send_data:598 - Hosts-to-guests mapping for config "virt-who-config-1": 0 hypervisors and 0 guests found    <<============= 

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.