2017-05-28 00:57 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006101CentOS-6autofspublic2012-11-27 19:05
Reporterallpoints 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
Product Version6.3 
Target VersionFixed in Version 
Summary0006101: autofs attempts to mount locally exported NFSv4 file systems using bind mount
DescriptionBind mounting local exports works for NFSv3 as the local path can be determined from the NFS arguments. However, NFSv4 exports a virtual file tree. The automounter can not correctly determine which local directory to bind mount at the target location.

It would appear previous versions of autofs respected the "-fstype=nfs4" configuration. (See https://bugzilla.redhat.com/show_bug.cgi?id=153670)

Note: As a work-around, specifying the NFS port in the map file causes the automounter to do the right thing. I expect the fix here is to add (restore?) a similar check for "nfs4".
Steps To ReproduceSetup a server to export home directories from /export/home and configure autofs to mount those home directories under /home. See the attached configuration files.

The automounter will attempt to bind mount /home/username to /home/username. This is obviously a problem. See the attached debug output.
TagsNo tags attached.
Attached Files
  • ? file icon auto.home (103 bytes) 2012-11-27 19:05
  • ? file icon exports (144 bytes) 2012-11-27 19:05 -
    /export 10.0.0.0/8(ro,sync,insecure,root_squash,no_subtree_check,fsid=0)
    /export/home 10.0.0.0/8(rw,sync,insecure,root_squash,no_subtree_check)
    
    ? file icon exports (144 bytes) 2012-11-27 19:05 +
  • txt file icon DebugOutput.txt (2,296 bytes) 2012-11-27 19:05 -
    Nov 26 19:45:30 bogushost automount[1100]: handle_packet: type = 3
    Nov 26 19:45:30 bogushost automount[1100]: handle_packet_missing_indirect: token 12, name testuser, request pid 1282
    Nov 26 19:45:30 bogushost automount[1100]: attempting to mount entry /home/testuser
    Nov 26 19:45:30 bogushost automount[1100]: lookup_mount: lookup(file): looking up testuser
    Nov 26 19:45:30 bogushost automount[1100]: lookup_mount: lookup(file): testuser -> -fstype=nfs4,soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev  bogushost.bogusdomain.com:/home/&
    Nov 26 19:45:30 bogushost automount[1100]: parse_mount: parse(sun): expanded entry: -fstype=nfs4,soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev  bogushost.bogusdomain.com:/home/testuser
    Nov 26 19:45:30 bogushost automount[1100]: parse_mount: parse(sun): gathered options: fstype=nfs4,soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev
    Nov 26 19:45:30 bogushost automount[1100]: parse_mount: parse(sun): dequote("bogushost.bogusdomain.com:/home/testuser") -> bogushost.bogusdomain.com:/home/testuser
    Nov 26 19:45:30 bogushost automount[1100]: parse_mount: parse(sun): core of entry: options=fstype=nfs4,soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev, loc=bogushost.bogusdomain.com:/home/testuser
    Nov 26 19:45:30 bogushost automount[1100]: sun_mount: parse(sun): mounting root /home, mountpoint testuser, what bogushost.bogusdomain.com:/home/testuser, fstype nfs4, options soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev
    Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(nfs): root=/home name=testuser what=bogushost.bogusdomain.com:/home/testuser, fstype=nfs4, options=soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev
    Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(nfs): nfs options="soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev", nosymlink=0, ro=0
    Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(nfs): calling mkdir_path /home/testuser
    Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(nfs): testuser is local, attempt bind mount
    Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(bind): calling mkdir_path /home/testuser
    Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(bind): calling mount --bind -s  -o defaults /home/testuser /home/testuser
    
    txt file icon DebugOutput.txt (2,296 bytes) 2012-11-27 19:05 +

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2012-11-27 19:05 allpoints New Issue
2012-11-27 19:05 allpoints File Added: auto.home
2012-11-27 19:05 allpoints File Added: exports
2012-11-27 19:05 allpoints File Added: DebugOutput.txt
+Issue History