network manager breaks autofs

Bug #482236 reported by Tom Dimiduk
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: network-manager

Ubuntu 9.10
network-manager

Network manager tends to break autofs remote mounting of home directories. I believe what is happening is that autofs in being started before network manager has a working network connection and then it just fails. I can get autofs to work by logging in a user with a local home directory and restarting autofs after boot is finished. In 9.04 I was able to fix the problem by reordering init scripts

mv /etc/rc2.d/S50NetworkManager /etc/rc2.d/S26NetworkManager
mv /etc/rc2.d/S18nis /etc/rc2.d/S27nis
mv /etc/rc2.d/S19autofs /etc/rc2.d/S28autofs

and adding

sleep 20

to /etc/init.d/NetworkManager right before it exits.

However it appears 9.10 has moved more thoroughly to upstart so I could not easily implement this fix.

I currently have things working fine by simply uninstalling network manager (since I don't need it on a desktop), but it is unfortunate that the default breaks like this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Thomas Ribbrock (emgaron+ubuntu) wrote :

This is still the case on 11.10 - for some reasons, autofs sometimes starts before the network connection has been fully established. In those cases, I can see it complain in syslog about "hostname lookup failed: Name or service not known", so apparently, it failed to resolve the host name it's supposed to mount the shares from. This does not happen every time - looks like some sort of race condition.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

As far as I know this should be fixed in 12.04. Could you please check whether the same incorrect behavior is still happening?

Thanks!

Changed in network-manager (Ubuntu):
status: Confirmed → Incomplete
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for network-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in network-manager (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Dan Bishop (danbishop) wrote :

This is still the case in both 12.10 and 13.04 (as of 2/4/2013).

Changed in network-manager (Ubuntu):
status: Expired → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.