summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-rpc-ops.c
diff options
context:
space:
mode:
authorhari gowtham <hgowtham@redhat.com>2017-01-24 14:24:47 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2017-02-07 09:28:39 -0500
commitc13a39e6c425622221226e5a3c49aafbf430a07d (patch)
tree683774fc221154553a20f554e93cef974569ee86 /cli/src/cli-rpc-ops.c
parentb1d35c6fbaf5e0e958c69ec9c99a5d87649e52bb (diff)
CLI/TIER: removing old tier commands under rebalance
back-port of : https://review.gluster.org/#/c/16463/ PROBLEM: gluster v rebalance <volname> tier start works even after the switch of tier to service framework. This lets the user have two tierd for the same volume. FIX: checking for each process will make the new code hard to maintain. So we are removing the support for old commands. >Change-Id: I5b0974b2dbb74f0bee8344b61c7f924300ad73f2 >BUG: 1415590 >Signed-off-by: hari gowtham <hgowtham@redhat.com> >Reviewed-on: https://review.gluster.org/16463 >Smoke: Gluster Build System <jenkins@build.gluster.org> >Tested-by: hari gowtham <hari.gowtham005@gmail.com> >NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> >CentOS-regression: Gluster Build System <jenkins@build.gluster.org> >Reviewed-by: N Balachandran <nbalacha@redhat.com> >Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Change-Id: Ib996d89b1bd250176a3f5eeb369b71b0a4f95968 BUG: 1419868 Signed-off-by: hari gowtham <hgowtham@redhat.com> Reviewed-on: https://review.gluster.org/16555 Smoke: Gluster Build System <jenkins@build.gluster.org> Tested-by: hari gowtham <hari.gowtham005@gmail.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
-rw-r--r--cli/src/cli-rpc-ops.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index b56457ecf63..4efb78046ab 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -4908,10 +4908,9 @@ gf_cli_attach_tier (call_frame_t *frame, xlator_t *this,
int ret = 0;
dict_t *dict = NULL;
dict_t *newdict = NULL;
- char *tierwords[] = {"volume", "rebalance", "",
- "tier", "start", NULL};
+ char *tierwords[] = {"volume", "tier", "",
+ "start", NULL};
const char **words = (const char **)tierwords;
- int wordcount = 5;
char *volname = NULL;
cli_local_t *local = NULL;
cli_local_t *oldlocal = NULL;
@@ -4939,8 +4938,8 @@ gf_cli_attach_tier (call_frame_t *frame, xlator_t *this,
}
words[2] = volname;
- ret = cli_cmd_volume_defrag_parse ((const char **)words,
- wordcount, &newdict);
+ ret = cli_cmd_volume_old_tier_parse ((const char **)words,
+ 4, &newdict);
if (ret) {
gf_log ("cli", GF_LOG_ERROR, "Failed to parse tier start "
"command");
@@ -4959,8 +4958,7 @@ notify_cli:
if (ret) {
cli_out ("Failed to run tier start. Please execute tier start "
"command explicitly");
- cli_out ("Usage : gluster volume rebalance <volname> tier "
- "start");
+ cli_out ("Usage : gluster volume tier <volname> start");
}
out: