Bug 1981444

Summary: "Subscription - Entitlement Report" does not show correct number of subscriptions attached/consumed
Product: Red Hat Satellite Reporter: Julio Entrena Perez <jentrena>
Component: Subscription ManagementAssignee: Ian Ballou <iballou>
Status: CLOSED ERRATA QA Contact: Cole Higgins <chiggins>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ahogbin, iballou, jsherril, mhulan, pdwyer
Target Milestone: 6.12.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:32:43 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 Julio Entrena Perez 2021-07-12 14:44:42 UTC
Description of problem:
"Subscription - Entitlement Report" in Satellite 6.9.3 generates bogus numbers for columns "Subscription Quantity" and "Subscriptions consumed".

Version-Release number of selected component (if applicable):
Satellite 6.9.3
foreman-2.3.1.21-1.el7sat

How reproducible:
Always

Steps to Reproduce:
1. Attach different amounts of multiple Red Hat and custom subscriptions to a host
2. Generate a report from Monitor -> Report Templats -> "Subscription - Entitlement Report" -> Generate
3. Compare values in columns "Subscription Quantity" and "Subscriptions Consumed" with actual number of subscriptions attached to host

Actual results:
Numbers don't match

Expected results:
Numbers match

Additional info:

Comment 2 Marek Hulan 2021-07-13 08:33:31 UTC
Moving to a component that better fits, Reporting is for general bugs in the reporting engine, not specific reports.

Comment 3 Julio Entrena Perez 2021-07-13 09:12:07 UTC
(In reply to Marek Hulan from comment #2)
> Moving to a component that better fits, Reporting is for general bugs in the
> reporting engine, not specific reports.

Previous bugs to try to address this (bug 1834866, bug 1835189 and bug 1835690) were assigned to Reporting component. Is there any reason why this one shouldn't?

Comment 4 Marek Hulan 2021-07-20 05:55:59 UTC
BZ 1834866 - Allowing registered_at access in reporting engine touches the whole engine, not specific report, you can use it in all report templates
BZ 1835189 - host_redhat_subscriptions macro is the same as above
BZ 1835690 - is the general request of the new report

This BZ is about existing, specific report that uses methods from subscription management which seems to behave differently than expected. People with subscription background will be better able to debug and potentially fix it.

Comment 5 Brad Buckingham 2021-07-22 14:23:47 UTC
Is the customer using Simple Content Access?

Comment 6 Anthony Hogbin 2021-07-22 16:23:15 UTC
In reply to Brad - no - they are not using SCA at this time.

Comment 10 Ian Ballou 2022-03-14 15:51:56 UTC
Created redmine issue https://projects.theforeman.org/issues/34609 from this bug

Comment 11 Bryan Kearney 2022-03-15 00:04:21 UTC
Upstream bug assigned to iballou

Comment 12 Bryan Kearney 2022-03-15 00:04:24 UTC
Upstream bug assigned to iballou

Comment 13 Bryan Kearney 2022-03-18 00:04:24 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34609 has been resolved.

Comment 20 errata-xmlrpc 2022-11-16 13:32:43 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 (Important: Satellite 6.12 Release), 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/RHSA-2022:8506