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