Bug 764666 (GLUSTER-2934) - for glusterfs binary, -s option without --volfile-id will fail without any notice to user
Summary: for glusterfs binary, -s option without --volfile-id will fail without any no...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2934
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-24 10:15 UTC by Amar Tumballi
Modified: 2015-12-01 16:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: fuse
Documentation: ---
CRM:
Verified Versions: release-3.3beta2


Attachments (Terms of Use)

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


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