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:
Upstream patch: https://review.gluster.org/#/c/glusterfs/+/21136/
Verified the fix on 3.4.z Batch 2 update. # rpm -qa | grep gluster glusterfs-api-3.12.2-27.el7rhgs.x86_64 tendrl-gluster-integration-1.5.4-14.el7rhgs.noarch glusterfs-client-xlators-3.12.2-27.el7rhgs.x86_64 glusterfs-events-3.12.2-27.el7rhgs.x86_64 gluster-nagios-addons-0.2.10-2.el7rhgs.x86_64 glusterfs-fuse-3.12.2-27.el7rhgs.x86_64 I am able to get the warning "Replica 2 volumes are prone to split-brain. Use Arbiter or Replica 3 to avoid this." for the below scenarios 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 Hence changing this to verified
Test-coverage is achieved by adding necessary "split-brain prone" warning check on existing remove-brick/add brick test-cases.
Updated the Doc text field. Kindly review for technical accuracy.
(In reply to Anjana from comment #14) > Updated the Doc text field. Kindly review for technical accuracy. LGTM.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3827