Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
This is expected and documented behaviour. The /etc/sysconfig/virt-who file states:
# Virt-who subscription manager backend. Enable only one option from the following:
Config files in /etc/virt-who.d/ must be used for second and next hypervisor configurations.
Description of problem: if I enabled two hypervisors mode in /etc/sysconfig/virt-who, such as: VIRTWHO_LIBVIRT=1 VIRTWHO_ESX=1 virt-who only run for esx mode, the libvirt mode will be skipped. Version-Release number of selected component (if applicable): virt-who-0.16-1.el6.noarch How reproducible: always Steps to Reproduce: 1. enable two hypervisors modes in /etc/sysconfig/virt-who, such as: VIRTWHO_LIBVIRT=1 VIRTWHO_LIBVIRT_OWNER=ACME_Corporation VIRTWHO_LIBVIRT_ENV=Library VIRTWHO_LIBVIRT_SERVER=10.66.144.8 VIRTWHO_LIBVIRT_USERNAME=root VIRTWHO_LIBVIRT_PASSWORD=redhat VIRTWHO_ESX=1 VIRTWHO_ESX_OWNER=ACME_Corporation VIRTWHO_ESX_ENV=Library VIRTWHO_ESX_SERVER=10.73.2.15 VIRTWHO_ESX_USERNAME=administrator VIRTWHO_ESX_PASSWORD=Welcome1! 2. restart virt-who service # /etc/init.d/virt-who restart 3. check rhsm.log ========= only ESX host/guests mapping info found======== 2016-01-04 17:43:02,759 [virtwho.init INFO] MainProcess(29635):MainThread @virtwho.py:parseOptions:720 - Using reporter_id='hp-z220-09.qe.lab.eng.nay.redhat.com' 2016-01-04 17:43:02,761 [virtwho.init INFO] MainProcess(29635):MainThread @virtwho.py:main:811 - Using configuration "env/cmdline" ("esx" mode) 2016-01-04 17:43:02,776 [virtwho.main DEBUG] MainProcess(29638):MainThread @virtwho.py:run:287 - Starting infinite loop with 60 seconds interval 2016-01-04 17:43:02,879 [virtwho.env_cmdline DEBUG] Esx-1(29646):MainThread @virt.py:run:338 - Virt backend 'env/cmdline' started 2016-01-04 17:43:02,881 [virtwho.env_cmdline DEBUG] Esx-1(29646):MainThread @esx.py:_prepare:55 - Log into ESX 2016-01-04 17:43:03,245 [virtwho.env_cmdline DEBUG] Esx-1(29646):MainThread @esx.py:_prepare:58 - Creating ESX event filter 2016-01-04 17:43:03,442 [virtwho.env_cmdline DEBUG] Esx-1(29646):MainThread @virt.py:enqueue:331 - Report gathered, putting to queue for sending 2016-01-04 17:43:03,442 [virtwho.env_cmdline DEBUG] Esx-1(29646):MainThread @esx.py:_run:150 - Waiting for ESX changes 2016-01-04 17:43:03,448 [virtwho.main DEBUG] MainProcess(29638):MainThread @virtwho.py:update_report_to_send:274 - Report for config "env/cmdline" updated 2016-01-04 17:43:03,452 [virtwho.main DEBUG] MainProcess(29638):MainThread @subscriptionmanager.py:_connect:112 - Authenticating with certificate: /etc/pki/consumer/cert.pem 2016-01-04 17:43:03,666 [virtwho.main DEBUG] MainProcess(29638):MainThread @subscriptionmanager.py:hypervisorCheckIn:149 - Checking if server has capability 'hypervisor_async' 2016-01-04 17:43:04,157 [virtwho.main DEBUG] MainProcess(29638):MainThread @subscriptionmanager.py:hypervisorCheckIn:161 - Server does not have 'hypervisors_async' capability 2016-01-04 17:43:04,157 [virtwho.main INFO] MainProcess(29638):MainThread @subscriptionmanager.py:hypervisorCheckIn:170 - Sending update in hosts-to-guests mapping: 2 hypervisors and 3 guests found 2016-01-04 17:43:04,158 [virtwho.main DEBUG] MainProcess(29638):MainThread @subscriptionmanager.py:hypervisorCheckIn:171 - Host-to-guest mapping: { "4c4c4544-0048-5a10-8043-b5c04f393358": [ { "guestId": "42293e7d-ba7e-1cea-d897-d8a373b26925", "state": 5, "attributes": { "active": 0, "hypervisorVersion": "6.0.0", "virtWhoType": "esx", "hypervisorType": "VMware ESXi" } } ], "86b2bd00-8bad-11e2-87f4-6c3be514699d": [ { "guestId": "42098426-0d49-7dc6-0cb7-2331f149b8aa", "state": 3, "attributes": { "active": 1, "hypervisorVersion": "6.0.0", "virtWhoType": "esx", "hypervisorType": "VMware ESXi" } }, { "guestId": "4239b745-4369-40fd-569c-ba0d396654e9", "state": 5, "attributes": { "active": 0, "hypervisorVersion": "6.0.0", "virtWhoType": "esx", "hypervisorType": "VMware ESXi" } } ] } 2016-01-04 17:43:04,480 [virtwho.main DEBUG] MainProcess(29638):MainThread @virtwho.py:send_current_report:206 - Report for config "env/cmdline" sent Actual results: only ESX host/guests mapping info found, no libvirt host/guest info found. Expected results: the two hypervisors host/guests mapping info should be found Additional info: