[Bug 798963] Re: Incorrect upstart dependencies cause race conditions with NFS mount points
david
david at kabelverhau.ch
Sat Jun 18 11:44:56 UTC 2011
The problem seems to be related to the fact that I have configured my
network interface statically using /etc/network/interfaces:
auto eth0
iface eth0 inet static
address 192.168.0.20
netmask 255.255.255.0
gateway 192.168.0.1
When this interface gets configured, it is in the "UP" state, but it
takes 1-2 seconds to get into the "RUNNING" state. The effect is that as
soon as the interface enters "UP" state, the event "net-device-up" is
fired, upon which mountall tries to mount the network shares. Because
the interface is not "RUNNING" yet, it does not send/receive data, and
mounting fails.
Adding a delay in /etc/init/mount-net.conf makes the problem go away, as
does not using /etc/network/interfaces for network configuration.
I'm not sure if this also solves the GDM autologin problem, I'll have to
try some more.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/798963
Title:
Incorrect upstart dependencies cause race conditions with NFS mount
points
Status in “mountall” package in Ubuntu:
New
Bug description:
Binary package hint: mountall
I use an NFS mounted home directory (in /etc/fstab: 192.168.0.2:/home
/home nfs
defaults,tcp,async,noatime,rsize=16384,wsize=16384,_netdev) and
automatic login in GDM. Usually, /home is not mounted when GDM tries
to log in, causing various errors due to the non-existing /home
directory.
If I try again a few seconds later, all works fine (because by then
/home is mounted).
I think the upstart dependencies are wrong:
- /etc/init/mountall.conf has no dependency on network, so it only mounts local file systems. However, it emits "filesystem" and "remote-filesystems"
- /etc/init/gdm.conf depends on "filesystem" (obviously assuming that "filesystem" also includes network filesystems)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/798963/+subscriptions
More information about the foundations-bugs
mailing list