It worked fine in Ubuntu 23.10: network-online.target is only reached after eno1 is configured.
# journalctl -b |grep -e network -e grid5000.mount Apr 28 00:23:06 localhost kernel: drop_monitor: Initializing network drop monitor service Apr 28 00:23:06 localhost systemd[1]: Listening on systemd-networkd.socket - Network Service Netlink Socket. Apr 28 00:23:08 localhost systemd[1]: Starting cloud-init-local.service - Initial cloud-init job (pre-networking)... Apr 28 00:23:09 localhost systemd[1]: Finished cloud-init-local.service - Initial cloud-init job (pre-networking). Apr 28 00:23:09 localhost systemd[1]: Reached target network-pre.target - Preparation for Network. Apr 28 00:23:09 localhost systemd[1]: Starting systemd-networkd.service - Network Configuration... Apr 28 00:23:09 localhost systemd-networkd[1157]: lo: Link UP Apr 28 00:23:09 localhost systemd-networkd[1157]: lo: Gained carrier Apr 28 00:23:09 localhost systemd-networkd[1157]: Enumeration completed Apr 28 00:23:09 localhost systemd[1]: Started systemd-networkd.service - Network Configuration. Apr 28 00:23:09 localhost systemd-networkd[1157]: eno1: Configuring with /run/systemd/network/10-netplan-eno1.network. Apr 28 00:23:09 localhost systemd[1]: Reached target network.target - Network. Apr 28 00:23:09 localhost systemd[1]: Starting systemd-networkd-wait-online.service - Wait for Network to be Configured... Apr 28 00:23:09 localhost systemd-networkd[1157]: eno1: Link UP Apr 28 00:23:09 localhost systemd-networkd[1157]: eno1: Gained carrier Apr 28 00:23:10 localhost systemd-networkd[1157]: eno1: DHCPv4 address 172.16.66.58/20, gateway 172.16.79.254 acquired from 172.16.79.107 Apr 28 00:23:11 localhost systemd-networkd[1157]: eno1: Gained IPv6LL Apr 28 00:23:11 localhost systemd[1]: Finished systemd-networkd-wait-online.service - Wait for Network to be Configured. Apr 28 00:23:12 localhost systemd[1]: Reached target network-online.target - Network is Online. Apr 28 00:23:13 localhost systemd[1]: Mounting grid5000.mount - /grid5000... Apr 28 00:23:13 localhost dbus-daemon[1182]: [system] Activating systemd to hand-off: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.0' (uid=101 pid=1157 comm="/lib/systemd/systemd-networkd" label="unconfined") Apr 28 00:23:13 localhost systemd[1]: Starting networkd-dispatcher.service - Dispatcher daemon for systemd-networkd... Apr 28 00:23:13 localhost networkd-dispatcher[1197]: No valid path found for iwconfig Apr 28 00:23:13 localhost networkd-dispatcher[1197]: No valid path found for iw Apr 28 00:23:13 localhost systemd[1]: Started networkd-dispatcher.service - Dispatcher daemon for systemd-networkd. Apr 28 00:23:13 localhost systemd-networkd[1157]: eno1: DHCPv6 address 2001:660:4406:500:3::3a/128 (valid for 23h 59min 59s, preferred for 14h 59min 59s) Apr 28 00:23:14 gros-58 systemd[1]: Reloading requested from client PID 1345 (unit grid5000.mount)... Apr 28 00:23:14 gros-58 systemd[1]: Mounted grid5000.mount - /grid5000. Apr 28 00:23:22 gros-58 systemd[1541]: Listening on dirmngr.socket - GnuPG network certificate management daemon.
It worked fine in Ubuntu 23.10: network- online. target is only reached after eno1 is configured.
# journalctl -b |grep -e network -e grid5000.mount networkd. socket - Network Service Netlink Socket. local.service - Initial cloud-init job (pre-networking)... local.service - Initial cloud-init job (pre-networking). networkd. service - Network Configuration... networkd[ 1157]: lo: Link UP networkd[ 1157]: lo: Gained carrier networkd[ 1157]: Enumeration completed networkd. service - Network Configuration. networkd[ 1157]: eno1: Configuring with /run/systemd/ network/ 10-netplan- eno1.network. networkd- wait-online. service - Wait for Network to be Configured... networkd[ 1157]: eno1: Link UP networkd[ 1157]: eno1: Gained carrier networkd[ 1157]: eno1: DHCPv4 address 172.16.66.58/20, gateway 172.16.79.254 acquired from 172.16.79.107 networkd[ 1157]: eno1: Gained IPv6LL networkd- wait-online. service - Wait for Network to be Configured. online. target - Network is Online. freedesktop. hostname1' unit='dbus- org.freedesktop .hostname1. service' requested by ':1.0' (uid=101 pid=1157 comm="/ lib/systemd/ systemd- networkd" label="unconfined") dispatcher. service - Dispatcher daemon for systemd-networkd... dispatcher[ 1197]: No valid path found for iwconfig dispatcher[ 1197]: No valid path found for iw dispatcher. service - Dispatcher daemon for systemd-networkd. networkd[ 1157]: eno1: DHCPv6 address 2001:660: 4406:500: 3::3a/128 (valid for 23h 59min 59s, preferred for 14h 59min 59s)
Apr 28 00:23:06 localhost kernel: drop_monitor: Initializing network drop monitor service
Apr 28 00:23:06 localhost systemd[1]: Listening on systemd-
Apr 28 00:23:08 localhost systemd[1]: Starting cloud-init-
Apr 28 00:23:09 localhost systemd[1]: Finished cloud-init-
Apr 28 00:23:09 localhost systemd[1]: Reached target network-pre.target - Preparation for Network.
Apr 28 00:23:09 localhost systemd[1]: Starting systemd-
Apr 28 00:23:09 localhost systemd-
Apr 28 00:23:09 localhost systemd-
Apr 28 00:23:09 localhost systemd-
Apr 28 00:23:09 localhost systemd[1]: Started systemd-
Apr 28 00:23:09 localhost systemd-
Apr 28 00:23:09 localhost systemd[1]: Reached target network.target - Network.
Apr 28 00:23:09 localhost systemd[1]: Starting systemd-
Apr 28 00:23:09 localhost systemd-
Apr 28 00:23:09 localhost systemd-
Apr 28 00:23:10 localhost systemd-
Apr 28 00:23:11 localhost systemd-
Apr 28 00:23:11 localhost systemd[1]: Finished systemd-
Apr 28 00:23:12 localhost systemd[1]: Reached target network-
Apr 28 00:23:13 localhost systemd[1]: Mounting grid5000.mount - /grid5000...
Apr 28 00:23:13 localhost dbus-daemon[1182]: [system] Activating systemd to hand-off: service name='org.
Apr 28 00:23:13 localhost systemd[1]: Starting networkd-
Apr 28 00:23:13 localhost networkd-
Apr 28 00:23:13 localhost networkd-
Apr 28 00:23:13 localhost systemd[1]: Started networkd-
Apr 28 00:23:13 localhost systemd-
Apr 28 00:23:14 gros-58 systemd[1]: Reloading requested from client PID 1345 (unit grid5000.mount)...
Apr 28 00:23:14 gros-58 systemd[1]: Mounted grid5000.mount - /grid5000.
Apr 28 00:23:22 gros-58 systemd[1541]: Listening on dirmngr.socket - GnuPG network certificate management daemon.