Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1835690 - [RFE] Entitlements report should list number of subscriptions consumed by each host
Summary: [RFE] Entitlements report should list number of subscriptions consumed by eac...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Reporting
Version: 6.7.0
Hardware: All
OS: Linux
high
high
Target Milestone: 6.9.3
Assignee: Nagoor Shaik
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
: 1861849 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-14 10:26 UTC by Julio Entrena Perez
Modified: 2024-10-01 16:35 UTC (History)
15 users (show)

Fixed In Version: tfm-rubygem-katello-3.18.1.32-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1962834 (view as bug list)
Environment:
Last Closed: 2021-07-01 14:56:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tfm-rubygem-katello-3.16.0.26-2.HFRHBZ1835690.el7sat.noarch.rpm (13.00 MB, application/x-rpm)
2021-04-26 22:33 UTC, Mike McCune
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29838 0 Normal Closed Entitlements report should list number of Red Hat subscriptions consumed by each host 2021-01-15 21:01:12 UTC
Red Hat Product Errata RHBA-2021:2636 0 None None None 2021-07-01 14:57:24 UTC

Description Julio Entrena Perez 2020-05-14 10:26:48 UTC
Description of problem:
The "Entitlements" report has a column named "Subscription Quantity" which currently displays how many subscriptions exist in the pool (pool.quantity).

Customer would like the report to display the number of subscriptions that the host is consuming. For 2 socket servers that may by 1 sub, for 4 socket servers that may be 2 subs, etc...

Version-Release number of selected component (if applicable):
foreman-1.24.1.21-1.el7sat
tfm-rubygem-katello-3.14.0.20-1.el7sat

How reproducible:
Always

Steps to Reproduce:
1. Run the Entitlements report in Satellite 6.7
2. Observe column "Subscription Quantity" 
3.

Actual results:
Column "Subscription Quantity" displays the number of subscriptions available in the pool.

Expected results:
Column "Subscription Quantity" or some other column displays the number of subscriptions attached to the host.
Alternatively a macro providing the number of subscriptions attached to the host is made available for customer to use it in a custom clone of the Entitlements report. 

Additional info:

Comment 2 Nagoor Shaik 2020-05-15 02:45:11 UTC
Created redmine issue https://projects.theforeman.org/issues/29838 from this bug

Comment 9 Waldirio M Pinheiro 2020-07-30 16:40:54 UTC
*** Bug 1861849 has been marked as a duplicate of this bug. ***

Comment 11 Bryan Kearney 2021-01-15 14:04:55 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/29838 has been resolved.

Comment 12 Mike McCune 2021-04-26 22:04:26 UTC
*** Satellite 6.8.6 Hotfix Available ***

1) Download tfm-rubygem-katello-3.16.0.26-2.HFRHBZ1835690.el7sat.noarch.rpm from this bugzilla to your Satellite

2) stop services:

satellite-maintain service stop

3) Install:

rpm -Uvh  tfm-rubygem-katello-3.16.0.26-2.HFRHBZ1835690.el7sat.noarch.rpm 

4) restart:

satellite-maintain service start

5) resume operations

Comment 13 Mike McCune 2021-04-26 22:33:00 UTC
Created attachment 1775730 [details]
tfm-rubygem-katello-3.16.0.26-2.HFRHBZ1835690.el7sat.noarch.rpm

Comment 18 Lukáš Hellebrandt 2021-06-14 10:32:32 UTC
Verified with Sat 6.9.3 snap 2.0.

Imported a manifest, created a custom product, added all of those to the activation key, registered a host using that activation key. Then WebUI -> Report Templates -> "Subscription - Entitlement report" -> Generate -> Submit.
The resulting file contains column "Subscriptions Consumed" (next to "Subscription Quantity") which contains a number of those subscriptions consumed by all hosts together. The report takes into account all the subscriptions, including custom ones, which can be told apart by having Contract column empty.

Comment 27 errata-xmlrpc 2021-07-01 14:56:48 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 (Satellite 6.9.3 Async Bug Fix Update), 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/RHBA-2021:2636


Note You need to log in before you can comment on or make changes to this bug.