Whamcloud - gitweb
LU-14299 test: sleep to enable quota acquire again 89/41389/3
authorHongchao Zhang <hongchao@whamcloud.com>
Fri, 29 Jan 2021 20:51:43 +0000 (04:51 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Feb 2021 21:55:55 +0000 (21:55 +0000)
sanity-quota test_61 fails with incorrect quota exceeded
errors because quota acquire will be disabled for 5 seconds
after edquot flag is set.  The test should introduce some
delay between the test of over quota and normal one.

Test-Parameters: trivial fstype=zfs testlist=sanity-quota env=ONLY=61,ONLY_REPEAT=20
Fixes: 530881fe4ee20 ("LU-7816 quota: add default quota setting support")
Change-Id: I8040ba960f32cf01cb7cee3a77c06ad4bd732f0e
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41389
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh

index c265b0c..365a424 100755 (executable)
@@ -3980,6 +3980,10 @@ test_default_quota() {
        fi
 
        log "Increase default quota"
+
+       # LU-4505: sleep 5 seconds to enable quota acquire
+       sleep 5
+
        # increase default quota
        $LFS setquota $qdtype $qs $((LIMIT*3)) $qh $((LIMIT*3)) $DIR ||
                error "set default quota failed"
@@ -4015,6 +4019,10 @@ test_default_quota() {
        fi
 
        log "Set to use default quota again"
+
+       # LU-4505: sleep 5 seconds to enable quota acquire
+       sleep 5
+
        $LFS setquota $qtype $qid -d $DIR ||
                error "set $qid to use default quota failed"