Bug 2133651

Summary: The API does not return the value of Host Inventory status.
Product: Red Hat Satellite Reporter: Anand Kulkarni <ankulkar>
Component: RH Cloud - InventoryAssignee: Shimon Shtein <sshtein>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.11.0CC: aruzicka, ehelms, peter.vreman
Target Milestone: UnspecifiedKeywords: Triaged
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: 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 Anand Kulkarni 2022-10-11 05:20:20 UTC
Description of problem: The API does not return the value of Host Inventory status.

Host Inventory status in the Satellite web UI Hosts -> All Hosts -> <Host> page 
-> Inventory (under Properties tab) does not return with the API.

# curl --request GET --user admin:pass https://$(Satellite_FQDN)/api/v2/hosts/$(hostname) | grep status |  python -m json.tool

----------------------------------------------------------
{
    <snip>
    "errata_status": 0,
    "errata_status_label": "All errata applied",
    <snip>
    "global_status": 0,
    "global_status_label": "OK",   
     <snip>
    "puppet_status": 0,
    "purpose_addons_status": 0,
    "purpose_addons_status_label": "Unknown",
    "purpose_role_status": 0,
    "purpose_role_status_label": "Unknown",
    "purpose_sla_status": 0,
    "purpose_sla_status_label": "Unknown",
    "purpose_status": 0,
    "purpose_status_label": "Unknown",
    "purpose_usage_status": 0,
    "purpose_usage_status_label": "Unknown",
     <snip>
    "subscription_global_status": 0,
    "subscription_status": 5,
    "subscription_status_label": "Simple Content Access",
    "updated_at": "2022-10-10 14:43:43 UTC",
    "uptime_seconds": 55985,
    "use_image": null,
    "uuid": null
}
----------------------------------------------------------

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


Actual results:
The API did not return the Inventory status.

Expected results:
The API should return the Inventory status.

Additional info:

Comment 1 Peter Vreman 2022-10-11 08:20:47 UTC
There are 2 status fields in the UI that are not in the API and therefor also not in the Hammer CLI host info
- rhcloud inventory status
- rhcloud insights status