Whamcloud - gitweb
LU-16943 tests: use primary ost1 server in replay-single/135 58/52058/3
authorJian Yu <yujian@whamcloud.com>
Thu, 24 Aug 2023 00:56:05 +0000 (17:56 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 13 Sep 2023 04:02:04 +0000 (04:02 +0000)
This patch fixes replay-single test_135() to make sure
the primary ost1 server is used at the beginning of the test.

Test-Parameters: trivial env=REPLAY_SINGLE_EXCEPT=200 testlist=replay-single

Test-Parameters: trivial env=REPLAY_SINGLE_EXCEPT=200,FAILURE_MODE=HARD \
    clientcount=4 mdtcount=1 mdscount=2 osscount=2 \
    austeroptions=-R failover=true iscsi=1 \
    testlist=replay-single,mmp

Fixes: 1b73b6465b77 ("LU-16943 tests: fix replay-single/135 under hard failure mode")
Change-Id: Ia25314255c9f00ba71687e1f757517f37031caed
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52058
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/replay-single.sh

index 57013f1..943079a 100755 (executable)
@@ -4946,6 +4946,9 @@ run_test 134 "replay creation of a file created in a pool"
 
 # LU-14027
 test_135() {
+       # make sure we are using the primary server
+       [[ $(facet_active ost1) == "ost1" ]] || fail ost1
+
        mkdir $DIR/$tdir || error "mkdir $DIR/$tdir failed"
 
        # All files to ost1