Activity log for bug #988394

Date Who What changed Old value New value Message
2012-04-25 15:50:44 agenkin bug added bug
2012-04-25 15:58:34 agenkin description All our machnes were hanging indefinitely when asked to reboot. We traced it down to the /etc/rc6.d/S40umountfs script hanging. The problem in our case is that autofs leaves phantom entries in /proc/mounts after it's stopped (I'm reporting this as a separate bug). The entries autofs creates are not real mount points - these are the directories monitored by the autofs daemon, which mounts file systems as subdirectories to those directories. The expected behaviour for the umountfs script would be to skip over any bogus mount points, left over by autofs or anything else. For instance, we found out that by the time /etc/rc6.d/S40umountfs runs the autofs daemon is stopped (as expected) and all directories that had been mounted by it are already unmounted (as expected, it mounts NFS shares in our case, which are unmounted by /etc/rc6.d/S31umountnfs.sh). However, /proc/mounts still contained the following lines: /etc/auto.nfs_h /h autofs rw,relatime,fd=6,pgrp=1004,timeout=300,minproto=5,maxproto=5,indirect 0 0 /etc/auto.nfs_s /s autofs rw,relatime,fd=12,pgrp=1004,timeout=300,minproto=5,maxproto=5,indirect 0 0 /etc/auto.nfs_cdf /cdf autofs rw,relatime,fd=18,pgrp=1004,timeout=300,minproto=5,maxproto=5,direct 0 0 which confused the umountfs script. The variable REG_MTPTS, among the proper file systems, contained the following: "/h /s /cdf". Subsequently, when the umountfs script invoked "fstab-decode umount ..." it hung trying to unmount these non-existent file systems. In summary, I think that either the umountfs script should be made smarter to not pass bogus mount points to fstab-decode, or fstab-decode should be more robust and not hang when given a mount point that does not exist. Perhaps both. Thanks! ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: initscripts 2.88dsf-13.10ubuntu11 ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14 Uname: Linux 3.2.0-23-generic-pae i686 ApportVersion: 2.0.1-0ubuntu6 Architecture: i386 Date: Wed Apr 25 11:33:07 2012 ProcEnviron: TERM=xterm PATH=(custom, no user) SHELL=/local/bin/bash SourcePackage: sysvinit UpgradeStatus: No upgrade log present (probably fresh install) All our machnes were hanging indefinitely when asked to reboot. We traced it down to the /etc/rc6.d/S40umountfs script hanging. The problem in our case is that autofs leaves phantom entries in /proc/mounts after it's stopped (I'm reporting this as a separate bug #988397). The entries autofs creates are not real mount points - these are the directories monitored by the autofs daemon, which mounts file systems as subdirectories to those directories. The expected behaviour for the umountfs script would be to skip over any bogus mount points, left over by autofs or anything else. For instance, we found out that by the time /etc/rc6.d/S40umountfs runs the autofs daemon is stopped (as expected) and all directories that had been mounted by it are already unmounted (as expected, it mounts NFS shares in our case, which are unmounted by /etc/rc6.d/S31umountnfs.sh). However, /proc/mounts still contained the following lines: /etc/auto.nfs_h /h autofs rw,relatime,fd=6,pgrp=1004,timeout=300,minproto=5,maxproto=5,indirect 0 0 /etc/auto.nfs_s /s autofs rw,relatime,fd=12,pgrp=1004,timeout=300,minproto=5,maxproto=5,indirect 0 0 /etc/auto.nfs_cdf /cdf autofs rw,relatime,fd=18,pgrp=1004,timeout=300,minproto=5,maxproto=5,direct 0 0 which confused the umountfs script. The variable REG_MTPTS, among the proper file systems, contained the following: "/h /s /cdf". Subsequently, when the umountfs script invoked "fstab-decode umount ..." it hung trying to unmount these non-existent file systems. In summary, I think that either the umountfs script should be made smarter to not pass bogus mount points to fstab-decode, or fstab-decode should be more robust and not hang when given a mount point that does not exist. Perhaps both. Thanks! ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: initscripts 2.88dsf-13.10ubuntu11 ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14 Uname: Linux 3.2.0-23-generic-pae i686 ApportVersion: 2.0.1-0ubuntu6 Architecture: i386 Date: Wed Apr 25 11:33:07 2012 ProcEnviron:  TERM=xterm  PATH=(custom, no user)  SHELL=/local/bin/bash SourcePackage: sysvinit UpgradeStatus: No upgrade log present (probably fresh install)
2012-04-25 21:43:43 agenkin attachment added strace-fstab-decode.txt https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/988394/+attachment/3104022/+files/strace-fstab-decode.txt
2012-05-03 17:53:53 agenkin attachment added umountfs.diff https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/988394/+attachment/3128124/+files/umountfs.diff
2012-05-03 21:54:10 Brian Murray sysvinit (Ubuntu): assignee Canonical Foundations Team (canonical-foundations)
2012-05-03 23:03:12 Steve Langasek affects sysvinit (Ubuntu) autofs5 (Ubuntu)
2012-05-03 23:03:21 Steve Langasek autofs5 (Ubuntu): importance Undecided High
2012-05-03 23:03:30 Steve Langasek autofs5 (Ubuntu): assignee Canonical Foundations Team (canonical-foundations) Canonical Server Team (canonical-server)
2012-05-04 00:19:30 Ubuntu Foundations Team Bug Bot tags apport-bug i386 precise apport-bug i386 patch precise
2012-05-04 00:19:39 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2012-05-05 07:45:40 Clint Byrum bug added subscriber Clint Byrum
2012-07-27 18:34:52 Clint Byrum autofs5 (Ubuntu): status New Confirmed