I don't believe your reproducer is valid - cloud-init is not installed
anymore, as autopkgtest-buildvm-ubuntu-cloud removes it when building
the VM, whereas it remains on the cloud images, as it's needed there to
actually get the IP address during boot.

Removing the DefaultDependencies=no means that ufw.service is
After=basic.target After=sysinit.target. cloud-init.service has
Before=sysinit.target, so would have to run before ufw.service.

It is After=systemd-networkd-wait-online.service though which is
After=systemd-networkd which is After=network-pre.target.

So there's the cycle, we need to run cloud-init After=network-pre (hence
After ufw), but determined before that cloud-init needs to run before
sysinit.target, which needs to run before ufw.service.

I can't reproduce the issue in a VM right now, though, because um,
cloud-init does not seem to start at all during second boot despite
seemingly being enabled.

** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
       Status: New

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

Title:
  ufw 0.36.1-3 introduces ordering cycle, breaking network

Status in cloud-init package in Ubuntu:
  New
Status in ufw package in Ubuntu:
  New

Bug description:
                                                                                
                               [    2.065178] systemd[1]: 
systemd-networkd.service: Found ordering cycle on network-pre.target/start
                                                                                
                               [    2.065276] systemd[1]: 
systemd-networkd.service: Found dependency on ufw.service/start
                                                                                
                               [    2.065356] systemd[1]: 
systemd-networkd.service: Found dependency on basic.target/start
                                                                                
                               [    2.065422] systemd[1]: 
systemd-networkd.service: Found dependency on sockets.target/start
                                                                                
                               [    2.065487] systemd[1]: 
systemd-networkd.service: Found dependency on cloud-init-hotplugd.socket/star
  t
                                                                                
                               [    2.065561] systemd[1]: 
systemd-networkd.service: Found dependency on sysinit.target/start
                                                                                
                               [    2.065626] systemd[1]: 
systemd-networkd.service: Found dependency on cloud-init.service/start
                                                                                
                               [    2.065700] systemd[1]: 
systemd-networkd.service: Found dependency on systemd-networkd-wait-online.se
  rvice/start
                                                                                
                               [    2.065795] systemd[1]: 
systemd-networkd.service: Found dependency on systemd-networkd.service/start
                                                                                
                               [    2.065870] systemd[1]: 
systemd-networkd.service: Job network-pre.target/start deleted to break 
ordering cycle starting with systemd-networkd.service/start
                                                                                
                               [[0;1;31m SKIP [0m] Ordering cycle found, 
skipping [0;1;39mNetwork (Pre)[0m

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1950039/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to