Mailinglist Archive: opensuse-bugs (5243 mails)

< Previous Next >
[Bug 805397] NFS mount is done before eth0 is up

https://bugzilla.novell.com/show_bug.cgi?id=805397

https://bugzilla.novell.com/show_bug.cgi?id=805397#c3


Paul Zawila-Niedzwiecki <zawel1@xxxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |zawel1@xxxxxxxxx
Platform|x86-64 |i586
Version|RC 1 |Final

--- Comment #3 from Paul Zawila-Niedzwiecki <zawel1@xxxxxxxxx> 2013-03-14
10:39:47 UTC ---
I have similar situation. I have ifup configuration with DHCP on eth0
(NetworkManager is not installed at all). network.service starts and
successfully ends before ip address is acquired via DHCP (which runs in
background), nfs.service starts immediately afterwards and fails due to lack of
network connection, so fails postfix because it is dependent of
remote-fs.target.

Excerpt from /var/log/messages:

Mar 14 10:45:42 pc048 ifup-dhcp[899]: eth0 Starting DHCP4 client
Mar 14 10:45:42 pc048 dhcpcd[1694]: eth0: dhcpcd 3.2.3 starting
Mar 14 10:45:42 pc048 dhcpcd[1694]: eth0: hardware address = 70:71:bc:54:ef:dc
Mar 14 10:45:42 pc048 dhcpcd[1694]: eth0: broadcasting for a lease
Mar 14 10:45:59 pc048 network[443]: eth0 Starting DHCP4 client. . . . . .
. .
Mar 14 10:45:59 pc048 network[443]: eth0 DHCP4 continues in background
Mar 14 10:45:59 pc048 network[443]: eth0 DHCP4 client (dhcpcd) is running
Mar 14 10:45:59 pc048 network[443]: eth0 . . . but is still waiting for
data
Mar 14 10:45:59 pc048 network[443]: eth0 is up
Mar 14 10:45:59 pc048 network[443]: Setting up service network . . . . .
. . . . . . . ...done
Mar 14 10:45:59 pc048 systemd[1]: Started LSB: Configure network interfaces and
set up routing.
Mar 14 10:45:59 pc048 systemd[1]: Starting Network.
Mar 14 10:45:59 pc048 systemd[1]: Reached target Network.
Mar 14 10:45:59 pc048 nfs[2669]: Mounting network file systems ...mount.nfs:
mount system call failed
Mar 14 10:45:59 pc048 nfs[2669]: mount.nfs: mount system call failed
Mar 14 10:45:59 pc048 nfs[2669]: ..done
Mar 14 10:45:59 pc048 systemd[1]: Started LSB: NFS client services.
Mar 14 10:45:59 pc048 systemd[1]: Starting Remote File Systems (Pre).
Mar 14 10:45:59 pc048 systemd[1]: Reached target Remote File Systems (Pre).
Mar 14 10:45:59 pc048 systemd[1]: Mounting /data...
Mar 14 10:45:59 pc048 systemd[1]: Mounting /home...
Mar 14 10:45:59 pc048 systemd[1]: data.mount mount process exited, code=exited
status=32
Mar 14 10:45:59 pc048 mount[2706]: mount.nfs: mount system call failed
Mar 14 10:45:59 pc048 mount[2707]: mount.nfs: mount system call failed
Mar 14 10:45:59 pc048 systemd[1]: Failed to mount /data.
Mar 14 10:45:59 pc048 systemd[1]: Dependency failed for Remote File Systems.
Mar 14 10:45:59 pc048 systemd[1]: Dependency failed for Postfix Mail Transport
Agent.
Mar 14 10:45:59 pc048 systemd[1]: Job postfix.service/start failed with result
'dependency'.
Mar 14 10:45:59 pc048 systemd[1]: Job remote-fs.target/start failed with result
'dependency'.
Mar 14 10:45:59 pc048 systemd[1]: Unit data.mount entered failed state
Mar 14 10:45:59 pc048 systemd[1]: home.mount mount process exited, code=exited
status=32
Mar 14 10:45:59 pc048 systemd[1]: Failed to mount /home.
Mar 14 10:45:59 pc048 systemd[1]: Unit home.mount entered failed state
.
(and 3 seconds later)
.
Mar 14 10:46:02 pc048 dhcpcd[1694]: eth0: adding IP address 10.1.1.48/8
Mar 14 10:46:02 pc048 dhcpcd[1694]: eth0: adding default route via 10.1.1.254
metric 0

Adding explicit 5 seconds sleep to /etc/init.d/nfs helps but it should really
wait for interface up just like NetworkManager-wait-online.service.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >