Whamcloud - gitweb
LU-15460 test: wait quota pool to be prepared 50/49250/2
authorHongchao Zhang <hongchao@whamcloud.com>
Fri, 25 Mar 2022 02:34:56 +0000 (10:34 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Dec 2022 02:53:19 +0000 (02:53 +0000)
When one OST pool was created, the corresponding quota pool
could need more time to prepare after it was created, then
fail to check the info of the quota pool

Lustre-change: https://review.whamcloud.com/46853
Lustre-commit: 83dd308db59a9b95c1db5efa12ea5af22e9c8346

Test-Parameters: trivial
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: Ibea33403639087f27e438d71c0e87fea5367bc3e
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49250
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh

index 80be73d..f552d84 100755 (executable)
@@ -4532,6 +4532,11 @@ get_slave_nr() {
        local qtype=$2
        local nr
 
+       wait_update_facet mds1 \
+               "$LCTL get_param -n qmt.$FSNAME-QMT0000.dt-$pool.info \
+                       >/dev/null 2>&1 || echo foo" "" ||
+       error "mds1: failed to create quota pool $pool"
+
        do_facet mds1 $LCTL get_param -n qmt.$FSNAME-QMT0000.dt-$pool.info |
                awk '/usr/ {getline; print $2}'
 }