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