Package: autofs
Version: 5.0.7-3
Severity: normal

Dear Maintainer,

   * What led up to the situation?
Upgraded from squeeze to wheezy. 
   * What was the outcome of this action?
With squeeze (and lenny) I was able to use one automount map via ldap to 
nfsmount fileserver:/home on client:/nfs/fileserver/home on remote boxes and 
locally on the fileserver itself. With wheezy on only the fileserver the 
incorrect directory ("/") is automounted. It appears that in trying to be 
"efficient" and using bind mounts autofs is ignoring the fsid parameter in 
/etc/exports.
   * What outcome did you expect instead?
Like remote clients the fileserver should be able to use the same map and get 
/home automounted.

Thanks,
Chris

$ grep fsid /etc/exports
/home            
192.168.1.0/24(ro,fsid=0,no_root_squash,subtree_check,insecure,crossmnt)

On a client I see the expected directories:
$ ls /nfs/fileserver/home
chrisd  fai  lindad  mythtv  svn  tftp  www
$ mount | egrep auto\|fileserver
ldap:ou=auto.nfs4,ou=autofs,dc=zoo on /nfs/fileserver type autofs 
(rw,relatime,fd=7,pgrp=4217,timeout=300,minproto=5,maxproto=5,indirect)
fileserver:/ on /nfs/fileserver/home type nfs4 
(rw,relatime,vers=4,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.28,minorversion=0,local_lock=none,addr=192.168.1.23)

Stopped autofs and restarted it in debug mode and issued the same commands on 
the fileserver and see "/" instead:
$ ls /nfs/fileserver/home
altroot  bin  boot  data  dev  disk  etc  home  initrd.img  lib  lib32  lib64  
media  mnt  nfs  opt  proc  root  run  sbin  selinux  srv  sys  tmp  usr  var  
vmlinuz
$ mount | egrep auto\|fileserver
ldap:ou=auto.nfs4,ou=autofs,dc=zoo on /nfs/fileserver type autofs 
(rw,relatime,fd=8,pgrp=22182,timeout=300,minproto=5,maxproto=5,indirect)
/dev/mapper/zoo-root2 on /nfs/fileserver/home type ext3 
(rw,relatime,errors=continue,barrier=1,data=ordered)

On the fileserver during the local mount:
# automount -f -d
Starting automounter version 5.0.7, master map auto.master
using kernel protocol version 5.02
lookup_nss_read_master: reading master ldap auto.master
parse_server_string: lookup(ldap): Attempting to parse LDAP information from 
string "auto.master".
parse_server_string: lookup(ldap): mapname auto.master
parse_ldap_config: lookup(ldap): ldap authentication configured with the 
following options:
parse_ldap_config: lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1, 
sasl_mech: (null)
parse_ldap_config: lookup(ldap): user: (null), secret: unspecified, client 
principal: (null) credential cache: (null)
parse_init: parse(sun): init gathered global options: (null)
spawn_mount: mtab link detected, passing -n to mount
spawn_umount: mtab link detected, passing -n to mount
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
do_bind: lookup(ldap): ldap simple bind returned 0
get_query_dn: lookup(ldap): query succeeded, no matches for 
(&(objectclass=nisMap)(nisMapName=auto.master))
get_query_dn: lookup(ldap): found query dn ou=auto.master,ou=autofs,dc=zoo
lookup_read_master: lookup(ldap): searching for "(objectclass=automount)" under 
"ou=auto.master,ou=autofs,dc=zoo"
lookup_read_master: lookup(ldap): examining entries
master_do_mount: mounting /nfs/fileserver
automount_path_to_fifo: fifo name /var/run/autofs.fifo-nfs-fileserver
lookup_nss_read_map: reading map ldap ldap:ou=auto.nfs4,ou=autofs,dc=zoo
parse_server_string: lookup(ldap): Attempting to parse LDAP information from 
string "ldap:ou=auto.nfs4,ou=autofs,dc=zoo".
parse_server_string: lookup(ldap): server "(default)", base dn 
"ou=auto.nfs4,ou=autofs,dc=zoo"
parse_ldap_config: lookup(ldap): ldap authentication configured with the 
following options:
parse_ldap_config: lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1, 
sasl_mech: (null)
parse_ldap_config: lookup(ldap): user: (null), secret: unspecified, client 
principal: (null) credential cache: (null)
parse_init: parse(sun): init gathered global options: (null)
spawn_mount: mtab link detected, passing -n to mount
spawn_umount: mtab link detected, passing -n to mount
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
do_bind: lookup(ldap): ldap simple bind returned 0
get_query_dn: lookup(ldap): query succeeded, no matches for (objectclass=nisMap)
get_query_dn: lookup(ldap): found query dn ou=auto.nfs4,ou=autofs,dc=zoo
read_one_map: lookup(ldap): searching for "(objectclass=automount)" under 
"ou=auto.nfs4,ou=autofs,dc=zoo"
do_get_entries: lookup(ldap): examining entries
do_get_entries: lookup(ldap): failed to get next entry for query 
(objectclass=automount)
read_one_map: lookup(ldap): done updating map
mounted indirect on /nfs/fileserver with timeout 300, freq 75 seconds
st_ready: st_ready(): state = 0 path /nfs/fileserver
ghosting enabled
handle_packet: type = 3
handle_packet_missing_indirect: token 17, name home, request pid 22200
attempting to mount entry /nfs/fileserver/home
lookup_mount: lookup(ldap): looking up home
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
do_bind: lookup(ldap): ldap simple bind returned 0
lookup_one: lookup(ldap): searching for 
"(&(objectclass=automount)(|(cn=home)(cn=/)(cn=\2A)))" under 
"ou=auto.nfs4,ou=autofs,dc=zoo"
lookup_one: lookup(ldap): getting first entry for cn="home"
lookup_one: lookup(ldap): examining first entry
lookup_mount: lookup(ldap): home -> -fstype=nfs4,no_root_squash fileserver:/
parse_mount: parse(sun): expanded entry: -fstype=nfs4,no_root_squash 
fileserver:/
parse_mount: parse(sun): gathered options: fstype=nfs4,no_root_squash
parse_mount: parse(sun): dequote("fileserver:/") -> fileserver:/
parse_mount: parse(sun): core of entry: options=fstype=nfs4,no_root_squash, 
loc=fileserver:/
sun_mount: parse(sun): mounting root /nfs/fileserver, mountpoint home, what 
fileserver:/, fstype nfs4, options no_root_squash
mount_mount: mount(nfs): root=/nfs/fileserver name=home what=fileserver:/, 
fstype=nfs4, options=no_root_squash
mount_mount: mount(nfs): nfs options="no_root_squash", nobind=0, nosymlink=0, 
ro=0
mount_mount: mount(nfs): calling mkdir_path /nfs/fileserver/home
mount_mount: mount(nfs): home is local, attempt bind mount
mount_mount: mount(bind): calling mkdir_path /nfs/fileserver/home
mount_mount: mount(bind): calling mount --bind -s  -o defaults / 
/nfs/fileserver/home
spawn_bind_mount: mtab link detected, passing -n to mount
mount_mount: mount(bind): mounted / type bind on /nfs/fileserver/home
dev_ioctl_send_ready: token = 17
mounted /nfs/fileserver/home

Additional possibly related packages:
$ dpkg -l | egrep 
"autofs|linux-image|nfs-kernel-server|unscd|nslcd|slapd|mount|idmap"
ii  autofs                                                      5.0.7-3         
                   amd64        kernel-based automounter for Linux
ii  autofs-ldap                                                 5.0.7-3         
                   amd64        LDAP map support for autofs
ii  libmount1                                                   2.20.1-5.3      
                   amd64        block device id library
ii  libnfsidmap2:amd64                                          0.25-4          
                   amd64        NFS idmapping library
ii  linux-image-3.2.0-4-amd64                                   3.2.41-2        
                   amd64        Linux 3.2 for 64-bit PCs
ii  linux-image-amd64                                           3.2+46          
                   amd64        Linux for 64-bit PCs (meta-package)
ii  mount                                                       2.20.1-5.3      
                   amd64        Tools for mounting and manipulating filesystems
ii  nfs-kernel-server                                           1:1.2.6-3       
                   amd64        support for NFS kernel server
ii  nslcd                                                       0.8.10-4        
                   amd64        Daemon for NSS and PAM lookups using LDAP
ii  slapd                                                       2.4.31-1+nmu2   
                   amd64        OpenLDAP server (slapd)
ii  unscd                                                       0.48-2          
                   amd64        Micro Name Service Caching Daemon

-- System Information:
Debian Release: 7.0
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_CA.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages autofs depends on:
ii  libc6              2.13-38
ii  libxml2            2.8.0+dfsg1-7+nmu1
ii  multiarch-support  2.13-38
ii  ucf                3.0025+nmu3

Versions of packages autofs recommends:
ii  kmod               9-3
ii  module-init-tools  9-3
ii  nfs-common         1:1.2.6-3

autofs suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to