DNS failure while trying to fetch user-data
Bug #2008952 reported by
Ken VanDine
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Chad Smith | ||
netplan |
Invalid
|
Undecided
|
Danilo Egea Gondolfo | ||
subiquity |
Invalid
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In testing netboot + autoinstall of the new ubuntu desktop subiquity based installer for 23.04 I found cloud-init is failing to retrieve user-data because it can't resolved the hostname in the URL. This same configuration does work for 22.04 based subiquity, so seems a regression.
From the ipxe config:
imgargs vmlinuz initrd=initrd \
ip=dhcp \
iso-url=http://
fsck.mode=skip \
layerfs-
autoinstall \
'ds=nocloud-net;s=http://
That fails, but if we replace boot.linuxgroov
Related branches
~chad.smith/livecd-rootfs:desktop-cloud-init-after-network-manager-ordering
- Dimitri John Ledkov (community): Needs Information (converting to a drop-in might be tricky)
- Dan Bungert: Approve
-
Diff: 72 lines (+47/-0)1 file modifiedlive-build/functions (+47/-0)
Changed in cloud-init: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: rls-ll-incoming |
Changed in netplan: | |
status: | New → Invalid |
Changed in cloud-init: | |
status: | Triaged → In Progress |
Changed in subiquity: | |
status: | New → Invalid |
To post a comment you must log in.
There are a couple of significant issues that may be leading to this symptom:
1. On Desktop live server images, something is laying down a competing file for management of the wired NIC on my laptop:
/etc/netlan/ 01-network- manager- all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
Yet /etc/cloud/ cloud.cfg specifies priority order of network renderers to prefer using netplan insteaad of NetworkManager:
networks:
renderers: ['netplan', 'eni', 'sysconfig']
activators: ['netplan', 'eni', 'network-manager', 'networkd']
This causes cloud-init to also write out /etc/netplan/ 50-cloud- init.yaml which also tries to claim management of enp0s31f6 under systemd-networkd:
network:
version: 2
ethernets:
enp0s21f6:
dhcp4: true
match:
macaddress: 6c:24:08:9e:54:e7
set-name: enp0s31f6
The result is undetermined behavior in early boot as NetworkManager and systemd-networkd fight over who owns the wired device. This could be the resulting DNS lookup failures we are seeing.
Resolution: I think desktop images want to avoid telling cloud-init to render networking using netplan. I believe we are missing this proposed fix to livecd rootfs:
https:/ /code.launchpad .net/~dbungert/ livecd- rootfs/ +git/livecd- rootfs/ +merge/ 427445