Bug 764666 (GLUSTER-2934)

Summary: for glusterfs binary, -s option without --volfile-id will fail without any notice to user
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: coreAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: gluster-bugs, saurabh, vijay, vijaykumar, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: fuse
Documentation: --- CRM:
Verified Versions: release-3.3beta2 Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Amar Tumballi 2011-05-24 10:15:25 UTC
root@supernova:~# glusterfs -s localhost --debug /mnt/glusterfs 
[2011-05-24 15:33:26.616305] W [rpc-common.c:38:xdr_serialize_generic] (-->glusterfs(glusterfs_volfile_fetch+0xb5) [0x40916c] (-->glusterfs(mgmt_submit_request+0xe2) [0x4085e5] (-->/usr/local/lib/libgfxdr.so.0(xdr_from_getspec_req+0x3c) [0x7f6b12eed84e]))) 0-xdr: XDR encoding failed
[2011-05-24 15:33:26.616329] W [glusterfsd-mgmt.c:428:mgmt_submit_request] 0-: failed to create XDR payload
[2011-05-24 15:33:26.616345] E [glusterfsd-mgmt.c:753:mgmt_rpc_notify] 0-mgmt: failed to fetch volume file (key:(null))
[2011-05-24 15:33:26.616376] W [glusterfsd.c:700:cleanup_and_exit] (-->/usr/local/lib/libgfrpc.so.0(rpc_transport_notify+0x130) [0x7f6b13108ab4] (-->/usr/local/lib/libgfrpc.so.0(rpc_clnt_notify+0x339) [0x7f6b1310c550] (-->glusterfs() [0x4092fd]))) 0-: received signum (0), shutting down
[2011-05-24 15:33:26.616410] I [fuse-bridge.c:3688:fini] 0-fuse: Unmounting '/mnt/glusterfs'.


Also as per "Emmanuel Dreyfus <manu>", it crashes in NetBSD. Need to handle this

For now, we will have the parsing code itself to handle this with error message telling '--volfile-id' option is required with '-s'.

Comment 1 Amar Tumballi 2011-05-26 03:39:09 UTC
Patch sent for review

Comment 2 Anand Avati 2011-05-31 13:10:45 UTC
PATCH: http://patches.gluster.com/patch/7334 in master (glusterfsd: prevent giving '-s' option without '--volfile-id' option)

Comment 3 Saurabh 2011-07-04 03:19:14 UTC
changing the target milestone to 3.3.0 after discussion with the developer.

Comment 4 Vijaykumar 2011-09-05 08:50:58 UTC
It works fine with following error.

root@openstack2:~# glusterfs -s localhost --debug /home/gluster/mnt/vol/
[2011-09-05 17:17:34.718878] C [glusterfsd.c:1096:parse_cmdline] 0-glusterfs: ERROR: '--volfile-id' is mandatory if '-s' OR '--volfile-server' option is given