From bee4ab7ffa196e051203de11e637b34fa813a516 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Fri, 25 Mar 2022 10:34:56 +0800 Subject: [PATCH] LU-15460 test: wait quota pool to be prepared 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-commit: 83dd308db59a9b95c1db5efa12ea5af22e9c8346 Lustre-change: https://review.whamcloud.com/46853 Test-Parameters: trivial Signed-off-by: Hongchao Zhang Change-Id: Ibea33403639087f27e438d71c0e87fea5367bc3e Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51947 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/tests/sanity-quota.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index de8f9ab..ea5f71d 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -4735,6 +4735,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}' } -- 1.8.3.1