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 2260163 - Executing the 'hammer' command to list hosts with the '--field' option to display "Content View" and "Lifecycle Environment" information produces no output.
Summary: Executing the 'hammer' command to list hosts with the '--field' option to dis...
Keywords:
Status: CLOSED DUPLICATE of bug 2255900
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.15.0
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-24 18:20 UTC by Aniket
Modified: 2024-02-19 17:10 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-02-19 17:10:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-22677 0 None None None 2024-01-24 18:34:09 UTC
Red Hat Knowledge Base (Solution) 7056393 0 None None None 2024-02-19 15:41:40 UTC

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 ***


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