diff options
author | ggarg <ggarg@redhat.com> | 2014-04-21 18:59:00 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-05-02 09:31:45 -0700 |
commit | dd5e318e020fab5914567885c1b83815b39d46f9 (patch) | |
tree | 16e5292e52b6dce61a8da59c82d8f3f19feacaae /tests/dht.rc | |
parent | 0f56f0ce2d2e18fbb2eedf14e93b5a592f0005c3 (diff) |
glusterd: Differentiate rebalance status and remove-brick status messages
previously when user triggred 'gluster volume remove-brick VOLNAME
BRICK start' then command' gluster volume rebalance <volname> status'
showing output even user has not triggred "rebalance start" and when
user triggred 'gluster volume rebalance <volname> start' then command
'gluster volume remove-brick VOLNAME BRICK status' showing output even
user has not run rebalance start and remove brick start.
regression test failed in previous patch. file test/dht.rc and
test/bug/bug-973073 edited to avoid regression test failure.
now with this fix it will differentiate rebalance and remove-brick
status messages.
Signed-off-by: ggarg <ggarg@redhat.com>
Change-Id: I7f92ad247863b9f5fbc0887cc2ead07754bcfb4f
BUG: 1089668
Reviewed-on: http://review.gluster.org/7517
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/dht.rc')
-rw-r--r-- | tests/dht.rc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/dht.rc b/tests/dht.rc index 54425c9dc69..a11bbfd8a97 100644 --- a/tests/dht.rc +++ b/tests/dht.rc @@ -78,3 +78,16 @@ function rebalance_completed() echo $val return $val } + +function remove_brick_completed() +{ + val=1 + test=`gluster volume remove-brick $V0 $H0:$B0/${V0}2 status |grep localhost|grep -v "in progress" 2>&1` + if [ $? -eq 0 ] + then + val=0 + fi + + echo $val + return $val +} |