Bug 1238181 - cli : "Usage:" of gluster commands show replica in case of disperse volume
Summary: cli : "Usage:" of gluster commands show replica in case of disperse volume
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: cli
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Muthu Vigneshwaran
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-01 11:09 UTC by Ashish Pandey
Modified: 2018-08-29 03:35 UTC (History)
3 users (show)

Fixed In Version: glusterfs-4.1.3 (or later)
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-29 03:35:31 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Ashish Pandey 2015-07-01 11:09:42 UTC
Description of problem:
if provided wrong option for gluster command for  disperse volume, Usage displays about replica. Could mislead customers. 


[root@aspandey ~]# gluster volume remove-brick gfs  aspandey:/brick/dist/A11 aspandey:/brick/dist/A12 aspandey:/brick/dist/A13 aspandey:/brick/dist/A14 aspandey:/brick/dist/A15 aspandey:/brick/dist/A16 sta
Usage: volume remove-brick <VOLNAME> [replica <COUNT>] <BRICK> ... <start|stop|status|commit|force>
[root@aspandey ~]# 

[root@aspandey ~]# gluster v heal
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>]}]

[root@aspandey ~]# gluster v add-brick gfs
Usage: volume add-brick <VOLNAME> [<stripe|replica> <COUNT>] <NEW-BRICK> ... [force]

Version-Release number of selected component (if applicable):
Usage: volume add-brick <VOLNAME> [<stripe|replica> <COUNT>] <NEW-BRICK> ... [force]
[root@aspandey ~]# gluster --version
glusterfs 3.8dev built on Jun 30 2015 18:11:45
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
[root@aspandey ~]#

How reproducible:
100%

Steps to Reproduce:
1.Create disperse volume
2.Provide wrong options for the above commands for disperse volumes

Actual results:
wrong usage information
Expected results:
Usage:  must contain the information about all or targeted "volume type"


Additional info:

Comment 1 Worker Ant 2016-09-21 12:46:00 UTC
REVIEW: http://review.gluster.org/15540 (cli : Displaying the proper error message for remove-brick) posted (#1) for review on master by Muthu Vigneshwaran

Comment 2 Worker Ant 2016-09-22 07:01:59 UTC
REVIEW: http://review.gluster.org/15540 (cli : Displaying the proper error message for remove-brick) posted (#2) for review on master by Muthu Vigneshwaran

Comment 3 Amar Tumballi 2018-08-29 03:35:31 UTC
This update is done in bulk based on the state of the patch and the time since last activity. If the issue is still seen, please reopen the bug.


Note You need to log in before you can comment on or make changes to this bug.