How to manage paused tasks on Red Hat Satellite 6

Solution Verified - Updated

Environment

  • Red Hat Satellite 6

Issue

  • How to manage paused tasks on Red Hat Satellite 6.
  • A pending or paused task cannot be stopped or resumed in the Satellite web UI.

Resolution

  • In Red Hat Satellite 6, a task is created for every action performed via the web UI. Also, there are some tasks created for the internal working of the Red Hat Satellite product.

How to list paused tasks?

  • Login to Red Hat Satellite web UI.
  • Navigate to Monitor -> Tasks
  • Search for Paused tasks in the search window, using below search condition:
state = paused 

Click on the paused task to check details, if the Resume button is available, then click it to resume the task.

Sometimes it is necessary to use the Dynflow console to remove the task from paused state. On the task details screen click the 'Dynflow console' button. You should see a list of subtasks now where one of these subtasks (the blocked one) will have blue 'skip' link next to it. Click the skip link and then the 'Resume' link at the top of the screen. Within a few seconds refresh the page and the task should be in stopped:error state.

If that is not possible, follow How to perform task cleanup in Red Hat Satellite 6? for Satellite 6.2 and the above versions, to cleanup the given task from the command line.

The cleanup script is available in Satellite 6.2 only, for older Satellite versions please contact Red Hat support to proceed.

Do not use rake commands like ForemanTasks::Task.where(..).destroy_all until explicitly stated by Red Hat support, since running those commands can easily introduce inconsistencies in foreman database and/or bring some dynflow (sub)tasks into a stuck state.

For more KB articles/solutions related to Red Hat Satellite 6.x Satellite Tasking System Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Satellite Tasking System Issues

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.