it took a good deal of effort to validate this, beyond what's in the
test case, because it turns out that there are no units in the default
desktop install at all that pull in network-online.target; so I had to
create /etc/rc.local and modify /lib/systemd/system/rc-
local.service.d/debian.conf to include 'Wants=network-online.target' see
anything worth looking at (and the latter is probably also a bug in that
unit).  But ultimately, I've managed to get to the following state:

$ systemctl status NetworkManager-wait-online.service 
● NetworkManager-wait-online.service - Network Manager Wait Online
   Loaded: loaded (/lib/systemd/system/NetworkManager-wait-online.service; enabl
   Active: failed (Result: exit-code) since Fri 2017-05-26 00:06:03 PDT; 4min 3
     Docs: man:nm-online(1)
 Main PID: 786 (code=exited, status=1/FAILURE)

May 26 00:05:32 ubuntu17 systemd[1]: Starting Network Manager Wait Online...
May 26 00:06:03 ubuntu17 systemd[1]: NetworkManager-wait-online.service: Main pr
May 26 00:06:03 ubuntu17 systemd[1]: Failed to start Network Manager Wait Online
May 26 00:06:03 ubuntu17 systemd[1]: NetworkManager-wait-online.service: Unit en
May 26 00:06:03 ubuntu17 systemd[1]: NetworkManager-wait-online.service: Failed
$ systemctl status network-online.target
● network-online.target - Network is Online
   Loaded: loaded (/lib/systemd/system/network-online.target; static; vendor pre
   Active: active since Fri 2017-05-26 00:06:03 PDT; 12min ago
     Docs: man:systemd.special(7)
           http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget

May 26 00:06:03 ubuntu17 systemd[1]: Reached target Network is Online.
$

So NetworkManager-wait-online is run, and even though I've configured
this system such that the network fails to come up at boot, the network-
online target is still reached after a delay.

** Tags removed: verification-needed
** Tags added: verification-donee

** Tags removed: verification-donee
** Tags added: verification-done

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

Title:
  fix for bug #1569649 left NetworkManager-wait-online disabled on some
  systems

Status in network-manager package in Ubuntu:
  Fix Released
Status in network-manager source package in Zesty:
  Fix Committed

Bug description:
  [SRU Justification]
  While attempting to verify the usage of NetworkManager-wait-online.service in 
Ubuntu, I have discovered that while the packaging says that this service 
should be enabled (LP: #1569649), it is disabled on my machine.  I believe that 
users who have continuously upgraded their systems, including over pre-releases 
of Ubuntu, may have been left in the same situation, where 
NetworkManager-wait-online.service is inactive and their boot order is 
therefore unreliable.

  This disabled NetworkManager-wait-online due to lack of upgrade fix-up
  may explain other bug reports I've seen around NFS handling, where
  users continue to report that NFS is not correctly mounted at boot.

  Though late, a one-time upgrade fix-up is warranted so that users can
  have consistent handling of the network-online target.

  [Test case]
  1. On an affected system, run 'systemctl status NetworkManager-wait-online'.  
Observe that the unit is listed as disabled.
  2. Install network-manager from -proposed.
  3. Run 'systemctl status NetworkManager-wait-online' again and verify that 
the unit is no longer marked as disabled.
  4. Reboot and verify that the system still boots correctly.

  [Regression potential]
  Since NetworkManager-wait-online uses a 30 second timeout, services that 
depend on network-online.target should see at most a 30 second delay in 
startup.  There should be no functional regressions, only regressions in the 
speed of boot and only on systems where services have explicitly declared that 
they depend on the network and the network is not available at boot.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to