Setting "optional: true" to overcome he timeout "Job systemd-networkd-wait-online" does no longer work with latest noble image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Fix Released
|
High
|
Lukas Märdian | ||
Ubuntu on IBM z Systems |
Fix Released
|
Medium
|
Unassigned | ||
netplan.io (Ubuntu) |
Fix Released
|
High
|
Lukas Märdian | ||
Noble |
Fix Released
|
High
|
Lukas Märdian | ||
systemd (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Noble |
Invalid
|
High
|
Unassigned |
Bug Description
Especially on s390x (but not limited to s390x) it's often the case that a system has network devices that are not necessarily connected during boot-up and one gets such a 2 min timeout:
"Job systemd-
In the past I could avoid that by setting "optional: true" post-install (no perfect, but worked),
but this does no longer seem to work using the latest noble ISO image (Apr 5th).
Setting 'optional: true' in /etc/netplan/
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/
# network: {config: disabled}
network:
ethernets:
enP1p0s0:
dhcp4: true
enP1p0s0d1:
dhcp4: true
enP2p0s0:
dhcp4: true
enP2p0s0d1:
dhcp4: true
encc000: {}
version: 2
vlans:
- 10.11.12.15/24
id: 2653
link: encc000
- 10.11.12.1
... can be set fine (also --dry-run does not moan, except about dhcp4).
This worked in the past on noble, but also on older Ubuntu releases like jammy.
Changed in netplan: | |
importance: | Undecided → Critical |
importance: | Critical → High |
Changed in systemd (Ubuntu): | |
importance: | Undecided → High |
Changed in netplan: | |
assignee: | nobody → Lukas Märdian (slyon) |
tags: |
added: foundations-todo removed: rls-nn-incoming |
Changed in systemd (Ubuntu): | |
milestone: | none → ubuntu-24.04 |
Changed in netplan.io (Ubuntu): | |
milestone: | none → ubuntu-24.04 |
Changed in systemd (Ubuntu Noble): | |
status: | Confirmed → Invalid |
tags: |
added: block-proposed update-excuse removed: foundations-todo |
Changed in netplan.io (Ubuntu Noble): | |
status: | Confirmed → In Progress |
assignee: | nobody → Lukas Märdian (slyon) |
Changed in netplan.io (Ubuntu Noble): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | New → Fix Released |
Changed in netplan: | |
status: | In Progress → Fix Committed |
There has been confusion in this area in the past. But the stance of upstream is that RequiredForOnli ne=no => "interface is _ignored_ by systemd- networkd- wait-online" . Hence, if every interface is optional: true, it is expected that systemd- networkd- wait-online will timeout.
I have recently suggested that netplan moves to a strategy where if interface ethX is optional:false, then enable <email address hidden>. And, if ethX has optional: true, then do nothing (namely do _not_ set RequiredForOnli ne=no). We probably need to then either disable systemd- networkd- wait-online. service by default, or change the default flags.