From 0902a99be52fe52cefa7681a584059800857bf00 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 3 Feb 2025 14:06:57 -0700 Subject: [PATCH] supervisor: Unlock nodes after reimage failure Signed-off-by: Zack Cerza --- teuthology/dispatcher/supervisor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/teuthology/dispatcher/supervisor.py b/teuthology/dispatcher/supervisor.py index 83e6d997c5..273f9e2acb 100644 --- a/teuthology/dispatcher/supervisor.py +++ b/teuthology/dispatcher/supervisor.py @@ -226,6 +226,7 @@ def reimage(job_config): reimaged = lock_ops.reimage_machines(ctx, targets, job_config['machine_type']) except Exception as e: log.exception('Reimaging error. Nuking machines...') + unlock_targets(job_config) # Reimage failures should map to the 'dead' status instead of 'fail' report.try_push_job_info( ctx.config, -- 2.39.5