From cdeec9eec9414ce49615071423602c203d9514ca Mon Sep 17 00:00:00 2001 From: James Simmons Date: Wed, 14 Jul 2021 13:07:59 -0400 Subject: [PATCH] LU-14844 tests: make sure mgc_requeue_timeout_min exist. The module parameter mgc_requeue_timeout_min was introduced to reduce testing times. Currently the test framework always tries to set this value but it doesn't exist in earlier Lustre versions which breaks interop testing. Set the module parameter only if it exist. Lustre-change: https://review.whamcloud.com/44215 Lustre-commit: dfeb63f2ee3701ef731ffcea3f79fb70d513a9dc Test-Parameters: trivial Change-Id: I64f62e3d6e2faeba99ced98363d241083f95d92e Fixes: 04b2da6180d ("LU-14516 mgc: configurable wait-to-reprocess time") Signed-off-by: James Simmons Reviewed-by: Alex Zhuravlev Reviewed-by: Andreas Dilger Reviewed-by: James Nunez Reviewed-on: https://review.whamcloud.com/44789 Tested-by: jenkins Tested-by: Maloo --- lustre/tests/test-framework.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index f5e380a..9d98a6b 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -5313,8 +5313,9 @@ init_param_vars () { log "Using TIMEOUT=$TIMEOUT" # tune down to speed up testing on (usually) small setups + local mgc_timeout=/sys/module/mgc/parameters/mgc_requeue_timeout_min do_nodes $(comma_list $(nodes_list)) \ - "echo 1 >/sys/module/mgc/parameters/mgc_requeue_timeout_min" + "[ -f $mgc_timeout ] && echo 1 > $mgc_timeout; exit 0" osc_ensure_active $SINGLEMDS $TIMEOUT osc_ensure_active client $TIMEOUT -- 1.8.3.1