Bug 1620116

Summary: Gluster cli doesn't show an error message when creating a disperse volume using IP addresses
Product: [Community] GlusterFS Reporter: jimmybob-leon
Component: cliAssignee: bugs <bugs>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1CC: amukherj, bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-05 02:21:07 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:

Description jimmybob-leon 2018-08-22 13:17:19 UTC
Description of problem:
Gluster cli doesn't throw an error and just shows the help for gluster volume create... When trying to create a volume with IP adresses. 




Version-Release number of selected component (if applicable): 4.1 Latest gluster cli server


How reproducible:

i.e. gluster volume create gv0 disperse 192.168.0.2:/home/gluster

Gives the gluster volume create help page out. And doesn't say, you need atleast two arguments. 


Steps to Reproduce:
1. gluster volume create gv0 disperse 192.168.0.2:/home/gluster



Actual results:
Gives the gluster volume create help page out. And doesn't say, you need atleast two arguments. 

Expected results:
This command requires atleast two arguments...

Additional info:
Ubuntu 18.04 LTS Azure VM

Gluster log > cli-cmd-parser.c:781:cli_cmd_volume_create_parse] 0-cli: Unable to parse create volume CLI

Comment 1 Atin Mukherjee 2018-10-05 02:21:07 UTC
In case of an incomplete command, the cli throws up a general usage of the command. As of now, it doesn't explicitly mention what's missing and that's how it's been designed. Technically it's not a bug.

For eg :

root@50f5b3253050:/home/rhs-glusterfs# gluster v create

Usage:
volume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT> [arbiter <COUNT>]] [disperse [<COUNT>]] [disperse-data <COUNT>] [redundancy <COUNT>] [transport <tcp|rdma|tcp,rdma>] <NEW-BRICK>?<vg_name>... [force]