Bug 2215294 - Hammer doesn't show LCE and CV of a host [NEEDINFO]
Summary: Hammer doesn't show LCE and CV of a host
Keywords:
Status: VERIFIED
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-07-18 19:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
osousa: needinfo? (chrobert)


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

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.


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