]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix worker can't figure out owner of a job 1188/head
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 2 Jul 2018 15:14:58 +0000 (17:14 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 2 Jul 2018 15:28:46 +0000 (17:28 +0200)
The patch fixes uncaught exception RuntimeError:

  I could not figure out the owner of the requested job.
  Please pass --owner <owner>.

Worker dies with unhandled exception in run_with_watchdog
if it can't figure out owner of a job, which it tries
to kill when job runs longer then given limit of time.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/worker.py

index f73bacaf6a208aeac998313db3bbd4a178bd8fc7..00bcd23f07204b64fc01d7fb1d369357dcbb013a 100644 (file)
@@ -303,7 +303,7 @@ def run_with_watchdog(process, job_config):
             log.warning("Job ran longer than {max}s. Killing...".format(
                 max=teuth_config.max_job_time))
             kill_job(job_info['name'], job_info['job_id'],
-                     teuth_config.archive_base)
+                     teuth_config.archive_base, job_config['owner'])
 
         # calling this without a status just updates the jobs updated time
         report.try_push_job_info(job_info)