Description of problem: # foreman-maintain upgrade run --target-version 6.2.z --whitelist="disk-io" --phase pre_migrations Running Procedures before migrating to Satellite 6.2.z ================================================================================ Turn on maintenance mode: [OK] -------------------------------------------------------------------------------- disable active sync plans: / disabling sync plans [FAIL] Illegal quoting in line 3. -------------------------------------------------------------------------------- Scenario [Procedures before migrating to Satellite 6.2.z] failed. The following steps ended up in failing state: [sync-plans-disable] Resolve the failed steps and rerun the command. In case the failures are false positives, use --whitelist="sync-plans-disable" Version-Release number of selected component (if applicable): rubygem-foreman_maintain-0.0.11-1.el7sat
This issue is fixed in latest build of foreman-maintain i.e rubygem-foreman_maintain-0.2.2-1.el7sat.noarch With this change before any DB query, it verifies a DB connection first. So modifying BZ status to ON_QA to verify. If this issue still persists then please feel free to reopen this issue.
VERIFIED Version tested: # rpm -qa | grep maintain rubygem-foreman_maintain-0.2.6-1.el7sat.noarch Steps: 1. katello-service stop 2. # foreman-maintain upgrade run --phase pre_migrations --target-version 6.4 --whitelist="hammer-setup" -------------------------------------------------------------------------------- disable active sync plans: / disabling sync plans [FAIL] Please check whether database service is up & running state. -------------------------------------------------------------------------------- Scenario [Procedures before migrating to Satellite 6.4] failed. The following steps ended up in failing state: [sync-plans-disable] Resolve the failed steps and rerun the command. In case the failures are false positives, use --whitelist="sync-plans-disable"
The current version of foreman_maintain includes this fix.