| Summary: | rest api: Able to delete bricks while brick migration is occuring | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | Dustin Tsang <dtsang> |
| Component: | rhsc-sdk | Assignee: | Shubhendu Tripathi <shtripat> |
| Status: | CLOSED NOTABUG | QA Contact: | Dustin Tsang <dtsang> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.1 | CC: | dpati, dtsang, knarra, mmahoney, mmccune, pprakash, rhs-bugs, ssampat |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-13 11:22:41 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: | |
|
Description
Dustin Tsang
2013-12-11 22:27:24 UTC
If the migration is already completed on those two bricks, then deletion should succeed. Dustin, can you confirm, whether migration was completed on those two bricks, before you fired the delete API on them? Running gluster vol status showed that rebalance was in progress before deletion had occurred. Dustin, This is an expected behaviour, because the REST API is using the Force option by default. So, i am moving the bug to CLOSED state, This is what the Gluster team told us... 'remove-brick commit[force]' will remove the specified brick(s) even if there is an ongoing rebalance. Remove-brick has checks to prevent this, but the force option will cause the checks to be overridden. This is unsafe behavior IMO, but it is what is happening now. |