nm-online returns too early

Bug #1445846 reported by Vihai
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am setting up a totem system which mounts a remote file system at boot and starts an application from it.

I found that randomly the boot fails because the mount fails due to "Network unreachable" errors.

I made sure the mount unit waits for network-online.target to be rached, however I found that NetworkManager-wait-online.service returns well before the IP address has been obtained by DHCP.

This is a cleaned up log extract:

apr 19 02:22:13 terminale2 systemd[1]: Starting Network.
apr 19 02:22:13 terminale2 NetworkManager[660]: <info> (eth2): carrier is OFF
apr 19 02:22:13 terminale2 NetworkManager[660]: <info> (eth2): new Ethernet device (driver: 'r8169' ifindex: 2)
apr 19 02:22:13 terminale2 NetworkManager[660]: <info> (eth2): exported as /org/freedesktop/NetworkManager/Devices/1
apr 19 02:22:13 terminale2 NetworkManager[660]: <info> (eth2): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
apr 19 02:22:13 terminale2 systemd[1]: Starting Network Manager Wait Online...
apr 19 02:22:13 terminale2 NetworkManager[660]: <info> (eth2): preparing device
apr 19 02:22:18 terminale2 NetworkManager[660]: <info> startup complete
apr 19 02:22:18 terminale2 systemd[1]: Started Network Manager Wait Online.
apr 19 02:22:18 terminale2 systemd[1]: Reached target Network is Online.
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
apr 19 02:22:18 terminale2 systemd[1]: Starting Network is Online.
apr 19 02:22:18 terminale2 systemd[1]: Mounting /nas...
apr 19 02:22:18 terminale2 mount[810]: mount error(101): Network is unreachable

Then after a while:

apr 19 02:22:26 terminale2 NetworkManager[660]: <info> Activation (eth2) successful, device activated.

Attached you find the whole journal.

Revision history for this message
Vihai (daniele-orlandi) wrote :
Revision history for this message
Vihai (daniele-orlandi) wrote :

Note that I'm working with vivid and network-manager 0.9.10.0-4ubuntu15 with systemd.

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
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.