Bug 1216142

Summary: [RFE] Improve the API for task management
Product: Red Hat Satellite Reporter: Sergio Ocón-Cárdenas <soconcar>
Component: Tasks PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.8CC: bkearney, fhirtz, jlyle, sreber
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-26 19:06:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1115190    

Description Sergio Ocón-Cárdenas 2015-04-28 15:08:06 UTC
Description of problem:
When trying to do several tasks at the same time, it is likely that some of them are stuck (i..e candlepin synchronization tasks).
There should be another way of cancelling tasks

Version-Release number of selected component (if applicable):

6.0.8
How reproducible:
Often happens with first time syncronization

Steps to Reproduce:
1. Install satellite, including manifest
2. Synchronize several products at the same time (i.e. RHEL 6+ RHEL7 + RHEV+ CloudForms+ OpenStack)
3. See tasks are in error state, stopped or pending

Actual results:
Trying to kill some tasks in the console, either foreman or dynaflow, does not work. Following steps in https://access.redhat.com/comment/913073#comment-913073?sc_cid=cp|emnt|sol|cmt& does not work either

Expected results:
Task should be cleaned and cancelled.
A visual clue should be added to show the customer that some tasks are running, including tasks in error with dependencies (thus no other tasks can proceed)
A visual clue should be added when adding new tasks ("There are tasks pending in error state for "pulp", it is possible that your task has to wait for the previous tasks to finish or be cancelled)
hammer should include a way to show all tasks, including those who are stopped, paused, and in error state
When choosing several tasks to cancel,  you should be able to choose them with a single click (after a search)
You should be able to force a task to be cancelled, even if you offer the opportunity to do it again (cancel --> does not work --> force cancellation --> [option to reset it and start it again])


Additional info:

Comment 1 RHEL Program Management 2015-04-28 15:13:38 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Sergio Ocón-Cárdenas 2015-05-20 19:41:06 UTC
More thoughts, after getting my sync tasks stopped again in a 6.1 installation:
- Dynaflow console should be part of the tasks management elements
- In dynaflow, tasks should be linked. Today, they are independent one of each other, you can't know if one task is waiting for another task
- There should be possible to select many of them at the same time and restart, cancel them
-

Comment 6 Bryan Kearney 2018-04-26 19:06:00 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in product in the forseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.