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 2215294 - Hammer doesn't show LCE and CV of a host
Summary: Hammer doesn't show LCE and CV of a host
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Lifecycle Environments
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.14.0
Assignee: Chris Roberts
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-15 11:45 UTC by Lukáš Hellebrandt
Modified: 2023-11-17 18:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:19:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36401 0 Normal Ready For Testing hammer host info no longer shows content view and lifecycle environment 2023-06-15 11:58:51 UTC
Github Katello hammer-cli-katello pull 894 0 None open Refs #36401 - Update info command to show multiple cv envs 2023-06-20 18:11:05 UTC
Github Katello katello pull 10604 0 None Merged Fixes #36401 - Update content_facet rabl to show multi_env like in db 2023-06-20 18:11:05 UTC
Red Hat Issue Tracker SAT-18433 0 None None None 2023-06-15 14:08:52 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:19:59 UTC

Description Lukáš Hellebrandt 2023-06-15 11:45:29 UTC
Description of problem:
Hammer host info doesn't show Lifecycle environment and Content view of a host

Version-Release number of selected component (if applicable):
6.14, reproduced on snap 3.0

How reproducible:
Deterministic

Steps to Reproduce:
1. Have a host in some CV and LCE
2. Get its info through API. It will show CV and LCE
3. Get its info through Hammer. It will NOT show CV and LCE

Actual results:
# curl -k -uadmin:changeme -H 'Content-Type: application/json' -X GET https://$(hostname)/api/hosts/3 
[...]
,"content_facet_attributes":{"id":1,"uuid":null,"content_source_id":null,"content_source_name":null,"kickstart_repository_id":null,"kickstart_repository_name":null,"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0,"applicable":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"applicable_deb_count":0,"upgradable_deb_count":0,"applicable_package_count":0,"upgradable_package_count":0,"applicable_module_stream_count":0,"upgradable_module_stream_count":0,"content_views":[{"id":3,"name":"ziKdbAwGkR","composite":false}],"lifecycle_environments":[{"id":3,"name":"WSfzlleD"}],"content_source":null,"kickstart_repository":null,"content_view":{"id":3,"name":"ziKdbAwGkR","composite":false},"lifecycle_environment":{"id":3,"name":"WSfzlleD"},"permissions":
[...]

# hammer host info --id 3
[...]
Content Information:      
    Content View:          
    
    Lifecycle Environment: 
    
    Content Source:        
        Id:   
        Name:
    Kickstart Repository:  
        Id:   
        Name:
    Applicable Packages:   0
    Upgradable Packages:   0
    Applicable Errata:     
        Enhancement: 0
        Bug Fix:     0
        Security:    0
[...]


Expected results:
Hammer returns correct CV and LCE

Additional info:
Probably related to Multiple Environment backend changes for 6.14

Comment 1 Bryan Kearney 2023-06-15 12:03:28 UTC
Upstream bug assigned to chrobert

Comment 2 Bryan Kearney 2023-06-15 12:03:30 UTC
Upstream bug assigned to chrobert

Comment 3 Bryan Kearney 2023-06-20 16:03:22 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36401 has been resolved.

Comment 9 errata-xmlrpc 2023-11-08 14:19:49 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.14 security and bug fix update), 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-2023:6818


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