Bug 1316944

Summary: Reduce the number of dynflow actions on a capsule sync
Product: Red Hat Satellite Reporter: John Mitsch <jomitsch>
Component: CapsuleAssignee: John Mitsch <jomitsch>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bbuckingham, cwelton, ehelms, jomitsch, kbidarka, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/13987
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 09:27:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1321137    
Bug Blocks:    
Attachments:
Description Flags
first capsule sync run
none
second capsule sync run none

Description John Mitsch 2016-03-11 13:54:36 UTC
Optimizing is needed for a capsule sync, which is updating every distributor and importer for all repositories on a capsule each time. This should be done as needed instead.

Comment 1 John Mitsch 2016-03-11 13:54:38 UTC
Created from redmine issue http://projects.theforeman.org/issues/13987

Comment 3 Bryan Kearney 2016-03-18 16:03:55 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/13987 has been closed
-------------
John Mitsch
Applied in changeset commit:katello|19be4a17d5add6785c28c30448ba96ce8624bb0a.

Comment 7 Kedar Bidarkar 2016-04-01 10:11:27 UTC
Can you please provide some verification steps.

Comment 8 John Mitsch 2016-04-01 12:56:43 UTC
Kedar,

Run a capsule sync with yum repos and then run another capsule sync right after that. On the second capsule sync, you shouldn't see any UpdateImporter and RefreshDistributor tasks when you look at the dynflow tasks.

-John

Comment 9 Kedar Bidarkar 2016-04-18 15:23:50 UTC
VERIFIED with sat62-snap8.1

Ran a sync to capsule and then ran another capsule sync just after the previous one.

The second capsule sync does not have UpdateImporter and RefreshDistributor in the plan from the foreman-tasks/dynflow

Comment 10 Kedar Bidarkar 2016-04-18 15:26:37 UTC
Created attachment 1148241 [details]
first capsule sync run

Comment 11 Kedar Bidarkar 2016-04-18 15:27:10 UTC
Created attachment 1148242 [details]
second capsule sync run

Comment 13 errata-xmlrpc 2016-07-27 09:27:04 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, 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/RHBA-2016:1501