From: Sage Weil Date: Wed, 9 Jun 2021 19:51:37 +0000 (-0500) Subject: nuke: kill -9 the teuthology process X-Git-Tag: 1.2.0~250^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1653%2Fhead;p=teuthology.git 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 --- diff --git a/teuthology/nuke/__init__.py b/teuthology/nuke/__init__.py index 301194215..08d8a52bf 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))