Bug 2260163

Summary: Executing the 'hammer' command to list hosts with the '--field' option to display "Content View" and "Lifecycle Environment" information produces no output.
Product: Red Hat Satellite Reporter: Aniket <amahindr>
Component: Content ViewsAssignee: 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: ahumbe, aruzicka, jlenz, ofedoren, rgreene, rlavi, saydas, sbible, vsedmik, zhunting
Target Milestone: 6.15.0Keywords: Regression, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-19 17:10:24 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 Aniket 2024-01-24 18:20:58 UTC
Description of problem: Executing the 'hammer' command to list hosts with the '--field' option to display "Content View" and "Lifecycle Environment" information produces no output.


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

Satellite 6.14


How reproducible:

Execute below command on Satellite 6.14

 # hammer host list --fields "Name","Content view","Lifecycle environment"


Actual results:

# hammer host list --fields "Name","Content view","Lifecycle environment"
-------------------------------------
NAME                                 
-------------------------------------
client.example.com


Expected results:

# hammer host list --fields "Name","Content view","Lifecycle environment"
--------------------------------------|---------------------------|----------------------
NAME                                  | CONTENT VIEW              | LIFECYCLE ENVIRONMENT
--------------------------------------|---------------------------|----------------------
client.example.com                    | Default Organization View | Library              


Additional info:

Tested and verified to be working on Satellite 6.11 and Satellite 6.13

Comment 1 Sayan Das 2024-02-02 08:49:45 UTC
I have a feeling that the fix for BZ# https://bugzilla.redhat.com/show_bug.cgi?id=2255900 [ which would land on 6.15.0 ] would also fix this BZ i.e. behavior with --fields and missing CV\LCE info despite mentioning them.

Comment 3 Sam Bible 2024-02-02 14:21:10 UTC
Verified on 6.15 - Snap 8

Steps to Verify:
1. Execute this hammer command on satellite: hammer host list --fields "Name","Content view","Lifecycle environment"

Expected Results: 
Name, Content View and Lifecycle Environment are all listed in the output.

Actual Results:
Name, Content View and Lifecycle Environment are all listed in the output.

Comment 5 Jeremy Lenz 2024-02-19 17:10:24 UTC
Closing as duplicate since there is no separate fix to package here.

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