[Bug 2063331] Re: systemd-networkd-wait-online.service runs into a timeout during boot

Danilo Egea Gondolfo 2063331 at bugs.launchpad.net
Fri Aug 30 11:06:54 UTC 2024


I'm guessing this is what's happening in your scenario:

ubuntu-desktop will install ubuntu-settings as one of its dependencies.
ubuntu-settings will install "/lib/netplan/00-network-manager-all.yaml".
This configuration file will delegate the network configuration to
Network Manager.

In this case, networkd will not manage any of your NICs and networkd-
wait-online will block waiting for any of the interfaces it manages to
become online. As it doesn't manage any interfaces, it will block until
it times out. I see it as a problem with the networkd-wait-online logic.

For your scenario, I'd suggest you to disable the wait-online service:

systemctl disable systemd-networkd-wait-online

Or, you can just not use Network Manager by adding "renderer: networkd"
to your main config file in /etc/netplan. But if you need ubuntu-desktop
you probably want to use Network Manager.

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

Title:
  systemd-networkd-wait-online.service runs into a timeout during boot

Status in subiquity:
  Fix Committed
Status in Release Notes for Ubuntu:
  Fix Released
Status in Ubuntu:
  Fix Committed
Status in netplan.io package in Ubuntu:
  Invalid

Bug description:
  I did an installation of http://cdimage.ubuntu.com/ubuntu-server/daily-live/20240423/noble-live-server-riscv64.img.gz on a Vision Five 2 board. The Vision Five 2 board has two LAN ports. I have one connected.
  systemd-networkd-wait-online.service runs into a timeout during boot. subiquity configured the network config to require both ports to be active:

  ```
  $ sudo cat /etc/cloud/cloud.cfg.d/90-installer-network.cfg
  # This is the network config written by 'subiquity'
  network:
    ethernets:
      end0:
        dhcp4: true
      end1:
        dhcp4: true
    version: 2
  ```

  ```
  $ systemd-analyze 
  Startup finished in 12.290s (kernel) + 2min 7.647s (userspace) = 2min 19.937s 
  graphical.target reached after 2min 7.546s in userspace.
  ```

  This might be related to bug #2060311.

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: subiquity (unknown)
  ProcVersionSignature: Ubuntu 6.8.0-31.31.1-generic 6.8.1
  Uname: Linux 6.8.0-31-generic riscv64
  ApportVersion: 2.28.1-0ubuntu2
  Architecture: riscv64
  CasperMD5json:
   {
     "result": "skip"
   }
  Date: Wed Apr 24 11:52:09 2024
  InstallationDate: Installed on 2024-04-24 (0 days ago)
  InstallationMedia: Ubuntu-Server 24.04 LTS "Noble Numbat" - Release riscv64 (20240423)
  SourcePackage: subiquity
  Symptom: installer
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/2063331/+subscriptions




More information about the foundations-bugs mailing list