Whamcloud - gitweb
LU-16692 tests: force_new_seq_all interop version checking 40/54840/1
authorLi Dongyang <dongyangli@ddn.com>
Thu, 18 Apr 2024 11:10:39 +0000 (21:10 +1000)
committerLi Dongyang <dongyangli@ddn.com>
Thu, 18 Apr 2024 11:48:01 +0000 (21:48 +1000)
force_new_seq_all is still needed in those test suites
if testing against servers don't have v2_15_61-226-gf00d2467fc

Test-Parameters:trivial serverjob=lustre-master serverbuildno=4516 testlist=replay-single,replay-ost-single,replay-dual,recovery-small,replay-vbr,sanity-pfl

Change-Id: Iab963ac10308b56a60508774c1a63bcdfffdba85
Fixes: 9ef186b71b ("LU-16692 tests: remove force_new_seq from some test suites")
Fixes: f00d2467fc ("LU-16692 osp: do not assert on seq got over network")
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
lustre/tests/recovery-small.sh
lustre/tests/replay-dual.sh
lustre/tests/replay-ost-single.sh
lustre/tests/replay-single.sh
lustre/tests/replay-vbr.sh
lustre/tests/sanity-pfl.sh

index 24be100..4fc45eb 100755 (executable)
@@ -28,6 +28,11 @@ check_and_setup_lustre
 assert_DIR
 rm -rf $DIR/d[0-9]* $DIR/f.${TESTSUITE}*
 
+# new sequence needed for MDS < v2_15_61-226-gf00d2467fc
+if (( $MDS1_VERSION < $(version_code 2.15.61.226) )); then
+       force_new_seq_all
+fi
+
 test_1() {
        local f1="$DIR/$tfile"
        local f2="$DIR/$tfile.2"
index 6e84f82..b4ca98b 100755 (executable)
@@ -47,6 +47,11 @@ CLIENT1=${CLIENT1:-$HOSTNAME}
 # Exception is the test which need two separate nodes
 CLIENT2=${CLIENT2:-$CLIENT1}
 
+# new sequence needed for MDS < v2_15_61-226-gf00d2467fc
+if (( $MDS1_VERSION < $(version_code 2.15.61.226) )); then
+       force_new_seq_all
+fi
+
 LU482_FAILED=$(mktemp -u $TMP/$TESTSUITE.lu482.XXXXXX)
 test_0a() {
        echo "Check file is LU482_FAILED=$LU482_FAILED"
index 1106c16..4a05816 100755 (executable)
@@ -33,6 +33,11 @@ mkdir_on_mdt0 $TDIR
 $LFS setstripe $TDIR -i 0 -c 1
 $LFS getstripe $TDIR
 
+# new sequence needed for MDS < v2_15_61-226-gf00d2467fc
+if (( $MDS1_VERSION < $(version_code 2.15.61.226) )); then
+       force_new_seq_all
+fi
+
 test_0a() {
        zconf_umount $(hostname) $MOUNT -f
        # needs to run during initial client->OST connection
index e0e2092..bf22d56 100755 (executable)
@@ -31,6 +31,11 @@ mkdir -p $DIR
 assert_DIR
 rm -rf $DIR/[df][0-9]* $DIR/f.$TESTSUITE.*
 
+# new sequence needed for MDS < v2_15_61-226-gf00d2467fc
+if (( $MDS1_VERSION < $(version_code 2.15.61.226) )); then
+       force_new_seq_all
+fi
+
 test_0a() {    # was test_0
        mkdir_on_mdt0 $DIR/$tdir || error "mkdir $DIR/$tdir failed"
        replay_barrier $SINGLEMDS
index 0541385..659f260 100755 (executable)
@@ -71,6 +71,11 @@ chk_get_version() {
 cos_param_file=$TMP/rvbr-cos-params
 save_lustre_params $(get_facets MDS) "mdt.*.commit_on_sharing" > $cos_param_file
 
+# new sequence needed for MDS < v2_15_61-226-gf00d2467fc
+if (( $MDS1_VERSION < $(version_code 2.15.61.226) )); then
+       force_new_seq_all
+fi
+
 test_0a() {
        local ver=$(get_version $CLIENT1 $DIR/$tdir/1a)
 
index cc78292..c37ce79 100755 (executable)
@@ -40,6 +40,11 @@ check_runas_id $RUNAS_ID $RUNAS_GID $RUNAS
 assert_DIR
 rm -rf $DIR/[Rdfs][0-9]*
 
+# new sequence needed for MDS < v2_15_61-226-gf00d2467fc
+if (( $MDS1_VERSION < $(version_code 2.15.61.226) )); then
+       force_new_seq_all
+fi
+
 test_0a() {
        [ $OSTCOUNT -lt 2 ] && skip "needs >= 2 OSTs"