Bug 2103757

Summary: [RFE] Create Satellite report to help customers "true up"
Product: Red Hat Satellite Reporter: Jessica Richards <jrichards2>
Component: ReportingAssignee: wclark
Status: ASSIGNED --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.9.0CC: ahumbe, dsinglet, mhulan, paji, rjerrido, wclark, wpinheir
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
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: 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 Jessica Richards 2022-07-04 18:42:27 UTC
1. Proposed title of this feature request

[RFE] Create Satellite report to help customers "true up"

3. What is the nature and description of the request?

With Simple Content Access enabled, the built-in Report Template "Subscription - Entitlement Report" is empty.  Soon, SCA will become mandatory, so customers who are interested in honestly reporting subscription numbers to Red Hat will no longer have a reliable "out of the box" way to count their product consumption.

4. Why does the customer need this? (List the business requirements here)

Some customers like to pay Red Hat money for our services.

5. How would the customer like to achieve this? (List the functional requirements here)

Add new template under Monitor > "Report Templates" named "Red Hat Product usage" that lists the products on registered hosts.

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

- run the report
- confirm that it contains the same hosts as are present in Hosts > "Content Hosts"
- check each host in the list to confirm that the products present on each host are also present in the report

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?

no

8. Does the customer have any specific time-line dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?

It probably shouldn't be guaranteed to properly list products installed on non-RHEL platforms.

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

no

10. List any affected packages or components.

foreman

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

yes

Comment 2 Jessica Richards 2022-07-04 19:44:10 UTC
This appears to work on both my Satellite 6.9 and 6.10 servers:

<%- load_hosts.each_record do |hostname| -%>
<%-   report_row(
        'hostname': hostname.name,
        'products': host_products_names(hostname)
      ) -%>
<%- end -%>
<%= report_render -%>