]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Kill valgrind.bin processes 938/head
authorZack Cerza <zack@redhat.com>
Tue, 23 Aug 2016 02:40:31 +0000 (20:40 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 23 Aug 2016 02:47:45 +0000 (20:47 -0600)
http://tracker.ceph.com/issues/17084
Fixes: 17084
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/nuke/__init__.py
teuthology/nuke/actions.py

index 8a3623e46c62084810d164c7ee74ed6e2d5303ee..db3f87a597e05530f37293e57be53477e16d3a06 100644 (file)
@@ -27,7 +27,7 @@ from .actions import (
     reboot, remove_osd_mounts, remove_osd_tmpfs, kill_hadoop,
     remove_kernel_mounts, remove_ceph_packages, synch_clocks,
     remove_configuration_files, undo_multipath, reset_syslog_dir,
-    remove_testing_tree, remove_yum_timedhosts,
+    remove_testing_tree, remove_yum_timedhosts, kill_valgrind,
 )
 
 log = logging.getLogger(__name__)
@@ -325,6 +325,7 @@ def nuke_helper(ctx, should_unlock):
     log.info('Unmount ceph-fuse and killing daemons...')
     shutdown_daemons(ctx)
     log.info('All daemons killed.')
+    kill_valgrind(ctx)
     # Try to remove packages before reboot
     remove_installed_packages(ctx)
 
index d9cd2d58fb341aaf8099c57644c83ad10479aa11..f6d6d1e2efb9901902948f14717b920cf075c8d5 100644 (file)
@@ -76,6 +76,13 @@ def kill_hadoop(ctx):
             run.Raw("|"), 'xargs', 'kill', '-9',
             ], check_status=False, timeout=60)
 
+def kill_valgrind(ctx):
+    # http://tracker.ceph.com/issues/17084
+    ctx.cluster.run(
+        args=['sudo', 'pkill', '-f', '-9', 'valgrind.bin',],
+        check_status=False,
+        timeout=20,
+    )
 
 def remove_kernel_mounts(ctx):
     """