Bug 762775 (GLUSTER-1043)

Summary: autofs access hangs
Product: [Community] GlusterFS Reporter: Csaba Henk <csaba>
Component: coreAssignee: Csaba Henk <csaba>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 3.0.5CC: amarts, gluster-bugs, tejas
Target Milestone: ---   
Target Release: ---   
Hardware: All   
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:

Comment 1 Csaba Henk 2010-07-02 10:55:15 UTC
Setting up autofs as follows:

$ cat /etc/auto.master
/auto/gfs /etc/auto.glusterfs 
$ cat /etc/auto.glusterfs
simple     -fstype=glusterfs,log-level=DEBUG,log-file=/tmp/g.log               :/etc/glusterfs/simple.vol
$ cat /etc/glusterfs.simple.vol
volume ex0
  type storage/posix
  option directory /tmp/gex0
end-volume

and then firing up automount results in "ls /etc/auto/simple" hanging.

Reproduced on Ubuntu 10.4 and Arch 2010.5.

Comment 2 Csaba Henk 2010-07-24 06:15:28 UTC
Glusterfs-vs-autofs problems were noticed long ago. It was found out that the problem is with daemonization -- ie. original glusterfs process terminates prior to mounting completed. With autofs4, it was sufficient to have the original process wait for mounting (cf. commit 7e6c9643); with autofs5, this is not enough, autofs5 wants the process spawned by it to do the mount. 

The refacorization of main() done for dynamic volume management solves this issue nicely, by putting fuse init before daemonization. So in mainline, this is FIXED.

For release-3.0 issue is present, patch is sent to fix it up.

Comment 3 Anand Avati 2010-07-29 03:58:21 UTC
PATCH: http://patches.gluster.com/patch/3890 in release-3.0 (make glusterfs work with autofs5)

Comment 4 Amar Tumballi 2010-10-05 06:07:42 UTC
Autofs works fine on 3.1 branch. will be closing the bug.