Bug 1062564

Summary: gluster cli : Incorrect grammar in the "Usage" of "rebalance" command
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: spandura
Component: glusterdAssignee: Susant Kumar Palai <spalai>
Status: CLOSED CURRENTRELEASE QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: nlevinki, spalai, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1071411 (view as bug list) Environment:
Last Closed: 2015-11-27 12:00:45 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: 1071411    

Description spandura 2014-02-07 10:22:32 UTC
Description of problem:
==========================
Currently Usage of rebalance command is : " Usage: volume rebalance <VOLNAME> [fix-layout] {start|stop|status} [force] "

1) "force" option can be only used with "start" . 

2) "fix-layout" option can be only used with "start" 

But the current usage says "fix-layout" operation can be stopped and can get the status of "fix-layout" operation and also "stop" ,"status" operation can be used with "force" option which is not correct. 

Version-Release number of selected component (if applicable):
===============================================================
glusterfs 3.4.0.59rhs built on Feb  4 2014 08:44:13


Steps to Reproduce:
=========================
1. root@rhs-client12 [Feb-07-2014- 5:06:46] >gluster v rebalance exporter stop force
Usage: volume rebalance <VOLNAME> [fix-layout] {start|stop|status} [force]

2. root@rhs-client12 [Feb-07-2014- 5:07:37] >gluster v rebalance exporter status force
Usage: volume rebalance <VOLNAME> [fix-layout] {start|stop|status} [force]

3. root@rhs-client11 [Feb-07-2014- 5:21:41] >gluster v rebalance exporter fix-layout status
Usage: volume rebalance <VOLNAME> [fix-layout] {start|stop|status} [force]
root@rhs-client11 [Feb-07-2014- 5:21:44] >

4. root@rhs-client11 [Feb-07-2014- 5:21:52] >gluster v rebalance exporter fix-layout stop
Usage: volume rebalance <VOLNAME> [fix-layout] {start|stop|status} [force]
root@rhs-client11 [Feb-07-2014- 5:22:07] >