74b1de
From 039a3f81209706261fc809eac94564e81a3377da Mon Sep 17 00:00:00 2001
74b1de
From: Sanju Rakonde <srakonde@redhat.com>
74b1de
Date: Wed, 25 Sep 2019 14:55:19 +0530
74b1de
Subject: [PATCH 300/302] cli: remove the warning displayed when remove brick
74b1de
 start issued
74b1de
74b1de
remove-brick start command gives displays below error:
74b1de
74b1de
It is recommended that remove-brick be run with cluster.force-migration
74b1de
option disabled to prevent possible data corruption. Doing so will ensure
74b1de
that files that receive writes during migration will not be migrated and
74b1de
will need to be manually copied after the remove-brick commit operation.
74b1de
Please check the value of the option and update accordingly.
74b1de
Do you want to continue with your current cluster.force-migration settings? (y/n)
74b1de
74b1de
As we are not qualifying cluster.force-migration for 3.5.0,
74b1de
we should not display this message. So, removing it.
74b1de
74b1de
Label: DOWNSTREAM ONLY
74b1de
74b1de
BUG: 1755227
74b1de
Change-Id: I409f2059d43c5e867788f19d2ccb8d6d839520f7
74b1de
fixes: bz#1755227
74b1de
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
74b1de
Reviewed-on: https://code.engineering.redhat.com/gerrit/182009
74b1de
Tested-by: RHGS Build Bot <nigelb@redhat.com>
74b1de
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
74b1de
---
74b1de
 cli/src/cli-cmd-parser.c |  2 --
74b1de
 cli/src/cli-cmd-volume.c | 11 -----------
74b1de
 2 files changed, 13 deletions(-)
74b1de
74b1de
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
74b1de
index 92ceb8e..4456a7b 100644
74b1de
--- a/cli/src/cli-cmd-parser.c
74b1de
+++ b/cli/src/cli-cmd-parser.c
74b1de
@@ -2101,8 +2101,6 @@ cli_cmd_volume_remove_brick_parse(struct cli_state *state, const char **words,
74b1de
         wordcount--;
74b1de
         if (!strcmp("start", w)) {
74b1de
             command = GF_OP_CMD_START;
74b1de
-            if (question)
74b1de
-                *question = 1;
74b1de
         } else if (!strcmp("commit", w)) {
74b1de
             command = GF_OP_CMD_COMMIT;
74b1de
         } else if (!strcmp("stop", w)) {
74b1de
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
74b1de
index a42e663..6b958bd 100644
74b1de
--- a/cli/src/cli-cmd-volume.c
74b1de
+++ b/cli/src/cli-cmd-volume.c
74b1de
@@ -2088,17 +2088,6 @@ cli_cmd_volume_remove_brick_cbk(struct cli_state *state,
74b1de
             "Remove-brick force will not migrate files from the "
74b1de
             "removed bricks, so they will no longer be available"
74b1de
             " on the volume.\nDo you want to continue?";
74b1de
-    } else if (command == GF_OP_CMD_START) {
74b1de
-        question =
74b1de
-            "It is recommended that remove-brick be run with"
74b1de
-            " cluster.force-migration option disabled to prevent"
74b1de
-            " possible data corruption. Doing so will ensure that"
74b1de
-            " files that receive writes during migration will not"
74b1de
-            " be migrated and will need to be manually copied"
74b1de
-            " after the remove-brick commit operation. Please"
74b1de
-            " check the value of the option and update accordingly."
74b1de
-            " \nDo you want to continue with your current"
74b1de
-            " cluster.force-migration settings?";
74b1de
     }
74b1de
 
74b1de
     if (!brick_count) {
74b1de
-- 
74b1de
1.8.3.1
74b1de