Bug 1218565
| Summary: | `gluster volume heal <vol-name> split-brain' shows wrong usage | |||
|---|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Shruti Sampat <ssampat> | |
| Component: | replicate | Assignee: | Anuradha <atalur> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 3.7.0 | CC: | amukherj, bugs, gluster-bugs, smohan | |
| Target Milestone: | --- | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | glusterfs-3.7.2 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1223747 (view as bug list) | Environment: | ||
| Last Closed: | 2015-11-16 09:13: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: | 1186580, 1223747 | |||
Assigning it to Anuradha as she knows the fix. Patch for BZ 1218570 (http://review.gluster.org/11043 ) should fix this issue too. Moving bug state to post. Patch has been merged on 3.7 branch. Moving the bug state to modified. |
Description of problem: ------------------------ Running the following command shows wrong usage message - # gluster v heal <vol-name> split-brain Usage: /usr/sbin/glfsheal <VOLNAME> [bigger-file <FILE> | source-brick <HOSTNAME:BRICKNAME> [<FILE>] | split-brain-info] Volume heal failed. The usage above gives the name of the binary instead of the name and format of the command being run. Another thing to remove from the message is the `split-brain-info' option as that does not run with the command. See below - # gluster v heal <vol-name> split-brain split-brain-info Usage: volume heal <VOLNAME> [enable | disable | full |statistics [heal-count [replica <HOSTNAME:BRICKNAME>]] |info [healed | heal-failed | split-brain] |split-brain {bigger-file <FILE> |source-brick <HOSTNAME:BRICKNAME> [<FILE>]}] Version-Release number of selected component (if applicable): --------------------------------------------------------------- glusterfs-3.7.0alpha0-0.17.gited96153.el6.x86_64 How reproducible: ------------------ Always Steps to Reproduce: -------------------- 1. Run the following command and observe the usage message displayed - # gluster v heal <vol-name> split-brain Usage: /usr/sbin/glfsheal <VOLNAME> [bigger-file <FILE> | source-brick <HOSTNAME:BRICKNAME> [<FILE>] | split-brain-info] Volume heal failed. Actual results: ----------------- Usage displayed is incorrect because of the reasons explained above. Expected results: ------------------ Usage should be correctly displayed. Additional info: