path: root/tests/bugs/glusterd/bug-963541.t
diff options
authorSakshi Bansal <>2016-07-11 13:34:28 +0530
committerKaushal M <>2016-09-18 22:35:17 -0700
commit801cdb1e2381b988b515819f02120cd129fc4740 (patch)
tree9b31b833c0411e5b9314829c2c238198617d60a2 /tests/bugs/glusterd/bug-963541.t
parent234b906f2fe91f29d6a369edea4114bf2cbfa2c7 (diff)
tests: fix rebalance timing issue
With a start and stop rebalance, the stop command may fail as by that time the rebalance process may not come up. Using the rebalance status commmand to ensure that the rebalance process is up before stoping rebalance. >Reviewed-on: >Smoke: Gluster Build System <> >NetBSD-regression: NetBSD Build System <> >CentOS-regression: Gluster Build System <> >Reviewed-by: Jeff Darcy <> Change-Id: I3d5123cd5dfabde2720428455b257d11b980ce21 BUG: 1375049 Signed-off-by: Atin Mukherjee <> Reviewed-on: Smoke: Gluster Build System <> CentOS-regression: Gluster Build System <> NetBSD-regression: NetBSD Build System <> Reviewed-by: Kaushal M <>
Diffstat (limited to 'tests/bugs/glusterd/bug-963541.t')
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bugs/glusterd/bug-963541.t b/tests/bugs/glusterd/bug-963541.t
index 611626a0d10..ec863346dbf 100755
--- a/tests/bugs/glusterd/bug-963541.t
+++ b/tests/bugs/glusterd/bug-963541.t
@@ -1,6 +1,7 @@
. $(dirname $0)/../../include.rc
+. $(dirname $0)/../../volume.rc
@@ -22,6 +23,7 @@ TEST $CLI volume remove-brick $V0 $H0:$B0/${V0}1 commit
gluster volume status
TEST $CLI volume rebalance $V0 start
+EXPECT_WITHIN $REBALANCE_TIMEOUT "completed" rebalance_status_field $V0
TEST $CLI volume rebalance $V0 stop
TEST $CLI volume remove-brick $V0 $H0:$B0/${V0}2 start