Whamcloud - gitweb
LU-12166 test: fix broken detection on ZFS 09/34609/2
authorWang Shilong <wshilong@ddn.com>
Sun, 7 Apr 2019 03:44:51 +0000 (11:44 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 13 Apr 2019 04:50:42 +0000 (04:50 +0000)
We intent to run the command on mds, otherwise
project quota will never be tested.

Test-Parameters:trivial fstype=zfs
Fixes: a046e87 ("LU-7991 quota: project quota against ZFS backend")
Change-Id: I8650a0e1065f0bb465da01556472d3d23b22a530
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/34609
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh

index 54e1bf6..14a20cd 100755 (executable)
@@ -85,7 +85,8 @@ is_project_quota_supported() {
                [ $(lustre_version_code $SINGLEMDS) -le \
                        $(version_code 2.10.53) ] && return 1
 
-               $ZPOOL upgrade -v | grep project_quota && return 0
+               do_facet mds1 $ZPOOL upgrade -v |
+                       grep project_quota && return 0
        fi
 
        return 1