Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1515391

Summary: [RFE] Allow satellite-clone to skip/resume some tasks
Product: Red Hat Satellite Reporter: Christian Marineau <cmarinea>
Component: Satellite CloneAssignee: John Mitsch <jomitsch>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.12CC: jomitsch, mmccune, rjerrido, sthirugn
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-19 17:23:12 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 Christian Marineau 2017-11-20 17:45:49 UTC
Description of problem:
When using satellite-clone to restore a large Satellite installation, you may encounter any random issue (which could be external to satellite-clone or not) that will interrupt the ansible run with an error. This requires that you fix the issue and start the satellite-clone again.

As some steps are very long, we would like to have a way a clean way to skip the tasks that were successful, so that the restoration process is resuming only the required steps.

Actual results:
There is no clean way to resume satellite-clone so we need to restart the whole process.

Expected results:
Have a way to skip some task, or have the script to be already aware of the successful previous step.

Comment 1 John Mitsch 2017-11-20 17:56:46 UTC
This is actually coming in satellite-clone 1.2.0, you can use --start-at-task and resume from any task. The facts are cache so you won't have to rerun the full playbook

Comment 2 Christian Marineau 2017-11-23 14:39:52 UTC
(In reply to John Mitsch from comment #1)
> This is actually coming in satellite-clone 1.2.0, you can use
> --start-at-task and resume from any task. The facts are cache so you won't
> have to rerun the full playbook

Hi,

This is good news! Can we link this BZ with the upstream project somehow so we can track it accordingly?

Thanks

-Christian

Comment 3 John Mitsch 2017-11-28 15:14:02 UTC
We don't have a way to link up upstream issues and downstream BZs (I'm handing it manually), but the PR is here https://github.com/RedHatSatellite/satellite-clone/pull/245

Comment 4 John Mitsch 2017-12-18 14:45:03 UTC
This can be found in 1.2.0

Comment 5 Peter Ondrejka 2017-12-19 11:32:51 UTC
Verified with Maintenance 6, satellite-clone now allows to pick a task to start with and to interactively skip tasks, e.g.:

~]# satellite-clone --start-at-task "Check full backup is present" --step

This will initiate satellite-clone. Do you want to proceed? (y/n): y
ansible-playbook -i /usr/share/satellite-clone/inventory --start-at-task Check full backup is present --step /usr/share/satellite-clone/satellite-clone-playbook.yml

PLAY [satellite6] ******************************************************************************************************************************************
Perform task: TASK: satellite-clone : Check full backup is present (N)o/(y)es/(c)ontinue: y
...

Comment 8 errata-xmlrpc 2018-02-19 17:23:12 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-2018:0330