From 32dcb2a411163419fd7ab88d1442ae17d3e501cc Mon Sep 17 00:00:00 2001 From: Bruno Faccini Date: Fri, 9 Oct 2015 14:35:01 +0200 Subject: [PATCH] LU-7273 tests: dump stacks upon CT stop failure This patch adds full threads stacks dump upon copytool stop failure at end of grace period, in sanity-hsm/wait_copytools(). Signed-off-by: Bruno Faccini Change-Id: I3da4876b55fbc72c941bbf75cc89819acecc82c0 Reviewed-on: http://review.whamcloud.com/16782 Tested-by: Jenkins Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/tests/sanity-hsm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index f12cb18..c9704e7 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -172,6 +172,10 @@ wait_copytools() { echo "copytools still running on $hosts" done + # try to dump Copytool's stack + do_nodesv $hosts "echo 1 >/proc/sys/kernel/sysrq ; " \ + "echo t >/proc/sysrq-trigger" + echo "copytools failed to stop in ${wait_timeout}s" return 1 -- 1.8.3.1