Whamcloud - gitweb
LU-16373 tests: failover mds1 back to the primary server
authorJian Yu <yujian@whamcloud.com>
Thu, 15 Dec 2022 19:38:56 +0000 (11:38 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 17 Dec 2022 02:23:25 +0000 (02:23 +0000)
This patch fixes recovery-small test 144a to failover
mds1 back to the primary server so that stack_trap can
set timeout parameter on the correct mds node.

Lustre-change: https://review.whamcloud.com/49345
Lustre-commit: TBD (from 68c75d28fe86ac890d242c004c664f872204b660)

Test-Parameters: trivial \
env=SLOW=yes,FAILURE_MODE=HARD,ONLY=144a \
clientcount=4 mdtcount=1 mdscount=2 osscount=2 \
austeroptions=-R failover=true iscsi=1 \
testlist=recovery-small

Change-Id: Idbfdb7b084c7edac8784008e0455f76632aa685b
Test-Parameters: trivial testlist=recovery-small
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49419
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/recovery-small.sh

index c8c06e8..7793e3f 100755 (executable)
@@ -3107,6 +3107,9 @@ test_144a() {
        # the worst.
        diff=$((after - before))
        (( $diff < 240 )) || error "MDT failover took $diff seconds"
+
+       # failover mds1 back to the primary server
+       fail mds1
 }
 run_test 144a "MDT failover should stop precreation threads"