FS#38379 - [autofs] -hosts map option does not work with version 5.0.8

Attached to Project: Community Packages
Opened by Alexander Grothe (seahawk1986) - Saturday, 04 January 2014, 11:03 GMT
Last edited by Balló György (City-busz) - Friday, 10 January 2014, 12:14 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After installing autofs 5.0.8 mounting NFS-shares using the -hosts map option ( https://wiki.archlinux.org/index.php/Autofs#NFS_network_mounts ) does not work anymore. Reverting back to autofs 5.0.7-3 or using a workaround like replacing
/net -hosts --timeout=60
by
/net /etc/autofs/auto.net --timeout=60
fixes the problem

In the redhat Bugtracker I have found a similar problem (the fedora 5.0.7 package seems to use some autofs 5.0.8 patches): https://bugzilla.redhat.com/show_bug.cgi?id=1038356

Additional info:
* package version: autofs-5.0.8-1
* line in auto.master:
/net -hosts --timeout=60


Steps to reproduce:
Start autofs with a "-hosts" map in auto.master (see example above) and try to access a nfs share, either by hostname or IP address:

Debug log:
Jan 04 10:59:23 cubier systemd[1]: Started Automounts filesystems on demand.
Jan 04 10:59:35 cubier automount[494]: handle_packet: type = 3
Jan 04 10:59:35 cubier automount[494]: handle_packet_missing_indirect: token 1, name VDR, request pid 508
Jan 04 10:59:35 cubier automount[494]: attempting to mount entry /net/VDR
Jan 04 10:59:35 cubier automount[494]: lookup(hosts): can't find path in hosts map /net/VDR
Jan 04 10:59:35 cubier automount[494]: lookup_mount: lookup(hosts): lookup failed - update exports list
Jan 04 10:59:35 cubier automount[494]: lookup_mount: lookup(hosts): VDR -> (null)
Jan 04 10:59:35 cubier automount[494]: get_exports: lookup(hosts): fetchng export list for VDR
Jan 04 10:59:38 cubier automount[494]: get_exports: lookup(hosts): exports lookup failed for VDR
Jan 04 10:59:38 cubier automount[494]: key "VDR" not found in map source(s).
Jan 04 10:59:38 cubier automount[494]: dev_ioctl_send_fail: token = 1
Jan 04 10:59:38 cubier automount[494]: handle_packet: type = 3
Jan 04 10:59:38 cubier automount[494]: handle_packet_missing_indirect: token 2, name VDR, request pid 508
Jan 04 10:59:38 cubier automount[494]: dev_ioctl_send_fail: token = 2
Jan 04 10:59:38 cubier automount[494]: handle_packet: type = 3
Jan 04 10:59:38 cubier automount[494]: handle_packet_missing_indirect: token 3, name VDR, request pid 508
Jan 04 10:59:38 cubier automount[494]: dev_ioctl_send_fail: token = 3
Jan 04 10:59:38 cubier automount[494]: failed to mount /net/VDR
Jan 04 10:59:39 cubier automount[494]: st_expire: state 1 path /net
Jan 04 10:59:39 cubier automount[494]: expire_proc: exp_proc = 3045061744 path /net
Jan 04 10:59:39 cubier automount[494]: expire_cleanup: got thid 3045061744 path /net stat 0
Jan 04 10:59:39 cubier automount[494]: expire_cleanup: sigchld: exp 3045061744 finished, switching from 2 to 1
Jan 04 10:59:39 cubier automount[494]: st_ready: st_ready(): state = 2 path /net
Jan 04 10:59:54 cubier automount[494]: handle_packet: type = 3
Jan 04 10:59:54 cubier automount[494]: handle_packet_missing_indirect: token 4, name 192.168.1.104, request pid 508
Jan 04 10:59:54 cubier automount[494]: attempting to mount entry /net/192.168.1.104
Jan 04 10:59:54 cubier automount[494]: lookup(hosts): can't find path in hosts map /net/192.168.1.104
Jan 04 10:59:54 cubier automount[494]: lookup_mount: lookup(hosts): lookup failed - update exports list
Jan 04 10:59:54 cubier automount[494]: lookup_mount: lookup(hosts): 192.168.1.104 -> (null)
Jan 04 10:59:54 cubier automount[494]: get_exports: lookup(hosts): fetchng export list for 192.168.1.104
Jan 04 10:59:54 cubier automount[494]: st_expire: state 1 path /net
Jan 04 10:59:54 cubier automount[494]: expire_proc: exp_proc = 3044013168 path /net
Jan 04 10:59:54 cubier automount[494]: expire_cleanup: got thid 3044013168 path /net stat 0
Jan 04 10:59:54 cubier automount[494]: expire_cleanup: sigchld: exp 3044013168 finished, switching from 2 to 1
Jan 04 10:59:54 cubier automount[494]: st_ready: st_ready(): state = 2 path /net
Jan 04 10:59:57 cubier automount[494]: get_exports: lookup(hosts): exports lookup failed for 192.168.1.104
Jan 04 10:59:57 cubier automount[494]: key "192.168.1.104" not found in map source(s).
Jan 04 10:59:57 cubier automount[494]: dev_ioctl_send_fail: token = 4
Jan 04 10:59:57 cubier automount[494]: failed to mount /net/192.168.1.104
Jan 04 10:59:57 cubier automount[494]: handle_packet: type = 3
Jan 04 10:59:57 cubier automount[494]: handle_packet_missing_indirect: token 5, name 192.168.1.104, request pid 508
Jan 04 10:59:57 cubier automount[494]: dev_ioctl_send_fail: token = 5
Jan 04 10:59:57 cubier automount[494]: handle_packet: type = 3
Jan 04 10:59:57 cubier automount[494]: handle_packet_missing_indirect: token 6, name 192.168.1.104, request pid 508
Jan 04 10:59:57 cubier automount[494]: dev_ioctl_send_fail: token = 6
Jan 04 11:00:09 cubier automount[494]: st_expire: state 1 path /net
Jan 04 11:00:09 cubier automount[494]: expire_proc: exp_proc = 3045061744 path /net
Jan 04 11:00:09 cubier automount[494]: expire_cleanup: got thid 3045061744 path /net stat 0
Jan 04 11:00:09 cubier automount[494]: expire_cleanup: sigchld: exp 3045061744 finished, switching from 2 to 1
Jan 04 11:00:09 cubier automount[494]: st_ready: st_ready(): state = 2 path /net
This task depends upon

Closed by  Balló György (City-busz)
Friday, 10 January 2014, 12:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  autofs 5.0.8-2
Comment by Balló György (City-busz) - Friday, 10 January 2014, 07:49 GMT
Please try autofs-5.0.8-2.
Comment by Alexander Grothe (seahawk1986) - Friday, 10 January 2014, 12:06 GMT
The "-hosts" map is working now using autofs-5.0.8-2 on 3 devices running Arch Linux. Thank you very much for the updated package.

Loading...