From: Emoly Liu Date: Fri, 14 Apr 2017 06:18:49 +0000 (+0800) Subject: LU-9332 tests: fix pool_list issue in conf-sanity test_82b X-Git-Tag: 2.9.57~75 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=586be217d8fe1617702571e18c324d29df27a6a8;p=fs%2Flustre-release.git LU-9332 tests: fix pool_list issue in conf-sanity test_82b In conf-sanity.sh test_82b, if we use separated MGS and MDS nodes, MDS needs more time to list the OSTs in pool, so use wait_update instead of the pool_list command. Signed-off-by: Emoly Liu Change-Id: I8f7281d44a12731d7ae2d1f8fa9bad163086cecc Reviewed-on: https://review.whamcloud.com/26582 Tested-by: Jenkins Reviewed-by: Parinay Kondekar Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index abf125c..363dfc8 100755 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -5881,8 +5881,8 @@ test_82b() { # LU-4665 wait_update $HOSTNAME "$LCTL get_param -n lov.$FSNAME-*.pools.$TESTNAME| sort -u | tr '\n' ' ' " "$ost_targets_uuid" || error "wait_update $ost_pool failed" - [[ -z $(list_pool $ost_pool) ]] && - error "list OST pool $ost_pool failed" + wait_update_facet $SINGLEMDS "$LCTL pool_list $ost_pool | wc -l" 4 || + error "wait_update pool_list $ost_pool failed" # If [--pool|-p ] is set with [--ost-list|-o ], # then the OSTs must be the members of the pool.