From: Zack Cerza Date: Tue, 8 Feb 2022 19:45:47 +0000 (-0700) Subject: nuke: Don't attempt to nuke downed nodes X-Git-Tag: 1.2.0~194^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1722%2Fhead;p=teuthology.git nuke: Don't attempt to nuke downed nodes Signed-off-by: Zack Cerza --- 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(