Bug 1447271
| Summary: | Remove brick does not work when run on replica volumes | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Darshan <dnarayan> |
| Component: | gdeploy | Assignee: | Sachidananda Urs <surs> |
| Status: | CLOSED ERRATA | QA Contact: | Manisha Saini <msaini> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.2 | CC: | amukherj, rhinduja, rhs-bugs, smohan, storage-qa-internal |
| Target Milestone: | --- | ||
| Target Release: | RHGS 3.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | gdeploy-2.0.2-6 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-09-21 04:49:50 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: | 1417151 | ||
|
Description
Darshan
2017-05-02 09:24:41 UTC
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 |