Whamcloud - gitweb
LU-14844 tests: make sure mgc_requeue_timeout_min exist. 15/44215/13
authorJames Simmons <jsimmons@infradead.org>
Wed, 14 Jul 2021 17:07:59 +0000 (13:07 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 10 Aug 2021 08:06:07 +0000 (08:06 +0000)
The module parameter mgc_requeue_timeout_min was introduced to reduce
testing times. Currently the test framework always attempts 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.

Change-Id: I64f62e3d6e2faeba99ced98363d241083f95d92e
Fixes: 04b2da6180d ("LU-14516 mgc: configurable wait-to-reprocess time")
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/44215
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/test-framework.sh

index 513619c..1dea3f5 100755 (executable)
@@ -5271,8 +5271,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