Whamcloud - gitweb
LU-16943 tests: use primary ost1 server in replay-single/135 59/52059/3
authorJian Yu <yujian@whamcloud.com>
Thu, 24 Aug 2023 01:01:20 +0000 (18:01 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 19 Oct 2023 13:50:36 +0000 (13:50 +0000)
This patch fixes replay-single test_135() to make sure
the primary ost1 server is used at the beginning of the test.

Lustre-change: https://review.whamcloud.com/52058
Lustre-commit: cdd8b056bff0d48155eaf4b7732d1d8880ceda55

Test-Parameters: trivial testlist=replay-single

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

Fixes: 81418be83ed8 ("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/+/52059
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/replay-single.sh

index f631b73..c02bcc2 100755 (executable)
@@ -4958,6 +4958,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