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.
Bug 1447022 - virt-who doesn't collect the information when 'hypervisor_id=hostname' is set and hosts are filtered by UUID.
Summary: virt-who doesn't collect the information when 'hypervisor_id=hostname' is set...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-who
Version: 7.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jiri Hnidek
QA Contact: Eko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-01 08:57 UTC by Amar Huchchanavar
Modified: 2020-07-16 09:30 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 10:47:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github virt-who virt-who pull 130 0 None closed 1447022: Log warning, when wrong filter is in config file 2020-10-28 21:55:48 UTC
Red Hat Product Errata RHBA-2018:3169 0 None None None 2018-10-30 10:48:02 UTC

Description Amar Huchchanavar 2017-05-01 08:57:43 UTC
Description of problem:
Virt-who could not read the guest-host mappings if 'hypervisor_id=hostname' and 'filter_host_uuids' are present in the configuration file.

'filter_host_uuids' is not compatible with 'hypervisor_id=hostname' option. We need to use 'filter_hosts=' to filter hosts.

Version-Release number of selected component (if applicable):
virt-who-0.17-11.el7_3.noarch

How reproducible:
Always

Steps to Reproduce:
1.Configure virt-who with below settings.
[howst-vcspv01]
type=esx
[all other details]
hypervisor_id=hostname
filter_host_uuids="446e2e7d-825a-5ca0-8cee-13ae9f56c903","4a9d7c0f-7058-4afd-8d06-42661872b48c","118f4087-7535-4187-8bc2-8e07fc676156"
2.Try to report the mappings.#virt-who -o -d


Actual results:
It fails to read the mappings,
~~~
017-04-21 15:07:53,606 [virtwho.main INFO] MainProcess(3074):MainThread @subscriptionmanager.py:hypervisorCheckIn:195 - Sending update in hosts-to-guests mapping for config "vcenter1": 0 hypervisors and 0 guests found
~~~

Expected results:
It should throw syntax error.

If  'hypervisor_id=hostname' option is present in the file, 
then force to use below two options:

filter_hosts="host1.example.com","host2.example.com","host3.example.com"  `OR`
exclude_hosts=host1.example.com,host2.example.com,host3.example.com

[filter_hosts - If provided, only hosts with hostnames in this list will be reported,
exclude_hosts - If provided, do not report hosts with hostnames in this list.]

Comment 2 Kevin Howell 2017-05-04 14:28:29 UTC
filter_hosts should work with hypervisor_id=hostname.

Comment 3 Kevin Howell 2017-05-04 14:29:11 UTC
we'll try to address as part of upcoming config linting changes

Comment 9 errata-xmlrpc 2018-10-30 10:47:13 UTC
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.

https://access.redhat.com/errata/RHBA-2018:3169


Note You need to log in before you can comment on or make changes to this bug.