live-server installer: 2 minute timeout on unconnected wired NIC when preferring wifi network config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned | ||
subiquity (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
version info:
$ cat /var/log/
Ubuntu-Server 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220801.3)
...
Starting Subiquity server revision 3698
The Ubuntu live server installer makes all NICs (wifi and wired) mandatory in netplan config even when only wifi is configured in the server installer dialogs. This prevents the login prompt from being shown on installed system initial reboot for 2 minutes while awaiting a network online scenario that will not be reached.
The netplan configuration of Wifi and wired NIC set both devices as mandatory for boot, blocking network-
This is not a regression with 22.04.1 point release as this behavior exists in 22.04 live installer images as well.
Steps to reproduce:
I have a device (Lenovo T14 laptop) with both an RJ45 jack and an Intel Alder Lake-P WiFi device
When prompted for "Network connections" in the server live installer dialog,
- No wired connection plugged in, leave NIC configured as "Automatic(DHCP)" (default setting) which reports "not connected" in Notes
- wifi -> Edit Wifi -> set network name -> set wifi password -> Save
Complete install, reboot into the installed machine to finalize cloud-init configuration:
See log during boot
`A start job is running on Wait for Network to be Configured (42s / no limit)`
# network config job timeout at 2min
Login as user created
csmith@midtown:~$ systemd-analyze
Startup finished in 15.654s (firmware) + 2.245s (loader) + 11.529s (kernel) + 2min 7.511s (userspace) = 2min 36.941s
graphical.target reached after 2min 7.272s in userspace
csmith@midtown:~$ systemd-analyze blame
2min 203ms systemd-
3.038s snapd.seeded.
1.139s cloud-config.
1.079s pollinate.service
698ms snapd.service
534ms console-
514ms cloud-init.service
486ms cloud-init-
459ms snapd.apparmor.
330ms dev-mapper-
311ms snap.lxd.
259ms systemd-
209ms cloud-final.service
182ms dev-loop1.device
182ms dev-loop0.device
182ms dev-loop2.device
157ms apparmor.service
145ms <email address hidden>
113ms dev-hugepages.mount
112ms dev-mqueue.mount
111ms sys-kernel-
109ms sys-kernel-
106ms lvm2-pvscan@
csmith@midtown:~$ cloud-init analyze blame
-- Boot Record 01 --
00.80000s (modules-
00.27600s (init-network/
00.08400s (modules-
00.06800s (modules-
00.02500s (modules-
00.02100s (modules-
00.02100s (init-network/
00.00400s (modules-
00.00300s (init-network/
00.00100s (modules-
00.00100s (modules-
00.00100s (modules-
00.00100s (modules-
00.00100s (modules-
00.00100s (modules-
00.00100s (modules-
00.00100s (modules-
00.00100s (init-network/
00.00100s (init-network/
00.00100s (init-network/
00.00100s (init-network/
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (modules-
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-network/
00.00000s (init-local/
1 boot records analyzed
$ sudo cat /etc/netplan/
# This is the network config written by 'subiquity'
network:
version: 2
wifis:
wlp0s20f3:
access-
password: <redacted>
dhcp4: true
$ cat /etc/netplan/
# This is the network config written by 'subiquity'
network:
ethernets:
enp0s31f6:
optional: true
dhcp4: true
version: 2
# Desired behavior
When a network device is not connected during install, maybe the installer should emit "optional: true" in the related /etc/netplan/ config for that interface. It would then avoid lengthy delays on subsequent boots, but still allow the device to be configured for dhcp just in case it is connected.
tags: | added: fr-2587 |
description: | updated |
summary: |
- live-server installer: 2 minute timeout when prefering wifi network + live-server installer: 2 minute timeout when preferring wifi network config |
description: | updated |
summary: |
- live-server installer: 2 minute timeout when preferring wifi network - config + live-server installer: 2 minute timeout on unconnected wired NIC when + preferring wifi network config |
I have the same issue the other way around (reproduced with Ubuntu Server 22.04.1 LTS Installer - Subiquity Version 22.07.2 as well as 22.10.1):
When installing it on a Laptop with an Ethernet adapter, a WiFi and cellular network card, but with the wireless connectivity disabled via hardware-switch the installer recognizes the wireless adapters as disables and configures them as such.
I configured the Ethernet adapter via static IPv4 and static IPv6 and that works, but on every boot there is this 2 minute timeout waiting for the network.