Whamcloud - gitweb
LU-14844 tests: make sure mgc_requeue_timeout_min exist.
authorJames Simmons <jsimmons@infradead.org>
Wed, 14 Jul 2021 17:07:59 +0000 (13:07 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 8 Sep 2021 17:34:14 +0000 (17:34 +0000)
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 <jsimmons@infradead.org>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44789
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/test-framework.sh

index f5e380a..9d98a6b 100755 (executable)
@@ -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