Whamcloud - gitweb
LU-9887 tests: ignore error sanity-lfsck test 9a,b 88/28588/7
authorJames Nunez <james.a.nunez@intel.com>
Thu, 17 Aug 2017 20:04:14 +0000 (14:04 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 20 Aug 2017 18:44:29 +0000 (18:44 +0000)
sanity-lfsck tests 9a and 9b are failing consistently on
checking that speed limiting LFSCK takes less time than the
user defined maximum speed. We should ignore these errors
for now and print the layout or namespace to help understand
this issue.

Test-Parameters: trivial testgroup=review-zfs-part-1
Test-Parameters: testgroup=review-dne-part-2

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I64cac59edd456e6fd519961a4055130c8dbc8a4a
Reviewed-on: https://review.whamcloud.com/28588
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
lustre/tests/sanity-lfsck.sh

index 99b1c4e..77588e9 100644 (file)
@@ -1047,8 +1047,11 @@ test_9a() {
        # MAX_MARGIN = 1.2 = 12 / 10
        local MAX_SPEED=$((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) / \
                           RUN_TIME1 * 12 / 10))
        # MAX_MARGIN = 1.2 = 12 / 10
        local MAX_SPEED=$((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) / \
                           RUN_TIME1 * 12 / 10))
-       [ $SPEED -lt $MAX_SPEED ] ||
-               error "(4) Got speed $SPEED, expected less than $MAX_SPEED"
+       [ $SPEED -lt $MAX_SPEED ] || {
+               $SHOW_LAYOUT
+               log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
+               error_ignore LU-9887 "(4) Speed $SPEED, expected < $MAX_SPEED"
+       }
 
        # adjust speed limit
        local BASE_SPEED2=300
 
        # adjust speed limit
        local BASE_SPEED2=300
@@ -1076,8 +1079,12 @@ test_9a() {
        MAX_SPEED=$(((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) + \
                      BASE_SPEED2 * (RUN_TIME2 + TIME_DIFF)) / \
                     (RUN_TIME1 + RUN_TIME2) * 12 / 10))
        MAX_SPEED=$(((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) + \
                      BASE_SPEED2 * (RUN_TIME2 + TIME_DIFF)) / \
                     (RUN_TIME1 + RUN_TIME2) * 12 / 10))
-       [ $SPEED -lt $MAX_SPEED ] ||
-               error "(6) Got speed $SPEED, expected less than $MAX_SPEED"
+       [ $SPEED -lt $MAX_SPEED ] || {
+               $SHOW_LAYOUT
+               log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
+               log "speed2: $BASE_SPEED2 time2: $RUN_TIME2"
+               error_ignore LU-9887 "(6) Speed $SPEED, expected < $MAX_SPEED"
+       }
 
        do_facet $SINGLEMDS \
                $LCTL set_param -n mdd.${MDT_DEV}.lfsck_speed_limit 0
 
        do_facet $SINGLEMDS \
                $LCTL set_param -n mdd.${MDT_DEV}.lfsck_speed_limit 0
@@ -1139,8 +1146,11 @@ test_9b() {
        # MAX_MARGIN = 1.2 = 12 / 10
        local MAX_SPEED=$((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) / \
                          RUN_TIME1 * 12 / 10))
        # MAX_MARGIN = 1.2 = 12 / 10
        local MAX_SPEED=$((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) / \
                          RUN_TIME1 * 12 / 10))
-       [ $SPEED -lt $MAX_SPEED ] ||
-               error "(8) Got speed $SPEED, expected less than $MAX_SPEED"
+       [ $SPEED -lt $MAX_SPEED ] || {
+               $SHOW_NAMESPACE
+               log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
+               error_ignore LU-9887 "(8) Speed $SPEED, expected < $MAX_SPEED"
+       }
 
        # adjust speed limit
        local BASE_SPEED2=150
 
        # adjust speed limit
        local BASE_SPEED2=150
@@ -1168,8 +1178,12 @@ test_9b() {
        MAX_SPEED=$(((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) + \
                      BASE_SPEED2 * (RUN_TIME2 + TIME_DIFF)) / \
                     (RUN_TIME1 + RUN_TIME2) * 12 / 10))
        MAX_SPEED=$(((BASE_SPEED1 * (RUN_TIME1 + TIME_DIFF) + \
                      BASE_SPEED2 * (RUN_TIME2 + TIME_DIFF)) / \
                     (RUN_TIME1 + RUN_TIME2) * 12 / 10))
-       [ $SPEED -lt $MAX_SPEED ] ||
-               error "(10) Got speed $SPEED, expected less than $MAX_SPEED"
+       [ $SPEED -lt $MAX_SPEED ] || {
+               $SHOW_NAMESPACE
+               log "speed1: $BASE_SPEED1 time1: $RUN_TIME1"
+               log "speed2: $BASE_SPEED2 time2: $RUN_TIME2"
+               error_ignore LU-9887 "(10) Speed $SPEED, expected < $MAX_SPEED"
+       }
 
        do_facet $SINGLEMDS \
                $LCTL set_param -n mdd.${MDT_DEV}.lfsck_speed_limit 0
 
        do_facet $SINGLEMDS \
                $LCTL set_param -n mdd.${MDT_DEV}.lfsck_speed_limit 0