Error 'Cannot update a cancelled Recurring Logic' while disabling or enabling sync plans during the upgrade of Red Hat Satellite 6
Environment
- Red Hat Satellite 6.11
- Red Hat Satellite 6.12
Issue
Cannot update a canceled Recurring Logicerror outputs when upgrading the Satellite server(from Satellite 6.11 to 6.12 or any versions before that ) with the disabling or enabling sync plans step.
Resolution
The issue has been tracked in This content is not included.Bug 1887511 and was fixed in Red Hat Satellite 6.9.0.
A new This content is not included.bugzilla 2131839 was opened to address this issue on Red Hat Satellite 6.11 and 6.12, and a fix has been implemented in Red Hat Satellite 6.13 for the same. Please refer to RHSA-2023:2097 for more details.
Workaround ( for versions before 6.13 ):
1. Execute the command to disable maintenance-mode without triggering any sync-plan-related actions. This should make the Red Hat Satellite WebUI available for further investigation.
# satellite-maintain advanced procedure run disable-maintenance-mode
2. Look for the hammer command that was being executed to re-enable the sync plans in the /var/log/foreman-maintain/foreman-maintain.log file. That would help to detect the problematic sync-plan raising the canceled Recurring Logic error. Otherwise, all disabled sync-plans can be targetted as well.
3. Navigate to Content > Sync Plans and for the affected ( disabled ) sync plan, change their start time by a few seconds\minutes and then enable the sync plan back.
4. Once and if the affected sync plan is enabled, Then simply re-run the satellite-maintain command that failed to completely execute while upgrading the satellite.
Reach out to This content is not included.Red Hat Technical Support in case any further assistance would be required.
For more KB articles/solutions related to Red Hat Satellite 6.x Satellite Tasking System Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Satellite Tasking System Issues
Root Cause
A root cause analysis can be found in This content is not included.comment 7 of the concerned bugzilla.
Diagnostic Steps
-
Error while disabling the sync-plans:
Running Procedures before migrating to Satellite 6.7.z ================================================================================ disable active sync plans: \ disabling sync plans [FAIL] Could not update the sync plan: ERF28-1357 [ForemanTasks::RecurringLogicCancelledException]: Cannot update a cancelled Recurring Logic. \-------------------------------------------------------------------------------- -
Error while enabling the sync-plans:
\-------------------------------------------------------------------------------- re-enable sync plans: | re-enabling sync plans [FAIL] Could not update the sync plan: ERF28-1357 [ForemanTasks::RecurringLogicCancelledException]: Cannot update a cancelled Recurring Logic. \-------------------------------------------------------------------------------- Scenario [Procedures after migrating to Satellite 6.12] failed.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.