Whamcloud - gitweb
LU-7273 tests: dump stacks upon CT stop failure 82/16782/4
authorBruno Faccini <bruno.faccini@intel.com>
Fri, 9 Oct 2015 12:35:01 +0000 (14:35 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 28 Jan 2016 18:15:57 +0000 (18:15 +0000)
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 <bruno.faccini@intel.com>
Change-Id: I3da4876b55fbc72c941bbf75cc89819acecc82c0
Reviewed-on: http://review.whamcloud.com/16782
Tested-by: Jenkins
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh

index f12cb18..c9704e7 100755 (executable)
@@ -172,6 +172,10 @@ wait_copytools() {
                echo "copytools still running on $hosts"
        done
 
                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
        echo "copytools failed to stop in ${wait_timeout}s"
 
        return 1