Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1627044

Summary: Converting to replica 2 volume is not throwing warning
Product: [Community] GlusterFS Reporter: Karthik U S <ksubrahm>
Component: replicateAssignee: Karthik U S <ksubrahm>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, nchilaka, pasik, ravishankar, rhs-bugs, sankarshan, storage-qa-internal, vavuthu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-5.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1579758 Environment:
Last Closed: 2018-10-23 15:19:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1579758    

Description Karthik U S 2018-09-10 10:26:31 UTC
+++ This bug was initially created as a clone of Bug #1579758 +++

Description of problem:

Converting to replica 2 volume is not throwing warning

Version-Release number of selected component (if applicable):

glusterfs-3.12.2-10.el7rhgs.x86_64

How reproducible:

Always

Below Scenarios was not throwing Warning while converting to replica 2

1) while converting distribute only to x2
2) while removing bricks from x3 to convert to x2
3) while adding/removing bricks in x2 configurations

Actual results:

Doesn't show any warning while doing above scenarios

Expected results:

Expecting to throw warning like below

" Replica 2 volumes are prone to split-brain. Use Arbiter or Replica 3 to avoid this.
Do you still want to continue?
 (y/n) y
"

Additional info:

Comment 1 Worker Ant 2018-09-10 10:32:12 UTC
REVIEW: https://review.gluster.org/21136 (cli: Add warning message while converting to replica 2 configuration) posted (#1) for review on master by Karthik U S

Comment 2 Worker Ant 2018-09-11 02:36:09 UTC
COMMIT: https://review.gluster.org/21136 committed in master by "Atin Mukherjee" <amukherj> with a commit message- cli: Add warning message while converting to replica 2 configuration

Currently while creating replica 2 volume we display a warning message
of ending up in split-brain. But while converting an existing volume
from other configuration to replica 2 by add-brick or remove-brick
operations we do not show any such messages.
With this fix in add-brick and remove-brick cases also we will display
the same warning message and prompt for confirmation if the configuration
changes to replica 2.

Change-Id: Ifc4ed6994a087d2403894f4e743c4eb41633276b
fixes: bz#1627044
Signed-off-by: karthik-us <ksubrahm>

Comment 3 Shyamsundar 2018-10-23 15:19:00 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-5.0, please open a new bug report.

glusterfs-5.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://lists.gluster.org/pipermail/announce/2018-October/000115.html
[2] https://www.gluster.org/pipermail/gluster-users/