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 2255900 - hammer host list does not print parameters even if they are present in the fields list like LCE and CVs.
Summary: hammer host list does not print parameters even if they are present in the fi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.14.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.15.0
Assignee: Chris Roberts
QA Contact: Sam Bible
URL: https://projects.theforeman.org/issue...
Whiteboard:
: 2256472 2260163 2261289 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-26 12:27 UTC by Vedashree Deshpande
Modified: 2024-04-23 17:16 UTC (History)
15 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_katello-1.11.1.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2266107 (view as bug list)
Environment:
Last Closed: 2024-04-23 17:16:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Hotfix RPMs for Satellite 6.14.2 (168.82 KB, application/x-rpm)
2024-02-20 21:31 UTC, Ian Ballou
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 37053 0 Normal Closed hammer host list does not print parameters even if they are present in the fields list like LCE and CVs 2024-02-20 20:11:05 UTC
Github Katello hammer-cli-katello pull 922 0 None Merged Fixes #37053 - Add CV/LCE back host list params 2024-02-20 20:11:19 UTC
Red Hat Issue Tracker SAT-22136 0 None None None 2023-12-26 12:29:33 UTC
Red Hat Knowledge Base (Solution) 7056393 0 None None None 2024-02-19 17:10:24 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:16:41 UTC

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


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