From 0d9e3b85094efb0f9cb304fc27f96cb13e23934d Mon Sep 17 00:00:00 2001 From: Dmitry Zogin Date: Thu, 4 Mar 2010 11:16:05 -0500 Subject: [PATCH] b=21900 ost-pools test_25: FAIL Make ost-pools test_25 more robust i=manoj.joseph --- lustre/tests/ost-pools.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 1.8.3.1