Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2256472

Summary: Output changed for the command "hammer host list"
Product: Red Hat Satellite Reporter: Daniel <daniel.pilawa>
Component: HammerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: aruzicka, jlenz, ofedoren
Target Milestone: UnspecifiedKeywords: SubBug
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-03 09:20:30 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:

Description Daniel 2024-01-02 14:33:41 UTC
Description of problem:
The default field "Content View" is missing in the outpout from the command
'hammer host list'.
The same happen if you define the fields:
'hammer host list --fields "id,name,Content view"' 

-> 
hammer host list --help |grep -e 'FIELDS\|Content view'
  FIELDS                 | ALL | DEFAULT | THIN
  Content view           | x   | x       |


Version-Release number of selected component (if applicable):
satellite 6.14.1

hammer --version
hammer (3.7.0.1)
 * hammer_cli_foreman (3.7.0)
 * hammer_cli_foreman_admin (1.1.0)
 * hammer_cli_foreman_ansible (0.5.0)
 * hammer_cli_foreman_azure_rm (0.2.2)
 * hammer_cli_foreman_bootdisk (0.3.0)
 * hammer_cli_foreman_discovery (1.1.0)
 * hammer_cli_foreman_google (1.0.1)
 * hammer_cli_foreman_openscap (0.1.13)
 * hammer_cli_foreman_puppet (0.0.6)
 * hammer_cli_foreman_remote_execution (unknown version)
 * hammer_cli_foreman_tasks (unknown version)
 * hammer_cli_foreman_templates (0.2.0)
 * hammer_cli_foreman_virt_who_configure (unknown version)
 * hammer_cli_foreman_webhooks (0.0.4)
 * hammer_cli_katello (1.9.1.2)


How reproducible:
Steps to Reproduce:
1. 'hammer host list'
or 
2. 'hammer host list --fields "id,name,Content view"'


Actual results:
Table column "Content view" is missing

Expected results:
Table column "Content view" is appears

Additional info:
Satellite 6.13.6 works with hammer 3.5.1


Thank you

Comment 1 Adam Ruzicka 2024-01-02 14:47:39 UTC
Feels like a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2255900 .

@jlenz Hi, could these two BZs be related to the recent multi CV changes?

Comment 2 Jeremy Lenz 2024-01-02 15:05:13 UTC
Yes, 'Content view' and 'Lifecycle environment' are no longer fields of the host content facet, so they will not be displayed by Hammer. They now live in the content facet's ContentViewEnvironments instead.

We could look into "forcing" Hammer to display them anyway, I suppose..

Comment 3 Adam Ruzicka 2024-01-03 09:20:30 UTC
Closing as a duplicate of BZ2255900. If I missed something and the two bugs are distinct, feel free to reopen.

*** This bug has been marked as a duplicate of bug 2255900 ***