Bug 2224112

Summary: Sat6.11/RHCloud/Bug] hosts with host_registration_insights the inventory upload status is outdated (6 months old) and not removed/reset
Product: Red Hat Satellite Reporter: achadha
Component: RH Cloud - InventoryAssignee: Shimon Shtein <sshtein>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.11.1CC: ahumbe, aruzicka, peter.vreman, rlavi
Target Milestone: UnspecifiedKeywords: Triaged, WorkAround
Target Release: Unused   
Hardware: All   
OS: Linux   
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 achadha 2023-07-19 19:46:12 UTC
Description of problem:

On a test servers we have disabled the RH Cloud integration using by setting on the hosts the  'params.host_registration_insights = false' to prevent the server from being uploaded to RH Cloud and also Insights-Client (sat6 proxied) uploads will be prevented. This is working fine in the Insights portal part, the test servers never showed up again anymore after we removed them in Insights portal.

What is still left incorrect is the Host Satus of the hosts that is still set to Warning, because the 'InventoryStatus' is still set to '0' in the last time the server was uploaded.  Customer would expect that for all exlcuded servers the RHCloud plugin would also remove InventoryStatus or set it to 'green'. but that the server will not be in a Warning state anymore

Expectation:
The InventoryStatus is removed if host_registration_insights=false
The InventoryStatus is removed or set to OutDated if its is too old (e.g. > 7 days)