← Back to team overview

touch-packages team mailing list archive

[Bug 1445846] Re: nm-online returns too early

 

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

** Changed in: network-manager (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1445846

Title:
  nm-online returns too early

Status in network-manager package in Ubuntu:
  Confirmed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1445846/+subscriptions


References