Bug 445966 - Netfs needs to come after NetworkManager
Summary: Netfs needs to come after NetworkManager
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 9
Hardware: i686
OS: Linux
low
low
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-10 17:35 UTC by G.Wolfe Woodbury
Modified: 2008-05-21 14:54 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-05-20 20:54:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description G.Wolfe Woodbury 2008-05-10 17:35:47 UTC
Description of problem:
  during boot, netfs runs before network manager, leaving the NFS mounted file
systems unmounted when the NM finally comes along.

Version-Release number of selected component (if applicable):


How reproducible:
  always


Steps to Reproduce:
1. add an NFS mounted filesystem to fstab
2. reboot
3.
  
Actual results:
  filesystem is not mounted after system comes up

Expected results:
  NFS mounted directories should be available after booting without having to
specifically mount them.

Additional info:

  this may belong in initscripts or something

Comment 1 Bug Zapper 2008-05-14 10:58:11 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 W. Michael Petullo 2008-05-19 23:39:59 UTC
The autofs daemon has the same problem. Autofs is started with a priority of 28, well before 
NetworkManager. If a system's autofs maps are provided by LDAP, then autofs will not read them because 
the network is not available yet.

Comment 3 Dan Williams 2008-05-20 00:34:00 UTC
NM starts at 27 on a stock F9 install.  Make sure you:

chkconfig haldaemon resetpriorities
chkconfig NetworkManager resetpriorities

does NM then still come after #27?

Comment 4 W. Michael Petullo 2008-05-20 16:47:39 UTC
Running the chkconfig commands from comment #3 reassigned new priorities to NetworkManager (27) 
and hald (26). However, the network is still not up when autofs runs. I suspect that the NetworkManager 
daemon is running in the background but does not get the network up in time for autofs (priority 28).

The laptop in question received a fresh Fedora 9 Preview install and this resulted in NetworkManager 
receiving a priority of 99. Was this changed between the preview and final release? Or is there a bug in the 
installer or rpm postinstall scripts?

Note that I don't know if this fixes the original issue with netfs, as I don't use that feature.

Comment 5 Dan Williams 2008-05-20 19:30:07 UTC
Add:

NETWORKWAIT=yes

to /etc/sysconfig/network to block startup until the network comes up or until
10 seconds have passed.  If 10s is not enough, set:

LINKDELAY=30

or however many seconds you'd like.

Comment 6 G.Wolfe Woodbury 2008-05-20 20:10:33 UTC
For me this is now a moot question,
I don't like Network manager and have no wireless devices on the systems concerned

I've turned off NetworkManager and reverted to the old simple network method



Comment 7 Dan Williams 2008-05-20 20:54:40 UTC
Ok, thanks for the report.  Resolution for this is to ensure that, if updating a
system from before F9, that the priorities are correct (NM and dbus reset
priorites in their %post, not sure about HAL but if it doesn't that's a bug). 
And if a service requires network to be up by the time it's running, adding
NETWORKWAIT and LINKDELAY as necessary.

Comment 8 W. Michael Petullo 2008-05-21 00:48:38 UTC
After I performed the steps I mentioned in comment #4, NETWORKWAIT=yes fixed my problem.

As I mentioned before, I don't have any experience with netfs.

I am planning on doing a fresh Fedora 9 install on my home server. This will allow me to retest whether NetworkManager and hald have their priorities set properly after installing. As I mentioned, my laptop ended up with incorrect priorities.

Comment 9 Dan Williams 2008-05-21 14:54:24 UTC
Michael; great.  Looking forward to hearing what your fresh install does.  Both
the LiveCD and full netinstalls I've done have placed dbus at 22, hal at 26, and
NM at 27.


Note You need to log in before you can comment on or make changes to this bug.