Thank you Paul, for raising the issue!

It looks like systemd-networkd-wait-online.service (from v253/experimental) is 
more strict about our test bridge being DOWN (no-carrier), due to not being 
connected to any real interface. Blocking the boot process for up to two 
minutes and therefore timing out the testbed after 60 sec.

I can reproduce the failure in my local DebCI VM and the attached patch fixes 
the issue for me. I'll upload this into unstable once 0.106-2 migrated to 
testing.

-- Lukas


On Mon, 20 Mar 2023 21:57:21 +0100 Paul Gevers <elb...@debian.org> wrote:
Source: netplan.io
Version: 0.106-1
Severity: important
X-Debbugs-CC: syst...@packages.debian.org

Dear maintainers,

Since the upload of systemd 253~rc2-1 to experimental the autopkgtest tmpfails in unstable if tested with systemd from experimental. Your test asks for a reboot, which times out. As tmpfails are immediately retried by the Debian migration software, this is causing quite some load. Can you please investigate?

Paul

https://ci.debian.net/data/autopkgtest/unstable/amd64/n/netplan.io/32304482/log.gz

autopkgtest [19:18:33]: test autostart: [-----------------------
+ dpkg-vendor --is Debian
+ rm -f /etc/network/interfaces
+ systemctl unmask systemd-networkd.service
+ systemctl unmask systemd-networkd.socket
+ systemctl unmask systemd-networkd-wait-online.service
+ systemctl enable systemd-networkd.service
Created symlink /etc/systemd/system/dbus-org.freedesktop.network1.service → /lib/systemd/system/systemd-networkd.service. Created symlink /etc/systemd/system/multi-user.target.wants/systemd-networkd.service → /lib/systemd/system/systemd-networkd.service. Created symlink /etc/systemd/system/sockets.target.wants/systemd-networkd.socket → /lib/systemd/system/systemd-networkd.socket. Created symlink /etc/systemd/system/sysinit.target.wants/systemd-network-generator.service → /lib/systemd/system/systemd-network-generator.service. Created symlink /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service → /lib/systemd/system/systemd-networkd-wait-online.service.
+ systemctl start systemd-networkd.service
+ systemctl unmask systemd-resolved.service
+ systemctl enable systemd-resolved.service
+ systemctl start systemd-resolved.service
+ mount -o remount,rw /sys
+ systemctl unmask systemd-udevd.service
Removed "/etc/systemd/system/systemd-udevd.service".
+ systemctl start systemd-udevd.service
INFO: Doing initial check that there is no existing netplan config.
● systemd-networkd.service - Network Configuration
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; preset: enabled)
      Active: active (running) since Mon 2023-03-20 19:18:33 UTC; 419ms ago
TriggeredBy: ● systemd-networkd.socket
        Docs: man:systemd-networkd.service(8)
    Main PID: 1274 (systemd-network)
      Status: "Processing requests..."
       Tasks: 1 (limit: 308759)
      Memory: 1.3M
         CPU: 33ms
      CGroup: /system.slice/systemd-networkd.service
diff --git a/debian/tests/autostart.sh b/debian/tests/autostart.sh
index f3aee9fa..2142ca2f 100755
--- a/debian/tests/autostart.sh
+++ b/debian/tests/autostart.sh
@@ -35,6 +35,7 @@ Name=eth0 en*
 
 [Network]
 DHCP=yes
+KeepConfiguration=yes
 EOF
 
 case "${AUTOPKGTEST_REBOOT_MARK:-}" in
@@ -58,6 +59,7 @@ network:
   version: 2
   bridges:
     brtest00:
+      optional: true # ignore in systemd-networkd-wait-online.service to avoid testbed timeouts
       addresses: [10.42.1.1/24]
 EOF
 
diff --git a/debian/tests/cloud-init.sh b/debian/tests/cloud-init.sh
index 031e8944..15a6e0b6 100755
--- a/debian/tests/cloud-init.sh
+++ b/debian/tests/cloud-init.sh
@@ -33,6 +33,7 @@ Name=eth0 en*
 
 [Network]
 DHCP=yes
+KeepConfiguration=yes
 EOF
 
 case "${AUTOPKGTEST_REBOOT_MARK:-}" in
@@ -45,6 +46,7 @@ network:
   version: 2
   bridges:
     brtest00:
+      optional: true # ignore in systemd-networkd-wait-online.service to avoid testbed timeouts
       addresses: [10.42.1.1/24]
 EOF
         # Prepare a dummy netplan service unit, which will be moved to /run/systemd/system/

Reply via email to