Blame SPECS/0186-cli-Remove-brick-warning-seems-unnecessary.patch

Packit Service 89bf3d
From be925e84edcecd879e953bdb68c10f98825dba53 Mon Sep 17 00:00:00 2001
Packit Service 89bf3d
From: Shwetha K Acharya <sacharya@redhat.com>
Packit Service 89bf3d
Date: Mon, 3 Jun 2019 18:05:24 +0530
Packit Service 89bf3d
Subject: [PATCH 186/192] cli: Remove-brick warning seems unnecessary
Packit Service 89bf3d
Packit Service 89bf3d
As force-migration option is disabled by default,
Packit Service 89bf3d
the warning seems unnessary.
Packit Service 89bf3d
Packit Service 89bf3d
Rephrased the warning to make best sense out of it.
Packit Service 89bf3d
Packit Service 89bf3d
>fixes: bz#1712668
Packit Service 89bf3d
>Change-Id: Ia18c3c5e7b3fec808fce2194ca0504a837708822
Packit Service 89bf3d
>Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
Packit Service 89bf3d
Packit Service 89bf3d
backport of https://review.gluster.org/#/c/glusterfs/+/22805/
Packit Service 89bf3d
Packit Service 89bf3d
Bug: 1708183
Packit Service 89bf3d
Change-Id: Ia18c3c5e7b3fec808fce2194ca0504a837708822
Packit Service 89bf3d
Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
Packit Service 89bf3d
Reviewed-on: https://code.engineering.redhat.com/gerrit/173447
Packit Service 89bf3d
Tested-by: RHGS Build Bot <nigelb@redhat.com>
Packit Service 89bf3d
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
Packit Service 89bf3d
---
Packit Service 89bf3d
 cli/src/cli-cmd-volume.c | 17 +++++++++--------
Packit Service 89bf3d
 1 file changed, 9 insertions(+), 8 deletions(-)
Packit Service 89bf3d
Packit Service 89bf3d
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
Packit Service 89bf3d
index 564aef7..a42e663 100644
Packit Service 89bf3d
--- a/cli/src/cli-cmd-volume.c
Packit Service 89bf3d
+++ b/cli/src/cli-cmd-volume.c
Packit Service 89bf3d
@@ -2090,14 +2090,15 @@ cli_cmd_volume_remove_brick_cbk(struct cli_state *state,
Packit Service 89bf3d
             " on the volume.\nDo you want to continue?";
Packit Service 89bf3d
     } else if (command == GF_OP_CMD_START) {
Packit Service 89bf3d
         question =
Packit Service 89bf3d
-            "Running remove-brick with cluster.force-migration"
Packit Service 89bf3d
-            " enabled can result in data corruption. It is safer"
Packit Service 89bf3d
-            " to disable this option so that files that receive "
Packit Service 89bf3d
-            "writes during migration are not migrated.\nFiles "
Packit Service 89bf3d
-            "that are not migrated can then be manually copied "
Packit Service 89bf3d
-            "after the remove-brick commit operation.\nDo you "
Packit Service 89bf3d
-            "want to continue with your current "
Packit Service 89bf3d
-            "cluster.force-migration settings?";
Packit Service 89bf3d
+            "It is recommended that remove-brick be run with"
Packit Service 89bf3d
+            " cluster.force-migration option disabled to prevent"
Packit Service 89bf3d
+            " possible data corruption. Doing so will ensure that"
Packit Service 89bf3d
+            " files that receive writes during migration will not"
Packit Service 89bf3d
+            " be migrated and will need to be manually copied"
Packit Service 89bf3d
+            " after the remove-brick commit operation. Please"
Packit Service 89bf3d
+            " check the value of the option and update accordingly."
Packit Service 89bf3d
+            " \nDo you want to continue with your current"
Packit Service 89bf3d
+            " cluster.force-migration settings?";
Packit Service 89bf3d
     }
Packit Service 89bf3d
 
Packit Service 89bf3d
     if (!brick_count) {
Packit Service 89bf3d
-- 
Packit Service 89bf3d
1.8.3.1
Packit Service 89bf3d