Problem: Trying to run an offline backup. It fails with
- re-enabling sync plans [FAIL}
Could not update the sync plan:
Could not find sync_plan resource with id 1. Potential missing permissions: edit_sync_plans
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="sync-plans-enable"
hammer sync plan list shows the id of our daily sync plan to be 2. How do I tell the backup to look for sync plan with id 2 instead of 1.
Also, the whitelist option does not work. I believe there is an existing bugzilla for this.
Expected outcome: offline backup gets the correct sync plan id
Foreman and Proxy versions: foreman 3,0.101; katello4.2.1-1
A full, offline backup does now complete without error.
My question is can we trust this backup when we restore it at the new Data Center? We don’t mind recreating the sync plans manually… that isn’t a lot of work.
My concern is will the newly created sync plans work or will there be some sort of problem with them because of Bug 36024?
Yeah, a backup created after the above changes is fine.
To give a bit of background: to perform a maintenance task (like creating a backup) you want the system to not change itself while you do so, so foreman-maintain disables all sync tasks (so that no syncs happen during the backup) and then enables them after the action is done. The bug was that it would store the disabled tasks in a file (as some actions require multiple f-m invocations, so you can’t store it in memory), but not clear already absent tasks from previous disablings from that list.