Bug 1387341

Summary: [RFE] virt-who to report RHEL presence inside Virtual Infrastructures clusters
Product: Red Hat Enterprise Linux 8 Reporter: Andrea Perotti <aperotti>
Component: virt-whoAssignee: William Poteat <wpoteat>
Status: CLOSED WONTFIX QA Contact: Eko <hsun>
Severity: medium Docs Contact:
Priority: low    
Version: ---CC: daniele, haridas.vhadade, hsun, khowell, rdixon, rjerrido, wpoteat, yuefliu
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.2   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1387800 (view as bug list) Environment:
Last Closed: 2020-06-05 08:32:09 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:
Bug Depends On: 1387800    
Bug Blocks: 1353215, 1420851    

Description Andrea Perotti 2016-10-20 16:30:23 UTC
1. Proposed title of this feature request
Skip reporting whole clusters and all hypervisors in it, if there's no RHEL servers hoster in that cluster.

3. What is the nature and description of the request? 
We need to register only the needed physical hosts in a virtual infrastructure, not hypervisors hosts that are not containing any RHEL server.

4. Why does the customer need this? (List the business requirements here)
We have a mixed environment in which RHEL server may or may not be present in a specific cluster.
The cluster name and VM hosted number can change on a daily basis.
Our goal is to register all the hosts in the cluster if even just one RHEL server is present in the cluster.

5. How would the customer like to achieve this? (List the functional requirements here)
We need this information in virt-who output to have this information ready for candlepin (see case #01657273).
virt-who --print should show this information too.
We would like to have a way to also get the number of RHEL VM currently present in a cluster.

For vmware we have written this little snippet, published in:
https://github.com/peppos/vmware-list-vm:

if($cluster_view) {
     my $vm_list = Vim::find_entity_views(  view_type => 'VirtualMachine',
                                                                 begin_entity => $cluster_view,
                                                                 # modify this filter if you want print another VMs type
                                                                 filter => { 'config.guestFullName' => qr/Linux/ },
                                                                 properties => [ 'name' ] );

A better filter for obtain Red Hat Server could be obtained filtering per "Red Hat".


6. For each functional requirement listed in question 5, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
- virt-who --print should show cluster name, vm name and numbers by cluster name

There are several possibilities in our opinion to have this information:
a) have the information cluster "aside" the host one (keep great compatibility, we need to glue the information outside)
b) add cluster information into each host (need to glue anyway the information, similar to the previous one)
c) rewrite the virt-who output in order to have the host contained within the cluster (there may be compatibility problems)

8. Does the customer have any specific timeline dependencies?
End of 2016

9. Is the sales team involved in this request and do they have any additional input?
no 

11. Would the customer be able to assist in testing this functionality if implemented?
Yes, sure

Comment 4 Chris Snyder 2017-07-10 21:38:46 UTC
We will add a configuration option for the vmware backend that will filter hypervisors (and or clusters) if none of their guests config.guestFullName match a given string.

Comment 5 Kevin Howell 2017-07-27 14:45:52 UTC
Suggestion: if implemented per comment 4, the filter can log the number of filtered guests.

Comment 7 Rich Jerrido 2020-06-05 08:32:09 UTC
Thank you for your interest. We have evaluated this request, and
while we recognize that it is a valid request, we do not expect this to be
implemented in the product in the foreseeable future. This is due to other
priorities for the product, and not a reflection on the request itself. We are
therefore closing this out as WONTFIX. If you have any concerns about this,
please do not reopen. Instead, feel free to contact Red Hat Technical Support.
Thank you.