Skip to content

Commit

Permalink
nuke: kill -9 the teuthology process
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
liewegas committed Jun 9, 2021
1 parent f359b10 commit 8288a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teuthology/nuke/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8288a51

Please sign in to comment.