Problem:
I am trying to upgrade to Foreman 3.12/Katello 4.14. using the following documentation:
https://docs.theforeman.org/3.12/Upgrading_Project/index-katello.html#Upgrading_foreman_upgrading-connected
When running the command foreman-rake katello:upgrade_check
, I am getting the following error:
# foreman-rake katello:upgrade_check
This script makes no modifications and can be re-run multiple times for the most up to date results.
Checking upgradeability...
Checking for running tasks...
[FAIL] - There are 1 active tasks.
Please wait for these to complete or cancel them from the Monitor tab.
But there are not active tasks.
How can I stop the active task, when there is no active task?
$ psql foreman
psql (13.16)
Type "help" for help.
foreman=# select label, state, result from foreman_tasks_tasks where state != 'stopped';
label | state | result
----------------------------------------------+-----------+---------
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::CheckLongRunningTasks | scheduled | pending
Actions::Katello::ContentView::Publish | paused | error
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
CreateExpiredManifestNotifications | scheduled | pending
CreateRssNotifications | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
CreateManifestExpireSoonWarningNotifications | scheduled | pending
StoredValuesCleanupJob | scheduled | pending
SendExpireSoonNotifications | scheduled | pending
CreatePulpDiskSpaceNotifications | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
CreateHostLifecycleExpireSoonNotifications | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
Actions::Katello::SyncPlan::Run | scheduled | pending
(30 rows)
Expected outcome:
upgrade_check
should not fail but confirm ok.
Or tell the real reason for the error.
Foreman and Proxy versions:
Foreman 3.11
Foreman and Proxy plugin versions:
Name | Version |
---|---|
foreman-tasks | 9.1.1 |
foreman_ansible | 14.0.0 |
foreman_remote_execution | 13.1.0 |
katello | 4.13.1 |
Distribution and version:
Alma Linux 9 (latest)
Other relevant data:
Tried the following mitigation with no success: foreman-rake katello:reimport