Project

General

Profile

Actions

Bug #35992

closed

new wait task introduced by rh_cloud 6.0.44 is not recognized by maintain as OK to interrupt

Added by Evgeni Golov over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Fixed in Releases:
Found in Releases:

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:

  1. 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:

Actions #1

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Assignee set to Evgeni Golov
  • Pull request https://github.com/theforeman/foreman_maintain/pull/678 added
Actions #2

Updated by Evgeni Golov over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by The Foreman Bot over 1 year ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/697 added
Actions

Also available in: Atom PDF