Whamcloud - gitweb
LU-4816 tests: Customer Wizard seems to be stuck on test 116 78/9778/4
authorParinay Kondekar <parinay_kondekar@xyratex.com>
Tue, 25 Mar 2014 15:56:34 +0000 (21:26 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 19 Apr 2014 06:22:47 +0000 (06:22 +0000)
Due to large OST  size, the execution of test 116 takes huge time to
complete. In such cases it would be good to skip this tests execution.

The test attempts to write 2% above the qos_threshold_rr_level.
In scenarios where OST size is huge, during the first round of write
the count of 2MB file to be created is big, causing testt to take time
to comeplete the same.

This change checks to see if more space is available than expected,
and if so skips the test.

Signed-off-by: Parinay Kondekar <parinay_kondekar@xyratex.com>
Change-Id: Ifa101de2fffcaa3c182582496abd68ab6244d3a0
Xyratex-bug-id: MRP-1747
Reviewed-on: http://review.whamcloud.com/9778
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index 7a430d0..533437a 100644 (file)
@@ -6840,8 +6840,11 @@ test_116a() { # was previously test_116()
        free_min_max
 
        [ $MINV -eq 0 ] && skip "no free space in OST$MINI, skip" && return
        free_min_max
 
        [ $MINV -eq 0 ] && skip "no free space in OST$MINI, skip" && return
+       [ $MINV -gt 10000000 ] && skip "too much free space in OST$MINI, skip" \
+               && return
        trap simple_cleanup_common EXIT
 
        trap simple_cleanup_common EXIT
 
+
        # Check if we need to generate uneven OSTs
        test_mkdir -p $DIR/$tdir/OST${MINI}
        local FILL=$(($MINV / 4))
        # Check if we need to generate uneven OSTs
        test_mkdir -p $DIR/$tdir/OST${MINI}
        local FILL=$(($MINV / 4))