Description of problem:
Currently, for a different reason, the Content Host consume the wrong entitlement. For example, CH running on top of the hypervisor subscribed (by VDC) is consuming one (Physical or Virtual Node). That said, the customer would like to generate a report that should be able to present the complete and actual scenario.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Attach some entitlement to the Content Host and Hypervisors (virt-who-*)
2. Generate a report that should show this info.
3. Currently, there is the hammer call (hammer csv content-hosts) but this is not working on Satellite 6.3 or Satellite 6.4
No way to generate this report/information.
See the report with the information like below
*** Bug 1661333 has been marked as a duplicate of this bug. ***
This can be done with hammer csv. Keeping this bug around to ensure that we can do this with the reporting framework.
Created redmine issue https://projects.theforeman.org/issues/27923 from this bug
Connecting redmine issue https://projects.theforeman.org/issues/27995 from this bug
Verified in Satellite 6.7 Snap 4.
The entitlements report template has been added to Satellite as of this snap.
The report generates correctly, with the following information.
'Lifecycle Environment': host.lifecycle_environment,
'Content View': host.content_view,
'Host Collections': host.host_collections,
'Guest of Host': host.hypervisor_host,
'Subscription Name': sub_name(pool),
'Subscription Type': pool.type,
'Subscription Quantity': pool.quantity,
'Subscription SKU': sub_sku(pool),
'Subscription Contract': pool.contract_number,
'Subscription Account': pool.account_number,
'Subscription Start': pool.start_date,
'Subscription End': pool.end_date,
'Subscription Guest': registered_through(host)
See attached recording for verification.
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.