Bug 2133651 - The API does not return the value of Host Inventory status.
Summary: The API does not return the value of Host Inventory status.
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Inventory
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: Unspecified
Assignee: Shimon Shtein
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-11 05:20 UTC by Anand Kulkarni
Modified: 2023-03-23 12:59 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:


Attachments (Terms of Use)

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


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