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