Bug 1476894

Summary: Virt-who not filtering the hosts with name and uuid both
Product: Red Hat Enterprise Linux 7 Reporter: Kevin Howell <khowell>
Component: virt-whoAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED WORKSFORME QA Contact: Eko <hsun>
Severity: high Docs Contact:
Priority: high    
Version: 7.2CC: bbuckingham, bcourt, csnyder, jcallaha, jhnidek, khowell, mverma, rjerrido, satellite6-bugs, tomckay, yuefliu
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1441761 Environment:
Last Closed: 2018-06-15 12:59:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1441761    

Comment 2 Kevin Howell 2017-07-31 18:03:13 UTC
Dev: please reproduce the issue if possible.

Comment 3 Chris Snyder 2017-08-07 18:49:18 UTC
I am not able to reproduce the issue. Virt-who 0.19 is able to parse values of the 'filter_hosts' config parameter correctly.

The filter_hosts configuration parameter will select only hypervisors with hypervisor_ids matching the value(s) given to it.

In my reproducer using the value for 'filter_hosts' of (less the single quotes)
'"abc.caidan.local","xyz.caidan.local"', results in only the hypervisors with hostnames "abc.caidan.local" and "xyz.caidain.local" to be sent.

I've also verified that using a 'filter_hosts' value of (less the single quotes) 'abc.caidan.local,xyz.caidan.local' behaves the same as above as well.

-----------------------------------------------------------------------

It is worth noting that the configuration parameters 'filter_hosts' and similar ('exclude_hosts'), match against whatever the hypervisor_id is set to. So with a 'hypervisor_id' setting of 'hostname', 'filter_hosts' will match the hostnames retrieved from the server.


-----------------------------------------------------------------------

At this point I would suggest removing the 'filter_hosts' parameter (as you have),
setting the 'hypervisor_id' to 'hostname' (as you have), and running the following, to see what virt-who has identified the hostnames as:

'virt-who --print 2>/dev/null | python -m json.tool | grep uuid'

That should help to identify if perhaps there is a mismatch in what virt-who is gathering as the hostnames and what is expected (used in the filter).


Please let me know if you are able to solve the issue using the above.

Comment 9 Jiri Hnidek 2018-06-15 12:59:53 UTC
We are closing this bug report. When more information will be available, then feel free to reopen this bug report.

Comment 10 Red Hat Bugzilla 2023-09-15 00:03:14 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days