Bug #35992
closednew wait task introduced by rh_cloud 6.0.44 is not recognized by maintain as OK to interrupt
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2164330
Description of problem:
foreman_rh_cloud 6.0.44 introduced a new action in https://github.com/theforeman/foreman_rh_cloud/commit/8c38ff76b38f146baea755bc85d333da09d0c327: ForemanInventoryUpload::Async::DelayAction
This is a long-running action that is there to delay "the real" task.
However, this action is not part of the EXCLUDE_ACTIONS_FOR_RUNNING_TASKS (https://github.com/theforeman/foreman_maintain/blob/9d5f5c9315e71d08451d51fb2d41dc0f735bdfc9/definitions/features/foreman_tasks.rb#L16) list in foreman maintain, which means that when it's "running" (well, waiting, really), the "running tasks" check of foreman maintain will fail:
- satellite-maintain upgrade check --target-version 6.13
…
Check for running tasks: [FAIL]
There are 1 active task(s) in the system.
Please wait for these to complete or cancel them from the Monitor tab.
Version-Release number of selected component (if applicable):
foreman maintain 1.2.3
How reproducible:
100%
Steps to Reproduce:
1. have a satellite system with rh_cloud 6.0.44+
2. check on the tasks page that "Wait and Generate all reports job" is running
3. satellite-maintain upgrade check --target-version 6.13
Actual results:
check fails
Expected results:
check suceeds as it's perfectly fine to perform maintenance when this waiting job is running
Additional info: