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