Bug 1827389

Summary: Manifest import and delete calls Actions::Pulp::Repository::Refresh for non-Library repositories
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Subscription ManagementAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Cole Higgins <chiggins>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: egolov
Target Milestone: 6.8.0Keywords: PrioBumpField, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.16.0-0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1832593 (view as bug list) Environment:
Last Closed: 2020-10-27 13:02:09 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 Mike McCune 2020-04-23 19:25:16 UTC
During the import of a new manifest or deletion of existing manifest the task will needlessly call Actions::Pulp::Repository::Refresh for non-Library repositories that are members of Content Views contained within Lifecycle Environments.

This can expand the order-of-magnitude of the import/delete routine to 10-100x higher than it needs to be.

On Satellites with large amounts of content views and LCEs there may be only 100 repositories in the Library but you end up with 10,000-30,000 repositories that get needlessly refreshed during the import/delete 

This causes customers to often have to wait hours and even up to a day to complete an import or delete.

Comment 3 Partha Aji 2020-04-23 19:43:39 UTC
Connecting redmine issue https://projects.theforeman.org/issues/29611 from this bug

Comment 4 Mike McCune 2020-04-24 15:59:25 UTC
The fix upstream yields multiple orders of magnitude speed improvements on manifest import and delete.

Tested this on an instance where a manifest import and delete required 1600+ calls to Repo refresh:

** Before patch: import and delete took 35 minutes

** After patch: 30 seconds

Comment 5 Bryan Kearney 2020-04-27 20:54:33 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29611 has been resolved.

Comment 10 errata-xmlrpc 2020-10-27 13:02:09 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 (Important: Satellite 6.8 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-2020:4366