Bug 1936862

Summary: Filter inventory query only to hosts that belong to the current Satellite
Product: Red Hat Satellite Reporter: Shimon Shtein <sshtein>
Component: RH Cloud - InventoryAssignee: Shimon Shtein <sshtein>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: aruzicka, pcreech
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.0.18 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:26:15 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 Shimon Shtein 2021-03-09 11:29:04 UTC
Instead of fetching all hosts available to the account, only fetch those that already have satellite_id tag set up.

The sync hosts status action on Configure -> Inventory page becomes much quicker.

Comment 1 Jameer Pathan 2021-03-22 12:54:10 UTC
Verified 

Verified with:
- Satellite 6.9.0 snap 18
- tfm-rubygem-foreman_rh_cloud-3.0.18.1-1.el7sat.noarch

Test steps:
- Have few hosts registered to satellite.
- Go to Configure > Inventory upload and Configure Inventory upload plugin.
- Sync inventory status

Observations:
- Inventory synced successfully and seemed to be happening faster than the previous version of the plugin.
- No errors observed.

Comment 4 errata-xmlrpc 2021-04-21 13:26:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1313