[EDP] Delete from client (and therefore UI) does not stop a job

Bug #1329431 reported by Trevor McKay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Andrey Pavlov

Bug Description

The "delete" operation for job executions is implemented in the saharaclient and is used by the UI and the CLI. This calls the v1.1 REST API function "/job-executions/<job_execution_id>".

Currently, this method delete the job execution object in the Sahara database but it does not stop a running job (in Oozie, for example). There is a "cancel" method in the REST API but the client does not implement an interface to it.

So, we need some way to cancel a job, I believe. Do we want the current "delete" to cancel-and-delete , or do we want to implement cancel in the client and be able to call both?

Consider relaunch, it is a useful feature. Imagine:

1) Launch a job, realize the args are wrong
2) Cancel
3) Relaunch

If delete stops the job and also wipes out the job execution record, the relaunch behavior becomes much harder in the UI. The UI must remember the details.

Note, current CR for V2 API doesn't list cancel as an option.

https://review.openstack.org/#/c/70627/6

Trevor McKay (tmckay)
description: updated
Changed in sahara:
milestone: juno-2 → juno-3
Changed in sahara:
milestone: juno-3 → next
Changed in sahara:
assignee: nobody → Andrey Pavlov (apavlov-n)
Changed in sahara:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/120119
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=e4eb90d38adf70c88d1eeea4bc20fc9f54827a8a
Submitter: Jenkins
Branch: master

commit e4eb90d38adf70c88d1eeea4bc20fc9f54827a8a
Author: Andrey Pavlov <email address hidden>
Date: Thu Oct 16 12:27:14 2014 +0400

    Added cancel before deleting job execution

    Now delete method will stop running job before
    deleting job execution object in database

    Change-Id: Id61f0348b8043a9a62ad0cfc1916fce3af422497
    Closes-bug: #1329431

Changed in sahara:
status: In Progress → Fix Committed
Changed in sahara:
status: Fix Committed → Fix Released
milestone: next → kilo-1
Thierry Carrez (ttx)
Changed in sahara:
milestone: kilo-1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.