Activity log for bug #1818121

Date Who What changed Old value New value Message
2019-02-28 17:10:31 Paul Menzel bug added bug
2019-03-01 11:13:02 Christian Ehrhardt  autofs (Ubuntu): status New Incomplete
2019-03-01 11:13:05 Christian Ehrhardt  bug added subscriber Christian Ehrhardt 
2019-03-04 15:32:54 Paul Menzel summary NFSv4 shares are not mounted: mount(nfs): no hosts available NFSv4 shares with option `-vers=4.0` are not mounted: mount(nfs): no hosts available
2019-03-07 12:10:45 Launchpad Janitor merge proposal linked https://code.launchpad.net/~paelzer/ubuntu/+source/autofs/+git/autofs/+merge/364082
2019-03-07 12:21:32 Christian Ehrhardt  description With Ubuntu 18.10 and autofs 5.1.2-4ubuntu1, mounting NFSv4 shares does not work. Directly mounting them with `mount.nfs` works. ``` Feb 28 18:08:30 nfsclient automount[22978]: expire_proc: exp_proc = 131147807650128 path /home_mariux Feb 28 18:08:30 nfsclient automount[22978]: expire_cleanup: got thid 131147807650128 path /home_mariux stat 0 Feb 28 18:08:30 nfsclient automount[22978]: expire_cleanup: sigchld: exp 131147807650128 finished, switching from 2 to 1 Feb 28 18:08:30 nfsclient automount[22978]: st_ready: st_ready(): state = 2 path /home_mariux Feb 28 18:08:32 nfsclient automount[22978]: handle_packet: type = 3 Feb 28 18:08:32 nfsclient automount[22978]: handle_packet_missing_indirect: token 46, name joey, request pid 28647 Feb 28 18:08:32 nfsclient automount[22978]: attempting to mount entry /home_mariux/joey Feb 28 18:08:32 nfsclient automount[22978]: lookup_mount: lookup(file): looking up joey Feb 28 18:08:32 nfsclient automount[22978]: lookup_mount: lookup(file): joey -> claptrap:/amd/claptrap/2/home/edv/joey Feb 28 18:08:32 nfsclient automount[22978]: parse_mount: parse(sun): expanded entry: claptrap:/amd/claptrap/2/home/edv/joey Feb 28 18:08:32 nfsclient automount[22978]: parse_mount: parse(sun): gathered options: nosuid Feb 28 18:08:32 nfsclient automount[22978]: parse_mount: parse(sun): dequote("claptrap:/amd/claptrap/2/home/edv/joey") -> claptrap:/amd/claptrap/2/home/edv/bucz Feb 28 18:08:32 nfsclient automount[22978]: parse_mount: parse(sun): core of entry: options=nosuid, loc=claptrap:/amd/claptrap/2/home/edv/joey Feb 28 18:08:32 nfsclient automount[22978]: sun_mount: parse(sun): mounting root /home_mariux, mountpoint joey, what claptrap:/amd/claptrap/2/home/edv/joey, f Feb 28 18:08:32 nfsclient automount[22978]: mount_mount: mount(nfs): root=/home_mariux name=joey what=claptrap:/amd/claptrap/2/home/edv/joey, fstype=nfs, opti Feb 28 18:08:32 nfsclient automount[22978]: mount_mount: mount(nfs): nfs options="nosuid", nobind=0, nosymlink=0, ro=0 Feb 28 18:08:32 nfsclient automount[22978]: get_nfs_info: called with host claptrap(141.14.16.132) proto 6 version 0x30 Feb 28 18:08:32 nfsclient automount[22978]: get_nfs_info: called with host claptrap(141.14.16.132) proto 17 version 0x30 Feb 28 18:08:32 nfsclient automount[22978]: mount(nfs): no hosts available Feb 28 18:08:32 nfsclient automount[22978]: dev_ioctl_send_fail: token = 46 Feb 28 18:08:32 nfsclient automount[22978]: failed to mount /home_mariux/joey Feb 28 18:08:32 nfsclient automount[22978]: st_readmap: state 1 path /home_mariux Feb 28 18:08:32 nfsclient automount[22978]: handle_packet: type = 3 Feb 28 18:08:32 nfsclient automount[22978]: handle_packet_missing_indirect: token 47, name joey, request pid 28647 Feb 28 18:08:32 nfsclient automount[22978]: dev_ioctl_send_fail: token = 47 Feb 28 18:08:32 nfsclient automount[22978]: re-reading map for /home_mariux Feb 28 18:08:32 nfsclient automount[22978]: lookup_nss_read_map: reading map file /etc/automount/auto.home Feb 28 18:08:32 nfsclient automount[22978]: do_init: parse(sun): init gathered global options: nosuid Feb 28 18:08:32 nfsclient automount[22978]: st_ready: st_ready(): state = 4 path /home_mariux ``` [Impact] * Specifying NFS v4 works, but using subversion fails. To make it worse v4.2 is considered not v4 at all which is not what users expect or need. If then your server does not support v4 the mount fails. * This is fixed upstream for a while, backport the patch from there to at lest the latest LTS (older ones are unlikely to suddenly need version 4.x). [Test Case] * This is a bit tricky you need a NFS server that is "less tolerant" liek the one reported in comment #5. If you have such a server set up configure your exports following [1] (or similar) I usually place a file called "testfile" in that export to check if it exists, feel free to do similarly. * Then on the client side install autofs and follow [2] The summary of those steps is: - you need the autofs4 kernel module which is in linux-modules-extra so install that if you don't have it. - configure your autofs.master to use a nfs mount for example $ echo "/nfs/ /etc/auto.nfs" | sudo tee -a /etc/auto.master $ sudo mkdir -p /nfs/testmount $ echo "testmount -fstype=nfs,rw,retry=0 <SERVERIP>:/export/users/testmount" | sudo tee -a /etc/auto.nfs $ ll /nfs/testmount/testfile -rw-r--r-- 1 root root 0 Mar 1 10:43 /nfs/testmount/testfile Without the fix it will fail to mount and "/nfs/testmount" will be an empty unmoutned directory. With the fix you will see the mount working (from mount output) 192.168.122.55:/export/users/testmount on /nfs/testmount type nfs4 (rw,relatime,vers=4.2,rsize=65536,wsize=65536,namlen=255,hard, proto=tcp,timeo=600,retrans=2,sec=sys, clientaddr=192.168.122.226,local_lock=none,addr=192.168.122.55) [1]: https://help.ubuntu.com/community/SettingUpNFSHowTo [2]: https://wiki.ubuntuusers.de/Autofs/ [Regression Potential] * The change is minimal and just changes from a full string match to a prefix match. In theory that could make configurations which today specify 4.2 (and silently fail doing so as this is broken) then "suddenly" really use v4 which it currently does not always do. v4.2 currently is mounted as v4 and after the change will be mounted as v4.2 as specified - but that is the fix and not so much a regression. [Other Info] * n/a --- With Ubuntu 18.10 and autofs 5.1.2-4ubuntu1, mounting NFSv4 shares does not work. Directly mounting them with `mount.nfs` works. ``` Feb 28 18:08:30 nfsclient automount[22978]: expire_proc: exp_proc = 131147807650128 path /home_mariux Feb 28 18:08:30 nfsclient automount[22978]: expire_cleanup: got thid 131147807650128 path /home_mariux stat 0 Feb 28 18:08:30 nfsclient automount[22978]: expire_cleanup: sigchld: exp 131147807650128 finished, switching from 2 to 1 Feb 28 18:08:30 nfsclient automount[22978]: st_ready: st_ready(): state = 2 path /home_mariux Feb 28 18:08:32 nfsclient automount[22978]: handle_packet: type = 3 Feb 28 18:08:32 nfsclient automount[22978]: handle_packet_missing_indirect: token 46, name joey, request pid 28647 Feb 28 18:08:32 nfsclient automount[22978]: attempting to mount entry /home_mariux/joey Feb 28 18:08:32 nfsclient automount[22978]: lookup_mount: lookup(file): looking up joey Feb 28 18:08:32 nfsclient automount[22978]: lookup_mount: lookup(file): joey -> claptrap:/amd/claptrap/2/home/edv/joey Feb 28 18:08:32 nfsclient automount[22978]: parse_mount: parse(sun): expanded entry: claptrap:/amd/claptrap/2/home/edv/joey Feb 28 18:08:32 nfsclient automount[22978]: parse_mount: parse(sun): gathered options: nosuid Feb 28 18:08:32 nfsclient automount[22978]: parse_mount: parse(sun): dequote("claptrap:/amd/claptrap/2/home/edv/joey") -> claptrap:/amd/claptrap/2/home/edv/bucz Feb 28 18:08:32 nfsclient automount[22978]: parse_mount: parse(sun): core of entry: options=nosuid, loc=claptrap:/amd/claptrap/2/home/edv/joey Feb 28 18:08:32 nfsclient automount[22978]: sun_mount: parse(sun): mounting root /home_mariux, mountpoint joey, what claptrap:/amd/claptrap/2/home/edv/joey, f Feb 28 18:08:32 nfsclient automount[22978]: mount_mount: mount(nfs): root=/home_mariux name=joey what=claptrap:/amd/claptrap/2/home/edv/joey, fstype=nfs, opti Feb 28 18:08:32 nfsclient automount[22978]: mount_mount: mount(nfs): nfs options="nosuid", nobind=0, nosymlink=0, ro=0 Feb 28 18:08:32 nfsclient automount[22978]: get_nfs_info: called with host claptrap(141.14.16.132) proto 6 version 0x30 Feb 28 18:08:32 nfsclient automount[22978]: get_nfs_info: called with host claptrap(141.14.16.132) proto 17 version 0x30 Feb 28 18:08:32 nfsclient automount[22978]: mount(nfs): no hosts available Feb 28 18:08:32 nfsclient automount[22978]: dev_ioctl_send_fail: token = 46 Feb 28 18:08:32 nfsclient automount[22978]: failed to mount /home_mariux/joey Feb 28 18:08:32 nfsclient automount[22978]: st_readmap: state 1 path /home_mariux Feb 28 18:08:32 nfsclient automount[22978]: handle_packet: type = 3 Feb 28 18:08:32 nfsclient automount[22978]: handle_packet_missing_indirect: token 47, name joey, request pid 28647 Feb 28 18:08:32 nfsclient automount[22978]: dev_ioctl_send_fail: token = 47 Feb 28 18:08:32 nfsclient automount[22978]: re-reading map for /home_mariux Feb 28 18:08:32 nfsclient automount[22978]: lookup_nss_read_map: reading map file /etc/automount/auto.home Feb 28 18:08:32 nfsclient automount[22978]: do_init: parse(sun): init gathered global options: nosuid Feb 28 18:08:32 nfsclient automount[22978]: st_ready: st_ready(): state = 4 path /home_mariux ```
2019-03-07 12:21:37 Christian Ehrhardt  autofs (Ubuntu): status Incomplete Triaged
2019-03-07 12:21:42 Christian Ehrhardt  nominated for series Ubuntu Cosmic
2019-03-07 12:21:42 Christian Ehrhardt  bug task added autofs (Ubuntu Cosmic)
2019-03-07 12:21:42 Christian Ehrhardt  nominated for series Ubuntu Bionic
2019-03-07 12:21:42 Christian Ehrhardt  bug task added autofs (Ubuntu Bionic)
2019-03-07 12:22:40 Christian Ehrhardt  autofs (Ubuntu Bionic): status New Confirmed
2019-03-07 12:22:42 Christian Ehrhardt  autofs (Ubuntu Cosmic): status New Confirmed
2019-03-11 15:23:25 Launchpad Janitor autofs (Ubuntu): status Triaged Fix Released
2019-03-12 06:58:44 Launchpad Janitor merge proposal linked https://code.launchpad.net/~paelzer/ubuntu/+source/autofs/+git/autofs/+merge/364299
2019-03-12 07:02:28 Launchpad Janitor merge proposal linked https://code.launchpad.net/~paelzer/ubuntu/+source/autofs/+git/autofs/+merge/364300
2019-03-12 07:30:44 Christian Ehrhardt  autofs (Ubuntu Bionic): status Confirmed In Progress
2019-03-12 07:30:46 Christian Ehrhardt  autofs (Ubuntu Cosmic): status Confirmed In Progress
2019-03-13 20:04:50 Brian Murray autofs (Ubuntu Cosmic): status In Progress Fix Committed
2019-03-13 20:04:53 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2019-03-13 20:04:56 Brian Murray bug added subscriber SRU Verification
2019-03-13 20:05:01 Brian Murray tags verification-needed verification-needed-cosmic
2019-03-13 20:13:28 Brian Murray autofs (Ubuntu Bionic): status In Progress Fix Committed
2019-03-13 20:13:34 Brian Murray tags verification-needed verification-needed-cosmic verification-needed verification-needed-bionic verification-needed-cosmic
2019-03-26 13:38:53 Christian Ehrhardt  tags verification-needed verification-needed-bionic verification-needed-cosmic verification-done verification-done-bionic verification-done-cosmic
2019-03-26 14:58:42 Launchpad Janitor autofs (Ubuntu Cosmic): status Fix Committed Fix Released
2019-03-26 14:58:47 Brian Murray removed subscriber Ubuntu Stable Release Updates Team
2019-03-26 14:59:16 Launchpad Janitor autofs (Ubuntu Bionic): status Fix Committed Fix Released
2020-06-24 02:25:42 Launchpad Janitor merge proposal linked https://code.launchpad.net/~rafaeldtinoco/ubuntu/+source/autofs/+git/autofs/+merge/382338