Bug #33206
closedforeman-maintain failed to cancel or resume the task before the upgrade.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1988299
Description of problem: foreman-maintain failed to cancel or resume the task after the satellite upgrade.
Version-Release number of selected component (if applicable):
6.10 snap11
How reproducible:
always
Steps to Reproduce:
1. Prepare the satellite's based version 6.9 for the upgrade.
2. Run the pulp migration
3. Pulp migration completes successfully.
4. Run the satellite upgrade, satellite upgrade completes successfully but the post-upgrade job gets failed at "Check for paused tasks: " stage gets failed.
satellite-maintain upgrade run --target-version 6.10
.................................
.................................
Check whether all services are running using the ping call: [OK]
--------------------------------------------------------------------------------
Check for paused tasks: [FAIL]
There are currently 6 paused tasks in the system
--------------------------------------------------------------------------------
There are multiple steps to proceed:
1) Resume paused tasks
2) Delete paused tasks
3) Investigate the tasks via UI
Select step to continue, [n(next)] 1
Resume paused tasks:
/ Waiting 30 seconds for resumed tasks to start. [OK]
Total tasks resumed: 6
--------------------------------------------------------------------------------
Rerunning the check after fix procedure
Check for paused tasks: [FAIL]
There are currently 6 paused tasks in the system
--------------------------------------------------------------------------------
There are multiple steps to proceed:
1) Resume paused tasks
2) Delete paused tasks
3) Investigate the tasks via UI
Select step to continue, [n(next)] Select step to continue, [n(next)] n
Check to verify no empty CA cert requests exist:
[OK]
--------------------------------------------------------------------------------
Check whether system is self-registered or not: [OK]
--------------------------------------------------------------------------------
Check if only installed assets are present on the system:
\ Checking for presence of non-original assets... [OK]
--------------------------------------------------------------------------------
Print pulp 2 removal instructions:
======================================================
Migration of content from Pulp 2 to Pulp3 is complete
After verifying accessibility of content from clients,
it is strongly recommend to run "foreman-maintain content remove-pulp2"
This will remove Pulp 2, MongoDB, and all pulp2 content in /var/lib/pulp/content/
====================================================== [OK]
--------------------------------------------------------------------------------
Scenario [Checks after upgrading to Satellite 6.10] failed.
The following steps ended up in failing state:
[foreman-tasks-not-paused]
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="foreman-tasks-not-paused"
Actual results:
post-upgrade job gets failed due to unable to resume or cancel the paused task.
Expected results:
post-upgrade task should be completed successfully.
Additional info: