Bug 1429200

Summary: disallow increasing replica count for arbiter volumes
Product: [Community] GlusterFS Reporter: Ravishankar N <ravishankar>
Component: arbiterAssignee: Ravishankar N <ravishankar>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, bugs
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.11.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1429773 (view as bug list) Environment:
Last Closed: 2017-05-30 18:46:48 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: 1429773    

Description Ravishankar N 2017-03-05 15:49:12 UTC
Problem: add-brick command to increase replica count in an arbiter
    volume succeeds, causing undesirable effects like the 4th brick being
    loaded with the arbiter xlator, the 3rd one losing the arbiter xlator
    (when the brick process is restarted), arbitration logic in afr going
    for a toss etc.

    Fix: Arbiter configuration should always be a replica 3 volume (of
    which 3rd brick is arbiter). Hence disallow increasing replica count for
    arbiter volume configurations.

Comment 1 Worker Ant 2017-03-05 15:49:52 UTC
REVIEW: https://review.gluster.org/16845 (glusterd: disallow increasing replica count for arbiter volumes) posted (#1) for review on master by Ravishankar N (ravishankar)

Comment 2 Worker Ant 2017-03-06 05:59:50 UTC
REVIEW: https://review.gluster.org/16845 (glusterd: disallow increasing replica count for arbiter volumes) posted (#2) for review on master by Ravishankar N (ravishankar)

Comment 3 Worker Ant 2017-03-06 13:26:57 UTC
COMMIT: https://review.gluster.org/16845 committed in master by Atin Mukherjee (amukherj) 
------
commit b7ba77ab3ffb641d06223f7af5145d3d670b032a
Author: Ravishankar N <ravishankar>
Date:   Mon Feb 27 13:51:09 2017 +0530

    glusterd: disallow increasing replica count for arbiter volumes
    
    Problem: add-brick command to increase replica count in an arbiter
    volume succeeds, causing undesirable effects like the 4th brick being
    loaded with the arbiter xlator, the 3rd one losing the arbiter xlator
    (when the brick process is restarted), arbitration logic in afr going
    for a toss etc.
    
    Fix: Arbiter configuration should always be a replica 3 volume (of
    which 3rd brick is arbiter). Hence disallow increasing replica count for
    arbiter volume configurations.
    
    Change-Id: I9fe4edac880d0f711e6d44324ad5562974e53e51
    BUG: 1429200
    Signed-off-by: Ravishankar N <ravishankar>
    Reviewed-on: https://review.gluster.org/16845
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Atin Mukherjee <amukherj>

Comment 4 Shyamsundar 2017-05-30 18:46:48 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-3.11.0, please open a new bug report.

glusterfs-3.11.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] http://lists.gluster.org/pipermail/announce/2017-May/000073.html
[2] https://www.gluster.org/pipermail/gluster-users/