Description of problem: Currently changing replica count of a volume using gdeploy is not possible. Gdeploy should support this. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: Gdeploy is being used to perform all gluster related actions in tendrl project. Without this addition tendrl will also not be able to support replica count chan ge for a volume.
This is because of missing replica variable in the playbook. diff --git a/playbooks/gluster-remove-brick.yml b/playbooks/gluster-remove-brick.yml index 53c1834..d668741 100644 --- a/playbooks/gluster-remove-brick.yml +++ b/playbooks/gluster-remove-brick.yml @@ -10,3 +10,4 @@ bricks="{{ old_bricks }}" replica_count="{{ replica_count }}" state="{{ state }}" + replica="{{ replica }}" Adding replica line should fix it.
Commit: https://github.com/gluster/gdeploy/commit/ae4b9df should fix the issue.
Same changes are needed with add-brick as well. This is related issue.
Commit: https://github.com/gluster/gdeploy/commit/335e0de should address the Comment 5.
Tried with latest build. remove brick seems to have some issue. Moving it to ASSIGNED state
Commit https://github.com/gluster/gdeploy/commit/10af962 fixes the issue
Verified this bug on gdeploy-2.0.2-6.el7rhgs.noarch Remove brick Steps: 1.Create 1 x 8 = 8 replicate volume 2.Change replica-count to 7 by removing a brick via gdeploy [hosts] dhcp37-102.lab.eng.blr.redhat.com dhcp37-92.lab.eng.blr.redhat.com dhcp37-119.lab.eng.blr.redhat.com dhcp37-122.lab.eng.blr.redhat.com [volume] action=remove-brick volname=10.70.37.102:ganesha_replica bricks=dhcp37-122.lab.eng.blr.redhat.com:/gluster/brick1/5 replica_count=7 state=force replica=yes Add brick 1.Again convert replica 7 to replica 8 by adding a brick via gdeploy [hosts] dhcp37-102.lab.eng.blr.redhat.com dhcp37-92.lab.eng.blr.redhat.com dhcp37-119.lab.eng.blr.redhat.com dhcp37-122.lab.eng.blr.redhat.com [volume] action=add-brick volname=10.70.37.102:ganesha_replica bricks=dhcp37-122.lab.eng.blr.redhat.com:/gluster/brick1/5 replica_count=8 state=force replica=yes
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-2017:2777