consider changing definition of "has network" to include DNS being set up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Subiquity currently assumes that if at least one nic has a default route, then the network is up enough to be used during installation. This definitely isn't always true -- one case is where the device being installed was netbooted in an isolated environment (you can configure things so it doesn't get a default route as a workaround but still). The reasonably suggestion is that waiting for a default route and a DNS server is a better indication of the network being usable.
Currently we monitor netlink to wait for a default route. I think we can talk DBUS to systemd-resolved to wait for a DNS server, but I don't have any practical experience with DBUS really.
--- original description ---
I am installing on an arm64 server using the autoinstaller (with the subiquity snap in the edge channel, version 21.04.2+
linux /vmlinuz console=hvc0 console=ttyAMA0 earlycon=
meta-data is an empty file, while user-data has content:
#cloud-config
autoinstall:
version: 1
# ubuntu/ubuntu
identity:
hostname: mynic
username: ubuntu
password: "$6$rounds=
ssh:
allow-pw: true
authorized-
- "ssh-rsa AAAAB3Nz..."
install-server: true
The error I see on the console is:
Ubuntu 20.04.2 LTS ubuntu-server ttyAMA0
connecting...
start: subiquity/
finish: subiquity/
start: subiquity/
finish: subiquity/
finish: subiquity/
finish: subiquity/
finish: subiquity/
start: subiquity/
start: subiquity/
start: subiquity/
See also LP: #1926132
tags: | added: fr-1358 |
summary: |
- Cannot apply netplan config when running autoinstaller + consider changing definition of "has network" to include DNS being set + up |
description: | updated |
It would be nice to have a way to get into the device to get more info, but I do not know how to do that atm.