Bug 1830825

Summary: [RFE] Check for certain types of running Pulp related foreman tasks before starting an offline backup
Product: Red Hat Satellite Reporter: Hao Chang Yu <hyu>
Component: Satellite MaintainAssignee: Suraj Patil <supatil>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7.0CC: ahumbe, apatel, aupadhye, dsinglet, ehelms, kgaikwad
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Hao Chang Yu 2020-05-04 03:03:41 UTC
Description of problem:
If will be great if the backup script can check for certain types of running Pulp related task, such as CV publish/promote tasks, Repo sync tasks and Capsule sync tasks. If found any of these tasks are running then do not proceed to do the offline backup.

It may be a plus if user can have an option to set the maximum time (such as 1 hour) to wait for the tasks to finish. The backup will then wait and postpone until the time.

Use case:
User is doing a daily offline backup in the morning. One day, user started a full Capsule sync to fix the missing contents on the Capsule in the afternoon. Due to the large number of repositories to sync, the task is taking more than half day to complete. This causes the time overlap between the Satellite offline backup and Capsule sync.

Comment 3 Suraj Patil 2020-05-13 06:08:24 UTC
Created redmine issue https://projects.theforeman.org/issues/29760 from this bug

Comment 7 Bryan Kearney 2022-05-12 08:02:05 UTC
Upstream bug assigned to supatil

Comment 8 Bryan Kearney 2022-05-12 08:02:07 UTC
Upstream bug assigned to supatil

Comment 9 Bryan Kearney 2022-07-26 16:02:02 UTC
Upstream bug assigned to supatil

Comment 10 Bryan Kearney 2022-07-26 16:02:04 UTC
Upstream bug assigned to supatil