Bug 764687 (GLUSTER-2955)

Summary: Mount fails silently
Product: [Community] GlusterFS Reporter: Sachidananda Urs <sac>
Component: coreAssignee: Anand Avati <aavati>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: amarts, chrisw, gluster-bugs
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: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sachidananda Urs 2011-05-28 16:16:24 UTC
In case of a typo in volume name, gluster mount fails silently with return value of 0.


root@odin:/opt/glusterfs/git/var/log/glusterfs# mount -t glusterfs odin:foo /mnt/drep/
root@odin:/opt/glusterfs/git/var/log/glusterfs# echo $?
0

log:

[2011-05-28 21:39:50.135584] E [glusterfsd-mgmt.c:628:mgmt_getspec_cbk] 0-glusterfs: failed to get the 'volume file' from server
[2011-05-28 21:39:50.135749] E [glusterfsd-mgmt.c:696:mgmt_getspec_cbk] 0-mgmt: failed to fetch volume file (key:foo)

===================

Would be better if error message is thrown on stderr with  return value greater than 0.

Comment 1 Amar Tumballi 2011-07-15 05:38:29 UTC
mount command issue is already fixed in master. Binary return value will be fixed with bug 762935

*** This bug has been marked as a duplicate of bug 1203 ***