]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
supervisor: Unlock nodes after reimage failure
authorZack Cerza <zack1@ibm.com>
Mon, 3 Feb 2025 21:06:57 +0000 (14:06 -0700)
committerZack Cerza <zack1@ibm.com>
Mon, 3 Feb 2025 21:07:22 +0000 (14:07 -0700)
Signed-off-by: Zack Cerza <zack1@ibm.com>
teuthology/dispatcher/supervisor.py

index 83e6d997c5d3949d4d08cb7094a023926697c9a8..273f9e2acbb99cdba9853ee2ea2da44442f4c7c8 100644 (file)
@@ -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,