From: Dmitry Zogin Date: Thu, 4 Mar 2010 16:16:05 +0000 (-0500) Subject: b=21900 ost-pools test_25: FAIL X-Git-Tag: v1_8_2_52~22 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0d9e3b85094efb0f9cb304fc27f96cb13e23934d;p=fs%2Flustre-release.git b=21900 ost-pools test_25: FAIL Make ost-pools test_25 more robust i=manoj.joseph --- diff --git a/lustre/tests/ost-pools.sh b/lustre/tests/ost-pools.sh index 8754980..45ff7cd 100644 --- a/lustre/tests/ost-pools.sh +++ b/lustre/tests/ost-pools.sh @@ -1308,7 +1308,11 @@ test_25() { for i in $(seq 10); do create_pool_nofail pool$i - do_facet $SINGLEMDS lctl pool_add $FSNAME.pool$i OST0000 + do_facet $SINGLEMDS "lctl pool_add $FSNAME.pool$i OST0000; sync" + wait_update $HOSTNAME "lctl get_param -n lov.$FSNAME-*.pools.pool$i | \ + sort -u | tr '\n' ' ' " "$FSNAME-OST0000_UUID " || \ + error "pool_add failed: $1; $2" + stop $SINGLEMDS || return 1 start $SINGLEMDS $MDSDEV $MDS_MOUNT_OPTS || \ { error "Failed to start $SINGLEMDS after stopping" && break; } @@ -1316,6 +1320,7 @@ test_25() { clients_up # Veriy that the pool got created and is usable + df $POOL_ROOT echo "Creating a file in pool$i" create_file $POOL_ROOT/file$i pool$i || break check_file_in_pool $POOL_ROOT/file$i pool$i || break