Bug 1514683
| Summary: | Removal of bricks in volume isn't prevented if remaining brick doesn't contain all the files | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Nithya Balachandran <nbalacha> |
| Component: | distribute | Assignee: | Vishal Pandey <vpandey> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | high | ||
| Version: | mainline | CC: | amukherj, atumball, bkunal, bugs, ccalhoun, nbalacha, phil.coleman, rgowdapp, rhinduja, rhs-bugs, sheggodu, tdesala |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1344758 | Environment: | |
| Last Closed: | 2019-08-25 05:20:10 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: | 1344758 | ||
|
Description
Nithya Balachandran
2017-11-18 01:45:40 UTC
REVIEW: https://review.gluster.org/18801 (cli: WIP) posted (#2) for review on master by N Balachandran Explanation of the approach: In gf_cli_remove_brick: if (cmd == GF_OP_CMD_COMMIT) get the rebalance status Check the rebalance status for failed file migrations or in progress/failed rebalance. If either of these are found, do not commit the operation. Display a warning to the user asking them to retry the remove-brick after fixing the issue or use force to commit the operation anyway. The remove-brick commit and status operations use the 'count' in the dictionary differently. Remove-brick commit requires 'count' to get the brick count. Remove-brick status will increment and update the 'count' causing the rebalance status processing to go wrong So for now, for a remove-brick commit operation, the original 'count' is saved in 'tmp-count' in the dict before sending the status request. If the rebalance status indicates that the commit can go through, the value of 'count' in dict is updated to the value of 'tmp-count' before the commit request is sent. REVIEW: https://review.gluster.org/23111 (cli: Add warning for user before remove-brick commit) posted (#2) for review on master by Vishal Pandey REVIEW: https://review.gluster.org/23171 (cli: Add warning for user before remove-brick commit) posted (#1) for review on master by Vishal Pandey REVIEW: https://review.gluster.org/23171 (glusterd: Add warning and abort in case of failures in migration during remove-brick commit) merged (#8) on master by Atin Mukherjee |