Whamcloud - gitweb
LU-11496 tests: start_client_loads () fix 39/33339/10
authorElena Gryaznova <c17455@cray.com>
Wed, 10 Oct 2018 15:55:17 +0000 (18:55 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 16 Jan 2019 07:07:47 +0000 (07:07 +0000)
recovery-*-scale tests are not functional with LOADS=IOR
because of MPIRUN and MPIRUN_OPTIONS are not set.
Patch fixes this defect.

Test-Parameters: trivial
Signed-off-by: Elena Gryaznova <c17455@cray.com>
Cray-bug-id: LUS-6220
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Alexander Boyko <c17825@cray.com>
Change-Id: I9b6d3810978260c0cec4a5482f093f788651aac0
Reviewed-on: https://review.whamcloud.com/33339
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/run_IOR.sh
lustre/tests/test-framework.sh

index 4e44df4..98379f5 100755 (executable)
@@ -45,9 +45,8 @@ while [ ! -e "$END_RUN_FILE" ] && $CONTINUE; do
        chmod -R 777 $TESTDIR
 
        sync
-       mpi_run ${MACHINEFILE_OPTION} ${MACHINEFILE} \
-               -np $((NUM_CLIENTS * THREADS_PER_CLIENT)) $IOR -a POSIX -b 1g \
-               -o $TESTDIR/IOR-file -s 1 -t 1m -v -w -r 1>$LOG &
+
+       run_ior fpp $TESTDIR  1>$LOG &
 
        load_pid=$!
        wait $load_pid
index 1a044d2..10b7451 100755 (executable)
@@ -2638,6 +2638,18 @@ start_client_load() {
                        LFS=$LFS \
                        LCTL=$LCTL \
                        FSNAME=$FSNAME \
+                       MPIRUN=$MPIRUN \
+                       MPIRUN_OPTIONS=\\\"$MPIRUN_OPTIONS\\\" \
+                       MACHINEFILE_OPTION=\\\"$MACHINEFILE_OPTION\\\" \
+                       num_clients=$(get_node_count ${CLIENTS//,/ }) \
+                       ior_THREADS=$ior_THREADS ior_iteration=$ior_iteration \
+                       ior_blockSize=$ior_blockSize \
+                       ior_blockUnit=$ior_blockUnit \
+                       ior_xferSize=$ior_xferSize ior_type=$ior_type \
+                       ior_DURATION=$ior_DURATION \
+                       ior_stripe_params=\\\"$ior_stripe_params\\\" \
+                       ior_custom_params=\\\"$ior_custom_param\\\" \
+                       mpi_ior_custom_threads=$mpi_ior_custom_threads \
                        run_${load}.sh" &
        local ppid=$!
        log "Started client load: ${load} on $client"