I believe that this change has broken cosmic cloud-images.
there is 'journalctl -o short-precise' output of a 20180530 image booted in kvm 
at
 http://paste.ubuntu.com/p/xhzxNc4QtR/

>From that you will see:
  May 31 15:54:35.838996 ubuntu systemd[1]: sysinit.target: Found ordering 
cycle on cloud-init.service/start
  May 31 15:54:35.839017 ubuntu systemd[1]: sysinit.target: Found dependency on 
systemd-networkd-wait-online.service/start
  May 31 15:54:35.839042 ubuntu systemd[1]: sysinit.target: Found dependency on 
systemd-networkd.service/start
  May 31 15:54:35.839064 ubuntu systemd[1]: sysinit.target: Found dependency on 
networkd-dispatcher.service/start

The result is that cloud-init.service does not run as it needs to.


** Description changed:

  [Impact]
  networkd-dispatcher's systemd unit has default dependencies, which means it 
starts much, much too late to have any effect for interfaces brought up by 
networkd at boot (since the events are missed, and not replayed).
  
  We should instead have systemd unit dependencies like this (replicating
  systemd-networkd's own):
  
  [Unit]
  Description=Dispatcher daemon for systemd-networkd
  DefaultDependencies=no
  After=systemd-udevd.service network-pre.target systemd-sysusers.service 
systemd-sysctl.service
  Before=systemd-networkd.service
  
  In local testing, this DTRT.
  
- [Test Case] 
+ [Test Case]
  Start systemd-networkd / boot system with it, ensure networkd-dispatcher is 
started before it.
+ 
+ Run 'journalctl -o short-precise | grep -i ordering'.  There cannot be
+ any ordering cycles present.
  
  [Regression potential]
  Slower boots as systemd-networkd will now only run after 
networkd-dispatcher.service, and that runs after dbus.service.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1772137

Title:
  networkd-dispatcher starts too late to take effect on boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/networkd-dispatcher/+bug/1772137/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to