From 8288a51dcf46524adeb682c26c62ffe20109264e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 9 Jun 2021 14:51:37 -0500 Subject: [PATCH] nuke: kill -9 the teuthology process If the process has been kill -STOPped, then we'll unlock the machines, but the process will stick around and we'll try to nuke it again later, zapping the machines after they're being used by some other job, leading to failures. (Usually this manifests as an error when the other job stops where it has trouble gzipping the logs.) Use -9 to make sure even STOPped processes are killed. Signed-off-by: Sage Weil --- teuthology/nuke/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/nuke/__init__.py b/teuthology/nuke/__init__.py index 301194215b..08d8a52bfa 100644 --- a/teuthology/nuke/__init__.py +++ b/teuthology/nuke/__init__.py @@ -225,7 +225,7 @@ def main(args): if ctx.pid: if ctx.archive: log.info('Killing teuthology process at pid %d', ctx.pid) - os.system('grep -q %s /proc/%d/cmdline && sudo kill %d' % ( + os.system('grep -q %s /proc/%d/cmdline && sudo kill -9 %d' % ( ctx.archive, ctx.pid, ctx.pid))