Whamcloud - gitweb
LU-16373 tests: failover mds1 back to the primary server 45/49345/2
authorJian Yu <yujian@whamcloud.com>
Thu, 8 Dec 2022 07:56:36 +0000 (23:56 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 3 Jan 2023 21:55:07 +0000 (21:55 +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.

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/fs/lustre-release/+/49345
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: Sarah Liu <sarah@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/recovery-small.sh

index 9130eb3..920434e 100755 (executable)
@@ -3126,6 +3126,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"