Bug #19937
closedit is hard (or there is no way at all) to cancel pending tasks from old remote execution job
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1431107
Description of problem:
It is hard (or there is no way at all) to cancel pending tasks from old remote execution job.
Version-Release number of selected component (if applicable):
satellite-6.2.8-4.0.el7sat.noarch
How reproducible:
always
Steps to Reproduce:
1. Have clients managed by capsule
2. Start ReX job on the clients and white (some of) them are in pending,
stop capsule
3. Now lets say we have just removed that capsule for good so we want to
finish all the pending tasks from Satellite
Actual results:
You have to go to job -> Job Task -> Sub tasks, select one by one and click "Cancel". I have not found anything in Hammer or in API. Master task have "Cancel" button inactive. Dynflow console does not have "cancel" or "skip" links.
Expected results:
There should be a way (ideally in all webUI, API and hammer) to cancel tasks of a given job (you can say this via task search query "parent_task_id = ...").
Additional info:
This is error I see in the child task before clicking "Cancel":
Error loading data from Capsule: RestClient::ResourceNotFound - 404 Resource Not Found
When I click "Cancel", this appears and after some time 3 more messages appears and then finally child task is completed:
Initialization error: RestClient::InternalServerError - 500 Internal Server Error