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