]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
nuke: kill -9 the teuthology process 1653/head
authorSage Weil <sage@newdream.net>
Wed, 9 Jun 2021 19:51:37 +0000 (14:51 -0500)
committerSage Weil <sage@newdream.net>
Wed, 9 Jun 2021 19:53:09 +0000 (14:53 -0500)
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 <sage@newdream.net>
teuthology/nuke/__init__.py

index 301194215b77ad336091efe60baec69b62a8bb87..08d8a52bfa255dc02320c9b7cd73e845a030b8c9 100644 (file)
@@ -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))