14.10: NFS drives in fstab not mounted automatically
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | nfs-utils (Ubuntu) |
High
|
Marc Deslauriers | ||
| | Utopic |
High
|
Marc Deslauriers | ||
| | Vivid |
High
|
Marc Deslauriers | ||
| | upstart (Ubuntu) |
High
|
Unassigned | ||
| | Utopic |
High
|
Unassigned | ||
| | Vivid |
High
|
Unassigned | ||
Bug Description
[SRU Request]
Due to a change in Upstart behaviour, the statd daemon no longer starts automatically at boot, resulting in nfs mounts not being mounted at boot.
This has been corrected by modifying the statd upstart job to wait for the rpcbind job to start, instead of waiting for the compatibility portmap event.
[Test Case]
1- set up an NFS mount in /etc/fstab
2- Reboot, notice the directory didn't get mounted
3- Install update
4- Reboot, notice the directory is mounted
[Regression Potential]
The upstart jobs to get the proper daemons started up at boot have complex relationships, and have suffered from race conditions in the past. Although this change is small, it may slightly change previous behaviour. Of course, not having it work at all is worse than having a possible race condition, so this fix is unlikely to be any worse than the broken behaviour.
Original description:
After upgrading to 14.10 (fresh install) my NFS drive does no longer mounts automatically at boot when the network is up and running. Manually running mount -a mounts the drive as expected and hacking a mount -a command into mountall-net.conf makes my system function normally again. Trying to manually to killall -USR1 mountall does not work.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: mountall 2.54build1
ProcVersionSign
Uname: Linux 3.16.0-24-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Nov 10 20:37:39 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-11-09 (1 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
ProcKernelCmdline: BOOT_IMAGE=
SourcePackage: mountall
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
| Tommy Vestermark (tov) wrote : | #1 |
| Marc Deslauriers (mdeslaur) wrote : | #3 |
Ok, I've investigated this, and it turns out:
statd-mounting.conf intercepts nfs mounts and waits for the statd daemon to be run
statd.conf starts on (virtual-
rpcbind.conf is what emits the started portmap event:
# For compatibility with older upstart jobs in Ubuntu
post-start exec initctl emit --no-wait started JOB=portmap ON_BOOT=$ON_BOOT
pre-stop exec initctl emit --no-wait stopping JOB=portmap
But, to actually work with upstart in 14.10, the INSTANCE variable has to be added, like so:
# For compatibility with older upstart jobs in Ubuntu
post-start exec initctl emit --no-wait started JOB=portmap INSTANCE='' ON_BOOT=$ON_BOOT
pre-stop exec initctl emit --no-wait stopping JOB=portmap INSTANCE=''
| affects: | mountall (Ubuntu) → upstart (Ubuntu) |
| Changed in nfs-utils (Ubuntu): | |
| status: | New → Confirmed |
| Marc Deslauriers (mdeslaur) wrote : | #4 |
Upstart shouldn't require an INSTANCE variable for that to work, and nfs-utils shouldn't be waiting on the portmap job, as that is for legacy compatibility only.
| Changed in nfs-utils (Ubuntu Utopic): | |
| status: | New → Confirmed |
| Changed in upstart (Ubuntu Utopic): | |
| status: | New → Confirmed |
| Changed in nfs-utils (Ubuntu Utopic): | |
| assignee: | nobody → Marc Deslauriers (mdeslaur) |
| Changed in nfs-utils (Ubuntu Vivid): | |
| assignee: | nobody → Marc Deslauriers (mdeslaur) |
| Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package nfs-utils - 1:1.2.8-9ubuntu2
---------------
nfs-utils (1:1.2.8-9ubuntu2) vivid; urgency=medium
* debian/
relying on portmap compatibility event. (LP: #1391296)
-- Marc Deslauriers <email address hidden> Tue, 18 Nov 2014 19:07:15 -0500
| Changed in nfs-utils (Ubuntu Vivid): | |
| status: | Confirmed → Fix Released |
| Cyrus Harmon (ch-launchpad) wrote : | #6 |
Any chance of seeing a fix for utopic for this?
| description: | updated |
| Changed in nfs-utils (Ubuntu Utopic): | |
| status: | Confirmed → In Progress |
| Changed in nfs-utils (Ubuntu Utopic): | |
| importance: | Undecided → High |
| Changed in nfs-utils (Ubuntu Vivid): | |
| importance: | Undecided → High |
| Changed in upstart (Ubuntu Utopic): | |
| importance: | Undecided → High |
| Changed in upstart (Ubuntu Vivid): | |
| importance: | Undecided → High |
Hello Tommy, or anyone else affected,
Accepted nfs-utils into utopic-proposed. The package will build now and be available at http://
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in nfs-utils (Ubuntu Utopic): | |
| status: | In Progress → Fix Committed |
| tags: | added: verification-needed |
| Marc Deslauriers (mdeslaur) wrote : | #8 |
FWIW, the package in utopic-proposed fixes the issue for me.
I'm not marking as verification-done, as I would really like for someone else who is affected by this bug to test it also.
| Cyrus Harmon (ch-launchpad) wrote : | #9 |
The fix in proposed fixed this problem on two separate boxes for me. Would be great to see this in the main repository.
thanks!
| tags: |
added: verification-done removed: verification-needed |
| Launchpad Janitor (janitor) wrote : | #10 |
This bug was fixed in the package nfs-utils - 1:1.2.8-9ubuntu1.1
---------------
nfs-utils (1:1.2.
* debian/
relying on portmap compatibility event. (LP: #1391296)
-- Marc Deslauriers <email address hidden> Tue, 18 Nov 2014 19:07:15 -0500
| Changed in nfs-utils (Ubuntu Utopic): | |
| status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for nfs-utils has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
| Marc Deslauriers (mdeslaur) wrote : | #12 |
This was fixed in nfs-utils. Closing upstart tasks as they are no longer necessary.
| Changed in upstart (Ubuntu): | |
| status: | Confirmed → Won't Fix |
| status: | Won't Fix → Invalid |
| Changed in upstart (Ubuntu Utopic): | |
| status: | Confirmed → Invalid |
| Changed in upstart (Ubuntu Vivid): | |
| status: | Confirmed → Invalid |


Status changed to 'Confirmed' because the bug affects multiple users.