summaryrefslogtreecommitdiffstats
path: root/tests/tier.rc
diff options
context:
space:
mode:
authorhari gowtham <hgowtham@redhat.com>2016-05-16 10:55:17 +0530
committerAtin Mukherjee <amukherj@redhat.com>2016-05-20 07:25:37 -0700
commitd5e67cd2b2d60166f16337e4441fa50a9e488094 (patch)
treef7aff7ecfb308c8497aa1bb66d4ab2e655906885 /tests/tier.rc
parent6837b2793bc3d2cc488aa49491f3f5ff09e925b7 (diff)
tier/cli : printing a warning instead of skipping the node
Problem: skipping the status of the nodes down creates confusion to the user as one might see the status as completed for all nodes and while performing detach commit, the operation will fail as the node is down Fix: Display a warning message Note: When the last node is down (as per the peer list) then warning message can't be displayed as the total number of peers participating in the transaction is considered to be the total count. Change-Id: Ib7afbd1b26df3378e4d537db06f41f5c105ad86e BUG: 1324439 Signed-off-by: hari gowtham <hgowtham@redhat.com> Reviewed-on: http://review.gluster.org/14347 Tested-by: hari gowtham <hari.gowtham005@gmail.com> Smoke: Gluster Build System <jenkins@build.gluster.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'tests/tier.rc')
-rw-r--r--tests/tier.rc13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/tier.rc b/tests/tier.rc
index ee37e0704fa..69512c3fb4e 100644
--- a/tests/tier.rc
+++ b/tests/tier.rc
@@ -134,3 +134,16 @@ function rebalance_run_time () {
echo $total;
}
+
+function tier_detach_commit () {
+ $CLI_1 volume tier $V0 detach commit | grep "success" | wc -l
+}
+
+function tier_detach_status_node_down () {
+ $CLI_1 volume tier $V0 detach status | grep "WARNING" | wc -l
+}
+
+function tier_status_node_down () {
+ $CLI_1 volume tier $V0 status | grep "WARNING" | wc -l
+}
+