Why do some repository syncs take extremely long on Satellite 6.2 while other comparable repositories synchronize quickly?

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.2.5 or earlier.

Issue

  • Synchronizing some custom repositories takes a significant amount of time (more than 40 minutes, often more than one hour), while other comparable repositories synchronize much quickly (3 to 5 minutes).

  • Inspecting the details for the Actions::Katello::Repository::Sync task reveals that it seems to take a disproportionate amount of time:

3: Actions::Pulp::Repository::Sync (success) [ 36.24s / 0.72s ]
6: Actions::Katello::Repository::IndexContent (success) [ 3.80s / 3.80s ]
14: Actions::Katello::Repository::ErrataMail (success) [ 0.09s / 0.09s ]
16: Actions::Katello::Repository::Sync (success) [ 2365.00s / 2365.00s ]
18: Actions::Pulp::Repository::RegenerateApplicability (success) [ 5.91s / 4.80s ]
20: Actions::Katello::Repository::ImportApplicability (success) [ 0.48s / 0.48s ]
  • Inspecting the underlying Pulp tasks reveals that Pulp tasks complete within the expected 3 to 5 minutes, but despite that Actions::Katello::Repository::Sync remains stuck for another 40 to 60 minutes.

Resolution

Please upgrade to Satellite 6.2.6 or later where this issue has been resolved by Red Hat Errata RHBA-2016:2958.

For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.

Root Cause

As part of synchronizing repositories the repository is synchronized to any capsule that has the Library lifecycle environment added to it.
Due to a bug in the code, the synchronization status of all repositories was being checked rather than checking the synchronization status of the repository being synchronized only.

SBR
Product(s)
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.