Bug 2215294

Summary: Hammer doesn't show LCE and CV of a host
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: Lifecycle EnvironmentsAssignee: Chris Roberts <chrobert>
Status: VERIFIED --- QA Contact: Cole Higgins <chiggins>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: chiggins, chrobert, pcreech
Target Milestone: 6.14.0Keywords: Regression, Triaged
Target Release: UnusedFlags: osousa: needinfo? (chrobert)
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: 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 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.