From 9fb6818fe3d1e0130e147c5cf740e5e9a2631166 Mon Sep 17 00:00:00 2001 From: Alexander Boyko Date: Thu, 19 Sep 2019 09:22:57 -0400 Subject: [PATCH] LU-12787 tests: skip project quota if it is disabled quota_scan touchs project quota in case of errors or logs. When project quota is not supported, this leads to error: Unexpected quotactl error: Operation not supported ... Some errors happened when getting quota info. Some devices may be not working or deactivated. The data in "[]" is inaccurate. The fix adds a check before touching project quota. Cray-bug-id: LUS-7811 Test-Parameters: testlist=sanity-quota Signed-off-by: Alexander Boyko Change-Id: Ia733b666d6937ea9e8e99ef856d2ae1246dc44d1 Reviewed-on: https://review.whamcloud.com/36997 Tested-by: jenkins Reviewed-by: Wang Shilong Reviewed-by: Alexander Zarochentsev Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity-quota.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index bde7155..4689018 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -138,6 +138,7 @@ quota_scan() { xargs stat 2>/dev/null) fi + is_project_quota_supported || return 0 if [ "$local_ugp" == "a" -o "$local_ugp" == "p" ]; then $LFS quota -v -p $TSTPRJID $DIR log "Files for project ($TSTPRJID):" -- 1.8.3.1