Attempt to delete job execution several times causes internal error

Bug #1395920 reported by Andrew Lazarev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Low
Andrew Lazarev

Bug Description

Steps to reproduce:
1. Run job
2. Click 'delete job execution' in horizon before sahara created oozie job (usually it takes some time). Job execution will go to 'TOBEKILLED' state
3. Click 'delete job execution' several more times
4. Wait job execution to be really killed

Stacktrace:
2014-11-24 14:48:16.353 38542 ERROR sahara.context [-] Thread 'Deleting Job Execution b1df96df-afcf-48b9-b2d0-74cfea07b32b' fails with exception: ''NoneType' object has no attribute 'info''
2014-11-24 14:48:16.353 38542 TRACE sahara.context Traceback (most recent call last):
2014-11-24 14:48:16.353 38542 TRACE sahara.context File "/Users/alazarev/openstack/sahara/sahara/context.py", line 153, in _wrapper
2014-11-24 14:48:16.353 38542 TRACE sahara.context func(*args, **kwargs)
2014-11-24 14:48:16.353 38542 TRACE sahara.context File "/Users/alazarev/openstack/sahara/sahara/service/ops.py", line 302, in _delete_job_execution
2014-11-24 14:48:16.353 38542 TRACE sahara.context _cancel_job_execution(job_execution_id)
2014-11-24 14:48:16.353 38542 TRACE sahara.context File "/Users/alazarev/openstack/sahara/sahara/service/ops.py", line 297, in _cancel_job_execution
2014-11-24 14:48:16.353 38542 TRACE sahara.context job_manager.cancel_job(job_execution_id)
2014-11-24 14:48:16.353 38542 TRACE sahara.context File "/Users/alazarev/openstack/sahara/sahara/service/edp/job_manager.py", line 151, in cancel_job
2014-11-24 14:48:16.353 38542 TRACE sahara.context if job_execution.info['status'] not in edp.JOB_STATUSES_TERMINATED:
2014-11-24 14:48:16.353 38542 TRACE sahara.context AttributeError: 'NoneType' object has no attribute 'info'

Revision history for this message
Andrew Lazarev (alazarev) wrote :
Changed in sahara:
assignee: nobody → Andrew Lazarev (alazarev)
status: New → In Progress
importance: Undecided → Low
milestone: none → kilo-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

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

commit 93b461f59e9f17ff55475d67af0d6db3b76dda64
Author: Andrew Lazarev <email address hidden>
Date: Mon Nov 24 16:13:07 2014 -0800

    Fixed error on attempt to delete job execution several times

    Change-Id: Ic46a837523a4b4cb3511b33103a39279edfd3f4b
    Closes-Bug: #1395920

Changed in sahara:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in sahara:
status: Fix Committed → Fix Released
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.