-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
0
-
False
-
-
False
-
0
-
sat-proton
-
-
-
Sprint 130, Sprint 131
+++ This bug was initially created as a clone of Bug #2255900 +++
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?
— Additional comment from on 2023-12-26T12:30:26Z
If we explicitly try to print it with hammer command, the output is blank.
— Additional comment from on 2024-01-03T09:20:30Z
-
-
- Bug 2256472 has been marked as a duplicate of this bug. ***
-
— Additional comment from on 2024-01-03T16:19:05Z
In 6.14 'Content view' and 'Lifecycle environment' are no longer direct properties of the host, hence the change. We can force hammer to show them again via a code change.
The change will probably be in hammer-cli-katello, so updating component to Hosts - Content.
— Additional comment from on 2024-01-23T20:18:14Z
build status: succeeded
brew:
- rubygem-hammer_cli_katello#2aa277eb90f6321b1a386a76a81aac9288f84e0e: closed - https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=58320472
— Additional comment from on 2024-01-25T18:00:05Z
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.
— Additional comment from on 2024-02-01T15:17:15Z
-
-
- Bug 2261289 has been marked as a duplicate of this bug. ***
-
— Additional comment from on 2024-02-02T08:42:01Z
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
— Additional comment from on 2024-02-19T17:10:24Z
-
-
- Bug 2260163 has been marked as a duplicate of this bug. ***
-
— Additional comment from on 2024-02-20T21:31:31Z
Created attachment 2017886
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
— Additional comment from on 2024-02-22T14:47:30Z
I tested the same hotfix on 6.14.1 and it applies cleanly and works fine there as well.
— Additional comment from on 2024-02-23T14:19:19Z
My customer Cigna (case 03741943) installed the hotfix against their dev Satellite 6.14.1 and it appears to be working. They plan to continue to test and roll out to production on 3/2/2024
QE Tracker for https://issues.redhat.com/browse/SAT-23576
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2266107