From 368e26f454fe35477e46dc698fa6b8c3c608ea8d Mon Sep 17 00:00:00 2001 From: Sakshi Date: Tue, 26 May 2015 09:53:55 +0530 Subject: glusterd: check if glusterd is started on all nodes and all bricks are started before performing rebalance Change-Id: I458ea9cd86cf35bdb7d758be55f951ae9f3e66f0 BUG: 1224857 Signed-off-by: Sakshi Reviewed-on: http://review.gluster.org/10906 Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Atin Mukherjee --- tests/bugs/distribute/bug-860663.t | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/bugs/distribute/bug-860663.t') diff --git a/tests/bugs/distribute/bug-860663.t b/tests/bugs/distribute/bug-860663.t index f250a736e41..ebae0e5d824 100644 --- a/tests/bugs/distribute/bug-860663.t +++ b/tests/bugs/distribute/bug-860663.t @@ -1,5 +1,6 @@ #!/bin/bash +. $(dirname $0)/../../volume.rc . $(dirname $0)/../../include.rc cleanup; @@ -36,13 +37,17 @@ TEST [ $ORIG_FILE_COUNT -ge 10000 ] # Kill a brick process kill -9 `cat $GLUSTERD_WORKDIR/vols/$V0/run/$H0-d-backends-${V0}1.pid`; +TEST ! $CLI volume rebalance $V0 fix-layout start + +TEST $CLI volume start $V0 force +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" brick_up_status $V0 $H0 $B0/${V0}1 + TEST $CLI volume rebalance $V0 fix-layout start -sleep 30; +EXPECT_WITHIN $REBALANCE_TIMEOUT "fix-layout completed" rebalance_status_field $V0; TEST ! $(dirname $0)/bug-860663 $M0/files 10000 -TEST $CLI volume start $V0 force sleep 5; -- cgit