Bug 2255900

Summary: hammer host list does not print parameters even if they are present in the fields list like LCE and CVs.
Product: Red Hat Satellite Reporter: Vedashree Deshpande <vdeshpan>
Component: Hosts - ContentAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Sam Bible <sbible>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: ahumbe, amahindr, chrobert, daniel.pilawa, iballou, jlenz, ofedoren, onerleka, pdwyer, rgreene, rlavi, saydas, sbible, wpinheir, zhunting
Target Milestone: 6.15.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: https://projects.theforeman.org/issues/37053
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_katello-1.11.1.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2266107 (view as bug list) Environment:
Last Closed: 2024-04-23 17:16:39 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
Hotfix RPMs for Satellite 6.14.2 none

Description Vedashree Deshpande 2023-12-26 12:27:23 UTC
Description of problem:
After upgrade to Satellite 6.14 hammer cli command "hammer host list" does no longer display information about lifecycle environments and content views not via "DEFAULT" or "ALL" or even if specifically requested via --fields option. It is only visible for each host when using "hammer host info --name <servername>".

Example output:
[XXX@satellite ~]$ hammer host list --per-page 2
-----|-------------------------------------|------------------|------------|---------------|-------------------|--------------
ID   | NAME                                | OPERATING SYSTEM | HOST GROUP | IP            | MAC               | GLOBAL STATUS
-----|-------------------------------------|------------------|------------|---------------|-------------------|--------------
1915 | xxx                                    | RedHat 8.7       |            | 10.xx.xxx.xx  | 00:50:56:8a:da:XX | Error


Version-Release number of selected component (if applicable):
Satellite 6.14. 
Until 6.13 it was showing the LCE and CV details. 

Actual results:
satellite ~]$ hammer host list --per-page 2
-----|-------------------------------------|------------------|------------|---------------|-------------------|--------------
ID   | NAME                                | OPERATING SYSTEM | HOST GROUP | IP            | MAC               | GLOBAL STATUS
-----|-------------------------------------|------------------|------------|---------------|-------------------|--------------
1915 | xxx                                    | RedHat 8.7       |            | 10.xx.xxx.xx  | 00:50:56:8a:da:XX | Error


Expected results:
To list LCE and CV details. 

Additional info:
If this is intended behaviour with 6.14 then how would i go about and get this information now for all hosts without looping through every single one?

Comment 1 Vedashree Deshpande 2023-12-26 12:30:26 UTC
If we explicitly try to print it with hammer command, the output is blank.

Comment 2 Adam Ruzicka 2024-01-03 09:20:30 UTC
*** Bug 2256472 has been marked as a duplicate of this bug. ***

Comment 5 Sam Bible 2024-01-25 18:00:05 UTC
Verified on 6.15 - Snap 8

Steps to Verify:
1. Create a CV, and promote it to an LCE
2. Create an AK associated with these.
3. Register a host with that AK

Expected Results:
hammer host list shows both the LCE and the CV in the output, and this information is correct.

Actual Results:
hammer host list shows both the LCE and the CV in the output, and this information is correct.

Comment 6 Ron Lavi 2024-02-01 15:17:15 UTC
*** Bug 2261289 has been marked as a duplicate of this bug. ***

Comment 7 Sayan Das 2024-02-02 08:42:01 UTC
I have a feeling that the fix for this BZ would fix https://bugzilla.redhat.com/show_bug.cgi?id=2260163 as well. 

Can anyone please confirm ?


-- Sayan

Comment 8 Jeremy Lenz 2024-02-19 17:10:24 UTC
*** Bug 2260163 has been marked as a duplicate of this bug. ***

Comment 9 Ian Ballou 2024-02-20 21:31:31 UTC
Created attachment 2017886 [details]
Hotfix RPMs for Satellite 6.14.2

A hotfix RPM is now available for Satellite 6.14.2.

INSTALL INSTRUCTIONS (Satellite 6.14.2):

1. Take a complete backup or snapshot of Satellite 6.14.2 server

2. Obtain the Hotfix RPM for Satellite 6.14.2 from this attachment

3. # dnf install ./rubygem-hammer_cli_katello-1.9.1.2-2.HOTFIXRHBZ2255900.el8sat.noarch.rpm --disableplugin=foreman-protector

Comment 10 Sayan Das 2024-02-22 14:47:30 UTC
I tested the same hotfix on 6.14.1 and it applies cleanly and works fine there as well.

Comment 14 errata-xmlrpc 2024-04-23 17:16:39 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.15.0 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-2024:2010