network file systems in FSTAB no longer mount at boot with NetworkManager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Fix Released
|
Medium
|
Unassigned | ||
network-manager (Debian) |
Fix Released
|
Unknown
|
|||
network-manager (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Wily |
Fix Released
|
Medium
|
Bryan Quigley |
Bug Description
[Impact]
* This breaks NFS mounts coming up reliably. In some cases this can be quite intermittent.
[Test Case]
1. Add a mountpoint to an NFS share by name to fstab.
2. See that it mounts with the mount command.
3. Reboot 5+ times, note that it doesn't come up all (or the majority of the time).
[Regression Potential]
* There could be a regression for the same reason it's blocked in Debian, because of dependency issues with packages not converted to systemd that want to run /etc/rcS.d/.
You can check for this by looking for breaking/disable services during bootup. Ubuntu is in a much better state than Debian, but there is a possibility we missed something.
Otherwise, this will increase boot time, but when the user logs the networking will be more likely to be ready.
-Previous description-
After a fresh install of 15.10, nfs shares no longer mount on boot. I'm using the same line to mount as I did in 14.04 prior:
<server>:/share /mnt/share ntfs4 _netdev, auto 0 0
This line worked just fine in 14.04, and 14.10 on my laptop, to mount the shares at boot.
Manual mounting after boot works fine. Systemctl shows a name resolution failure (see below)
lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
bjwest@razorback:~$ apt-cache policy nfs-common
nfs-common:
Installed: 1:1.2.8-9ubuntu10
Candidate: 1:1.2.8-9ubuntu10
Version table:
*** 1:1.2.8-9ubuntu10 0
500 http://
100 /var/lib/
systemctl status mnt-share.mount
● mnt-share.mount - /mnt/share
Loaded: loaded (/etc/fstab)
Active: failed (Result: exit-code) since Wed 2015-11-11 18:58:13 CST; 2min 15s ago
Where: /mnt/share
What: hog:/share
Docs: man:fstab(5)
Process: 731 ExecMount=
Nov 11 18:58:13 razorback systemd[1]: Mounting /mnt/share...
Nov 11 18:58:13 razorback mount[731]: mount.nfs4: Failed to resolve server hog: Temporary failure in name resolution
Nov 11 18:58:13 razorback systemd[1]: mnt-share.mount: Mount process exited, code=exited status=32
Nov 11 18:58:13 razorback systemd[1]: Failed to mount /mnt/share.
Nov 11 18:58:13 razorback systemd[1]: mnt-share.mount: Unit entered failed state.
Related branches
tags: | added: wily |
Changed in nfs-utils (Ubuntu): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu): | |
importance: | Undecided → Medium |
Changed in hundredpapercuts: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
affects: | nfs-utils (Ubuntu) → network-manager (Ubuntu) |
Changed in network-manager (Debian): | |
status: | Unknown → New |
Changed in network-manager (Ubuntu Wily): | |
importance: | Undecided → Medium |
Changed in network-manager (Debian): | |
status: | New → Fix Released |
Opening a task on systemd as well for this.
When called early in boot, mount.nfs may fail because of any number of problems with the network. In this case, it appears it's being called by systemd before /etc/resolv.conf has been set up, resulting in a temporary DNS failure. There is no way for mount.nfs to work when invoked at this point in the boot.
So either systemd needs to more finely control the timing of the mount call so that it definitely happens only after the network is up (including /etc/resolv.conf configuration), or it needs to handle retrying the mount in the case of a temporary failure. (The latter is what mountall did in Ubuntu 14.10 and earlier.)