Bug 2056177

Summary: [Bug] Custom subscriptions consumed and available quantity not correct in the CSV file
Product: Red Hat Satellite Reporter: Dhaval Joshi <dhjoshi>
Component: Subscription ManagementAssignee: Lucy Fu <lufu>
Status: CLOSED ERRATA QA Contact: Cole Higgins <chiggins>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: pcreech
Target Milestone: 6.11.0Keywords: 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: 2022-07-05 14:33:38 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:
Attachments:
Description Flags
CSV file download from Satellite WebUI none

Description Dhaval Joshi 2022-02-19 13:31:37 UTC
Created attachment 1862073 [details]
CSV file download from Satellite WebUI

Description of problem:
Custom subscriptions consumed and available quantity are not correct in the exported CSV file.

Satellite WebUI >> Content >> Subscriptions >> Export CSV

Version-Release number of selected component (if applicable):
Satellite 7.0 Beta

How reproducible:
100%

Steps to Reproduce:
1. Create a custom product on the satellite server.
2. Satellite WebUI >> Content >> Subscriptions >> Export CSV
3. Check the Available and Quantity columns in CSV file. It shows -1.

Actual results:
 - Available and Quantity columns show '-1' count.

Expected results:
 - Should show correct subscription consumption

Additional info:

Comment 1 Brad Buckingham 2022-02-21 14:14:56 UTC
Is this a regression from Satellite 6.10?

Comment 3 Lucy Fu 2022-03-08 22:10:10 UTC
Created redmine issue https://projects.theforeman.org/issues/34578 from this bug

Comment 4 Bryan Kearney 2022-03-09 00:05:38 UTC
Upstream bug assigned to lufu

Comment 5 Bryan Kearney 2022-03-09 00:05:40 UTC
Upstream bug assigned to lufu

Comment 6 Lucy Fu 2022-03-09 16:51:46 UTC
The Available column should be called Consumed as displayed on Content - Subscriptions UI page.
https://github.com/Katello/katello/pull/10004 addresses the above issue.

An unlimited Entitlements on Subscriptions UI page is displayed as Quantity -1 in the exported CSV as designed.

Comment 7 Bryan Kearney 2022-03-15 16:05:42 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34578 has been resolved.

Comment 13 errata-xmlrpc 2022-07-05 14:33:38 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 (Moderate: Satellite 6.11 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:5498