Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-22666

Manual rescheduling of recurring task "Check for long running tasks" via foreman-rake command does nothing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Tasks Plugin
    • None
    • Moderate
    • True

      Description of problem:
      Manual run of rake task "foreman_tasks:reschedule_long_running_tasks_checker" does nothing,
      i.e., the rake task finishes without any errors but it has no effect.

      Version-Release number of selected component (if applicable):
      Satellite stream:
      satellite-6.16.0-0.2.stream.el8sat.noarch
      foreman-3.10.0-0.4.develop.20240116220126git0b40a64.el8sat.noarch
      rubygem-foreman-tasks-9.0.1-1.el8sat.noarch

      Reproducible also in Satellite 6.15 snap 7.

      How reproducible:
      100%

      Steps to Reproduce:
      1. In webUI, go to Monitor / Satellite Tasks / Recurring logics.
      By default, "Check for long running tasks" action has Cron line set to "0 0 * * *" - every midnight.
      2. Login to Satellite terminal and execute this command to reschedule the task to run every minute:
      FOREMAN_TASKS_CHECK_LONG_RUNNING_TASKS_CRONLINE='* * * * *' foreman-rake foreman_tasks:reschedule_long_running_tasks_checker
      3. Check the command result and foreman logs.
      Refresh the "Recurring logics" page for updates.

      Actual results:
      1. The rake command finishes without any errors. The foreman log also does not show any errors or warnings.
      2. The "Recurring logics" page does not show any changes. "Check for long running tasks" action has Cron line still set to "0 0 * * *"

      Expected results:
      1. The rake command finishes without any errors. The foreman log also does not show any errors or warnings.
      2. The "Recurring logics" page shows new recurring action "Check for long running tasks" action with Cron line still set to "* * * * *".
      The original "Check for long running tasks" action should be now listed with State = Cancelled.

      Additional info:

      Regression against Sat 6.15.0 snap #1:
      foreman-3.9.0-0.6.rc2.el8sat.noarch.rpm
      rubygem-foreman-tasks-9.0.0-1.el8sat.noarch.rpm
      satellite-cli-6.15.0-1.el8sat.noarch.rpm

      This is an automation blocker because our test uses this functionality to reschedule the long running task checker so it does not have to wait to midnight for the log running tasks notification to be emitted.

            jira-bugzilla-migration RH Bugzilla Integration
            jira-bugzilla-migration RH Bugzilla Integration
            Pavel Novotny Pavel Novotny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: