Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1961181

Summary: subscription watch multiply subscription usage of hypervisors from Satellite inventory
Product: Red Hat Hybrid Cloud Console (console.redhat.com) Reporter: Jan Jansky <jjansky>
Component: Subscription WatchAssignee: Kevin Howell <khowell>
Status: CLOSED WONTFIX QA Contact: Jon Allen <jallen>
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: aperotti, cmarinea, dozdowsk, hhudgeon, jbhatia, khowell, ktordeur, nkathole, pmoravec, rjerrido, sghai, sjagtap, vbendel, wpinheir
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-16 20:59:01 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:

Description Jan Jansky 2021-05-17 12:53:21 UTC
Description of problem: 
In specific scenario where customer is using Satellite with multiple organizations or multiple Satellites and have 1 hypervisor used by more than 1 Satellites/organizations subscription watch will show multiple virt-who hosts for unique hypervisor and shows wrong/multiple subscription consumed.  

If any of above is true hypervisor will be reported by virt-who to specific organizations/satellites. When that happens host will be created in format virt-who-<hostname>-<org_id>. The issue is that when Satellite creates inventory and upload it to cloud.redhat.com hosts are multiplied as 

virt-who-<hostname>-1
virt-who-<hostname>-2

in case of multiple Satellites it can have even same name. However Subscription Watch is showing them with subscription used even if reported hypervisor is the same.

In example you have hypervisor 1, you have 1 Satellites with 2 organizations (id 1 and 2) which both have some hosts on hypervisor 1 so they need to be reported by virt-who to both Organizations, but if that will happen you will see in subscription-watch twice subscription consumed by same hypervisor, once for virt-who host from Organization id 1, once for virt-who host from Organization id 2, which means 2 times more subscriptions used than expected. In that case in subscription watch will be seen

virt-who-hypervisor1.example.com-1 - 1 subscription used, part of virtual hosts listed
virt-who-hypervisor1.example.com-2 - 1 subscription used, part of virtual hosts listed

in reality both those virt-who hosts reporting hypervisor1.example.com so it should consume just 1 subscription

Subscription Watch should be able to unite virt-who reports from multiple Satellites/Organizations to single hypervisor report and calculate accurate number of subscription used. For example

virt-who-hypervisor1.example.com - 1 subscription used, all virtual hosts listed

It is kinda complex issue, so i presume cooperation between Satellite developers and Cloud Software Services will be needed

How reproducible: Always


Steps to Reproduce:
1. Have 1 Red Hat Account
2. Have 1 Hypervisor
3a. Have 1 Satellites with 2 organizations
or
3b. Have 2 Satellites

4a. Report with virt-who to both Organizations from same hypervisor
or
4b. Report with virt-who to both Satellites from same hypervisor
5. Create and upload inventory from Satellite

Actual results:
Subscription Watch show 2 times many consumed subscriptions than expected.


Expected results:
Subscription Watch show accurately subscription used by single hypervisor.

Comment 10 Red Hat Bugzilla 2024-02-04 04:26:00 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days