Description of problem: Command "hammer subscription list" is not correctly showing the comment "Guests of ..." in the "Type" field in the output for VDC subscription. Version-Release number of selected component (if applicable): Red Hat Satellite 6.4 How reproducible: Always Steps to Reproduce: 1. Have hypervisor subscribed to the Red Hat Satellite server 2. List the subscriptions: # hammer -d subscription list --organization organization_name 3. Check the column "Type" of the output, it will not show the type as Guests of <hypervisor>" Actual results: Type is : Virtual Expected results: Type would be : Guests of <Hypervisor> Additional info:
Output from my test systems: Before: # hammer -d subscription list --organization redhat ----|----------------------------------|----------------------------------------------------------------------------------|----------|----------|---------|--------------|---------------------|-----------|--------- ID | UUID | NAME | TYPE | CONTRACT | ACCOUNT | SUPPORT | END DATE | QUANTITY | CONSUMED ----|----------------------------------|----------------------------------------------------------------------------------|----------|----------|---------|--------------|---------------------|-----------|--------- 100 | 4028fb836856094a0168563fefcf1117 | Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard | Virtual | 11111111 | 123456 | Standard | 2021/12/31 23:59:59 | Unlimited | 0 ----|----------------------------------|----------------------------------------------------------------------------------|----------------------------------------------------------|----------|---------|------------ After: Adding below lines in the file - /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.13.4.3/lib/hammer_cli_katello/subscription.rb at line #36 & #37 as per https://github.com/Katello/hammer-cli-katello/pull/614/files __________________________________________________________ elsif data["hypervisor"] _("Guests of %s" % data['hypervisor']['name']) __________________________________________________________ # hammer -d subscription list --organization redhat ----|----------------------------------|----------------------------------------------------------------------------------|----------|----------|---------|--------------|---------------------|-----------|--------- ID | UUID | NAME | TYPE | CONTRACT | ACCOUNT | SUPPORT | END DATE | QUANTITY | CONSUMED ----|----------------------------------|----------------------------------------------------------------------------------|----------|----------|---------|--------------|---------------------|-----------|--------- 100 | 4028fb836856094a0168563fefcf1117 | Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard | Guests of virt-who-example.redhat.com-1 | 11111111 | 123456 | Standard | 2021/12/31 23:59:59 | Unlimited | 0
Verified on 6.8.0_17.0: 1.) Register and subscribe a VM running under VMWare ESX / vCenter. 2.) Enable virt-who on the VM, verify that the hypervisor is reported as a content host on the Satellite, and attach the subscription to it. 3.) Verify that 'hammer subscription list' shows the expected info under the 'type' column: # hammer subscription list ---|----------------------------------|-------------------------------------------------------------------------|------------------------------------------------------------------|----------|---------|--------------|---------------------|---------------------|-----------|--------- ID | UUID | NAME | TYPE | CONTRACT | ACCOUNT | SUPPORT | START DATE | END DATE | QUANTITY | CONSUMED ---|----------------------------------|-------------------------------------------------------------------------|------------------------------------------------------------------|----------|---------|--------------|---------------------|---------------------|-----------|--------- 42 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | Red Hat Enterprise Linux for Virtual Datacenters, Premium | Guests of virt-who-esx-host.example.com-1 | xxxxx | xxxxx | Premium | 2020/04/03 04:00:00 | 2021/04/03 03:59:59 | Unlimited | 1
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.8 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-2020:4366