Bug 2178691

Summary: [RFE] Ability to list all duplicated entries for a host using API or CLI in Inventory and Compliance
Product: Red Hat Hybrid Cloud Console (console.redhat.com) Reporter: Riya Banerjee <ribanerj>
Component: InventoryAssignee: aprice
Status: CLOSED WONTFIX QA Contact: fstavela
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: ahumbe, cmarinea, fjansen, lphiri, robwilli
Target Milestone: ---   
Target Release: ---   
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: 2023-04-17 12:23:50 UTC 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 Riya Banerjee 2023-03-15 15:16:42 UTC
Description of problem:
Currently, there is no method to get a list of duplicate entries for a system on Inventory as well as on Compliance via Insights API or CLI.

One can only get list of all systems using below APIs:
https://console.redhat.com/docs/api/inventory/v1#operations-tag-hosts
https://console.redhat.com/docs/api/compliance/v1#operations-host-ListHosts


Sometimes, it is observed that some hosts have several entries. It will be helpful if once can fetch the list of duplicate entries, that can safely removed, through Insights API or CLI.

Comment 1 Rob Williams 2023-04-17 12:23:50 UTC
Thank you for submitting this RFE for Red Hat Insights. The Inventory that Red Hat Insights applications use has logic in place to consolidate unique hosts coming from different data sources to prevent multiple instances of the same host being listed. If duplicate entries are experienced in the Inventory or Insights applications, this is unintentional product behavior and should be treated as a bug. The team has reviewed this request and has determined there are no plans to provide specialized functionality to self-manage duplicate hosts on the immediate or near-term roadmap. If this is being encountered, please open a support case with Red Hat Support so our product teams can get the necessary information to determine a root cause for this issue and fix the product to provide an accurate & reliable inventory. Due to this, we will be closing this ticket out as CLOSED WONTFIX.

Comment 2 Insights Rule Dev Team 2023-04-19 08:26:54 UTC
This bugzilla ticket has been migrated to https://issues.redhat.com/browse/RHINENG-369 for further development. Please follow the updates in that Jira ticket directly. This bugzilla ticket is marked as CLOSED. If the Jira ticket is not visible to you, please leave a comment in this bugzilla ticket.