190130
From 704bf84d432e1eea1534e35ee27d4116a7273146 Mon Sep 17 00:00:00 2001
190130
From: Sanju Rakonde <srakonde@redhat.com>
190130
Date: Thu, 4 Jun 2020 16:15:35 +0530
190130
Subject: [PATCH 401/449] cli: change the warning message
190130
190130
while creating the replica 2 volume or converting
190130
a volume to replica 2 volume, we issue a warning
190130
saying "replica 2 volumes are prone to split brain".
190130
As the support for replica 2 volumes has been deprecated,
190130
warning message should be changed accordingly to reflect
190130
the same.
190130
190130
Label: DOWNSTREAM ONLY
190130
190130
BUG: 1763124
190130
Change-Id: If55e5412cda2e4a21a6359492d8d704dd702530d
190130
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
190130
Reviewed-on: https://code.engineering.redhat.com/gerrit/202348
190130
Tested-by: RHGS Build Bot <nigelb@redhat.com>
190130
Reviewed-by: Mohit Agrawal <moagrawa@redhat.com>
190130
Reviewed-by: Ravishankar Narayanankutty <ravishankar@redhat.com>
190130
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
190130
---
190130
 cli/src/cli-cmd-parser.c | 16 ++++++++--------
190130
 1 file changed, 8 insertions(+), 8 deletions(-)
190130
190130
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
190130
index 5e7ce53..7446b95 100644
190130
--- a/cli/src/cli-cmd-parser.c
190130
+++ b/cli/src/cli-cmd-parser.c
190130
@@ -603,8 +603,8 @@ cli_cmd_volume_create_parse(struct cli_state *state, const char **words,
190130
             if (replica_count == 2) {
190130
                 if (strcmp(words[wordcount - 1], "force")) {
190130
                     question =
190130
-                        "Replica 2 volumes are prone"
190130
-                        " to split-brain. Use "
190130
+                        "Support for replica 2 volumes stands deprecated as "
190130
+                        "they are prone to split-brain. Use "
190130
                         "Arbiter or Replica 3 to "
190130
                         "avoid this.\n"
190130
                         "Do you still want to "
190130
@@ -1817,9 +1817,9 @@ cli_cmd_volume_add_brick_parse(struct cli_state *state, const char **words,
190130
         if (count == 2) {
190130
             if (strcmp(words[wordcount - 1], "force")) {
190130
                 question =
190130
-                    "Replica 2 volumes are prone to "
190130
-                    "split-brain. Use Arbiter or "
190130
-                    "Replica 3 to avaoid this. See: "
190130
+                    "Support for replica 2 volumes stands deprecated as they "
190130
+                    "are prone to split-brain. Use Arbiter or "
190130
+                    "Replica 3 to avoid this. See: "
190130
                     "http://docs.gluster.org/en/latest/Administrator%20Guide/"
190130
                     "Split%20brain%20and%20ways%20to%20deal%20with%20it/."
190130
                     "\nDo you still want to continue?\n";
190130
@@ -2098,9 +2098,9 @@ cli_cmd_volume_remove_brick_parse(struct cli_state *state, const char **words,
190130
         if (count == 2) {
190130
             if (strcmp(words[wordcount - 1], "force")) {
190130
                 ques =
190130
-                    "Replica 2 volumes are prone to "
190130
-                    "split-brain. Use Arbiter or Replica 3 "
190130
-                    "to avaoid this. See: "
190130
+                    "Support for replica 2 volumes stands deprecated as they "
190130
+                    "are prone to split-brain. Use Arbiter or Replica 3 "
190130
+                    "to avoid this. See: "
190130
                     "http://docs.gluster.org/en/latest/Administrator%20Guide/"
190130
                     "Split%20brain%20and%20ways%20to%20deal%20with%20it/."
190130
                     "\nDo you still want to continue?\n";
190130
-- 
190130
1.8.3.1
190130