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
Updated by Adam Ruzicka over 7 years ago
- Target version set to 113
The batch planning should help with this a bit, but we still need to provide a reliable way of cancelling sub-tasks which were already planned and are pending.
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Adam Ruzicka
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/263 added
Updated by Adam Ruzicka over 7 years ago
- Related to Bug #20300: Need better support for cancelling proxy tasks added
Updated by Adam Ruzicka over 7 years ago
- Blocked by Refactor #20466: Use the polling sub plans functionality in RunHostsJob added
Updated by Ivan Necas over 7 years ago
- Related to Feature #20496: Expose job invocation cancelling via hammer added
Updated by Anonymous over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_plugin|f0cd7abce067b119d06d1e2bcddbcca7a95bd04c.
Updated by Ivan Necas over 7 years ago
- Has duplicate Bug #18569: Remote execution jobs in state queued, unable to proceed or cancel added
Updated by Ivan Necas about 7 years ago
- Translation missing: en.field_release set to 292