Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1722768 - Manifest refresh redundantly calls Actions::Pulp::Repository::Refresh for all repos
Summary: Manifest refresh redundantly calls Actions::Pulp::Repository::Refresh for all...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: 6.7.0
Assignee: Partha Aji
QA Contact: vijsingh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-21 08:35 UTC by Pavel Moravec
Modified: 2023-09-07 20:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-23 19:34:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 28189 0 Normal Closed Manifest refresh redundantly calls Actions::Pulp::Repository::Refresh for all repos 2021-01-20 19:54:56 UTC

Description Pavel Moravec 2019-06-21 08:35:20 UTC
Description of problem:
When refreshing a manifest that updates few subscriptions or repos only (or performs no update at all, even), refreshing triggers updating of pulp importers of _all_ RedHat repos in Default CV and Library. That redundantly slows down manifest refresh.


Version-Release number of selected component (if applicable):
Sat6.5


How reproducible:
100%


Steps to Reproduce:
1. Import a manifest, enable many repos, optionally synchronize them.
2. Refresh the manifest -twice in a row to be sure the 2nd does not update anything.
3. Check dynflow steps of the Manifest Refresh task


Actual results:
3. will show Actions::Pulp::Repository::Refresh steps for each and every RedHat repo enabled


Expected results:
3. to show those steps only for repos that were really affected by the manifest refresh


Additional info:
Particular upstream source code:

https://github.com/Katello/katello/blob/master/app/lib/actions/katello/organization/manifest_refresh.rb#L31-L36

triggers all the tasks Katello::Repository::RefreshRepository that is in fact Actions::Pulp::Repository::Refresh (cf. https://github.com/Katello/katello/blob/master/app/lib/actions/katello/repository/refresh_repository.rb).

Comment 3 Partha Aji 2019-11-02 03:54:56 UTC
Connecting redmine issue https://projects.theforeman.org/issues/28189 from this bug

Comment 4 Bryan Kearney 2019-11-05 20:32:49 UTC
Upstream bug assigned to paji

Comment 5 Bryan Kearney 2019-11-05 20:32:51 UTC
Upstream bug assigned to paji

Comment 6 Bryan Kearney 2019-11-12 17:05:40 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28189 has been resolved.

Comment 7 Mike McCune 2020-04-23 19:34:14 UTC
This was included in Satellite 6.7


Note You need to log in before you can comment on or make changes to this bug.