From 728063d8a31acc95ef3f1ff450e0b1a1d4afee36 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 8 Feb 2022 12:45:47 -0700 Subject: [PATCH] nuke: Don't attempt to nuke downed nodes Signed-off-by: Zack Cerza --- teuthology/nuke/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teuthology/nuke/__init__.py b/teuthology/nuke/__init__.py index 08d8a52bf..e97bb1deb 100644 --- a/teuthology/nuke/__init__.py +++ b/teuthology/nuke/__init__.py @@ -252,6 +252,11 @@ def nuke(ctx, should_unlock, sync_clocks=True, noipmi=False, keep_logs=False, sh log.info( "Not nuking %s because description doesn't match", lock['name']) + elif lock.get('up') is False: + del ctx.config['targets'][lock['name']] + log.info( + "Not nuking %s because it is down", + lock['name']) with parallel() as p: for target, hostkey in ctx.config['targets'].items(): p.spawn( -- 2.47.3