From: Kyr Shatskyy Date: Mon, 2 Jul 2018 15:14:58 +0000 (+0200) Subject: Fix worker can't figure out owner of a job X-Git-Tag: 1.1.0~334^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c623e60210e3d1ab9c300e16c756392b54a28e18;p=teuthology.git Fix worker can't figure out owner of a job The patch fixes uncaught exception RuntimeError: I could not figure out the owner of the requested job. Please pass --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 --- diff --git a/teuthology/worker.py b/teuthology/worker.py index f73bacaf..00bcd23f 100644 --- a/teuthology/worker.py +++ b/teuthology/worker.py @@ -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)