From 6b57c1b48ffeaf115250ddd0b08c1137bda3a779 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 19 Jul 2024 13:32:03 -0600 Subject: [PATCH] kill.kill_job: Get job data from paddles ... if we can't get it from the filesystem. This is necessary because of the teuthology archive's restricted permissions on teuthology.front. Signed-off-by: Zack Cerza --- teuthology/kill.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/teuthology/kill.py b/teuthology/kill.py index 8a629f1cd..720096a26 100755 --- a/teuthology/kill.py +++ b/teuthology/kill.py @@ -82,6 +82,9 @@ def kill_run(run_name, archive_base=None, owner=None, machine_type=None, def kill_job(run_name, job_id, archive_base=None, owner=None, skip_unlock=False): serializer = report.ResultsSerializer(archive_base) job_info = serializer.job_info(run_name, job_id) + # If we can't read the filesystem, job_info will be nearly empty. Ask paddles: + if 'name' not in job_info: + job_info = report.ResultsReporter().get_jobs(run_name, job_id) if not owner: if 'owner' not in job_info: raise RuntimeError( -- 2.47.3