From bad9539437ca1d69e470159277bbb6b5675cbae3 Mon Sep 17 00:00:00 2001 From: Dan Lambright Date: Fri, 9 Oct 2015 12:18:03 -0400 Subject: cluster/tier: fix transpoint endpoint not connected in tier.t (rare) The script did not cleanly unmount/mount gluster and change the current working directory when stopping and starting the volume. Most of the time this problem would self-resolve before subsequent tests, but very occasionally races would lead to the errors/failures. Change-Id: I128b913a71e2745512ee81c3d71852311e3b4a1b BUG: 1270328 Signed-off-by: Dan Lambright Reviewed-on: http://review.gluster.org/12327 Reviewed-by: Joseph Fernandes Tested-by: Gluster Build System --- tests/basic/tier/tier.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/basic') diff --git a/tests/basic/tier/tier.t b/tests/basic/tier/tier.t index b47c8263b40..7810ff2bfd6 100755 --- a/tests/basic/tier/tier.t +++ b/tests/basic/tier/tier.t @@ -157,8 +157,12 @@ TEST touch delete_me.txt TEST rm -f delete_me.txt # stop the volume and restart it. The rebalance daemon should restart. +cd /tmp +umount $M0 TEST $CLI volume stop $V0 TEST $CLI volume start $V0 +TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0; +cd $M0 sleep_first_cycle $CLI volume tier $V0 status -- cgit