summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorKaushal M <kaushal@redhat.com>2015-12-08 19:06:24 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-12-09 04:18:21 -0800
commitba73b0a25ecdf1c8476eead8105a8edc8031b31c (patch)
tree6f5ee9597d4e7afbb01cc1224dbd26a32f8c8ed3 /tests/volume.rc
parent032e9a8bd923cf6913f0d3998546a2bd589adceb (diff)
tests: fix brick_up_status
The brick_up_status function wasn't correct after the introduction of the RDMA port into the `volume status` output. It has been fixed to use the XML brick status of a specific brick instead of normal CLI output. Change-Id: I5327e1a32b1c6f326bc3def735d0daa9ea320074 BUG: 1289584 Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.org/12913 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 2992e866fda..5df33d9f672 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -23,8 +23,7 @@ function brick_up_status {
local vol=$1
local host=$2
local brick=$3
- brick_pid=$(get_brick_pid $vol $host $brick)
- gluster volume status | grep $brick_pid | awk '{print $4}'
+ $CLI volume status $vol $host:$brick --xml | sed -ne 's/.*<status>\([01]\)<\/status>/\1/p'
}
function volume_option()