From: Zack Cerza Date: Fri, 19 Jul 2024 19:32:03 +0000 (-0600) Subject: kill.kill_job: Get job data from paddles X-Git-Tag: 1.2.0~18^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1980%2Fhead;p=teuthology.git 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 --- 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(