From 54619cef6a0151386577ccaca27af0d43d1a6350 Mon Sep 17 00:00:00 2001 From: Vladimir Saveliev Date: Wed, 21 Feb 2024 14:15:24 +0300 Subject: [PATCH] LU-17571 tests: set idle_timeout in sanity 77l, 812[ab], 816 sanity.sh:test_77l,812a,812b,816 rely on idle_timeout set to not 0. Have the tests to take care of that. Test-Parameters: trivial HPE-bug-id: LUS-10951 Signed-off-by: Vladimir Saveliev Change-Id: I6c0cf3e7264263221b5ec54292673868f4bda25c Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54123 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Alex Zhuravlev Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index fa6e4a7..ab02e17 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -11097,6 +11097,11 @@ test_77l() { set_checksums 1 stack_trap "set_checksums $ORIG_CSUM" EXIT stack_trap "set_checksum_type $ORIG_CSUM_TYPE" EXIT + local old + + old=$($LCTL get_param -n osc.*.idle_timeout | head -n 1) + $LCTL set_param osc.*.idle_timeout=10 + stack_trap "$LCTL set_param osc.*.idle_timeout=$old" EXIT set_checksum_type invalid && error "unexpected success of invalid checksum type" @@ -31456,6 +31461,11 @@ run_test 810 "partial page writes on ZFS (LU-11663)" test_812a() { [ $OST1_VERSION -lt $(version_code 2.12.51) ] && skip "OST < 2.12.51 doesn't support this fail_loc" + local old + + old=$($LCTL get_param -n osc.*.idle_timeout | head -n 1) + $LCTL set_param osc.*.idle_timeout=10 + stack_trap "$LCTL set_param osc.*.idle_timeout=$old" EXIT $LFS setstripe -c 1 -i 0 $DIR/$tfile # ensure ost1 is connected @@ -31477,6 +31487,11 @@ run_test 812a "do not drop reqs generated when imp is going to idle (LU-11951)" test_812b() { # LU-12378 [ $OST1_VERSION -lt $(version_code 2.12.51) ] && skip "OST < 2.12.51 doesn't support this fail_loc" + local old + + old=$($LCTL get_param -n osc.*.idle_timeout | head -n 1) + $LCTL set_param osc.*.idle_timeout=10 + stack_trap "$LCTL set_param osc.*.idle_timeout=$old" EXIT $LFS setstripe -c 1 -i 0 $DIR/$tfile || error "setstripe failed" # ensure ost1 is connected @@ -31709,6 +31724,11 @@ test_816() { local ost1_imp=$(get_osc_import_name client ost1) local imp_name=$($LCTL list_param osc.$ost1_imp | head -n1 | cut -d'.' -f2) + local old + + old=$($LCTL get_param -n osc.*.idle_timeout | head -n 1) + $LCTL set_param osc.*.idle_timeout=10 + stack_trap "$LCTL set_param osc.*.idle_timeout=$old" EXIT $LFS setstripe -c 1 -i 0 $DIR/$tfile # ensure ost1 is connected -- 1.8.3.1