desktop live installer: cloud-init/ubuntu-desktop-installer network config naming collisions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Seen on live desktop isos build date:
$ cat /cdrom/.disk/info
Ubuntu 23.04 "Lunar Lobster" - Dail amd64 (20230407)
$ snap list ubuntu-
Name Version Rev Tracking Publisher Notes
ubuntu-
Desktop live installer prefers NetworkManager backend for network config due to a netplan config file /etc/netplan/
network:
version: 2
renderer: NetworkManager
livecd-rootfs configures cloud-init to write directly to /etc/NetworkMan
/etc/cloud/
# Automatically generated by installer build process
system_info:
network:
renderers: ['network-manager']
activators: ['network-manager']
-
This tells cloud-init to write out /etc/NetworkMan
Later Ubuntu-
If there is a non-empty netplan config at this time, subiquity writes out /etc/netplan/
Then subiquity(
When netplan is rendering to `backend: NetworkManager` instead of the default networkd and it'll write /etc/NetworkMan
Ideally we probably want both cloud-init and subiquity to be configuring network in netplan config files so that any merged network config is well known by netplan and results in a single source of truth for network config.
This may mean dropping the overrides provided by livecd-roots setting cloud-init to render directly to network-manager.
Related branches
- Dan Bungert: Approve
-
Diff: 54 lines (+24/-11)2 files modifieddebian/changelog (+12/-0)
live-build/functions (+12/-11)
description: | updated |
Changed in livecd-rootfs (Ubuntu): | |
importance: | Undecided → High |
status: | New → In Progress |
This bug was fixed in the package livecd-rootfs - 2.821
---------------
livecd-rootfs (2.821) lunar; urgency=medium
[ Chad Smith ] desktop- installer .network is provided. This allows ubuntu- desktop- installer
* desktop livecd: allow cloud-init to write netplan config instead of
directly to /etc/NetworkManager because ubuntu-
will write netplan config in ephemeral boot stage when
autoinstall
to control all netplan config written and apply to the ephemeral boot
as generated from /etc/netplan/*. (LP: #2015605)
[ Dan Bungert ]
* d/control: fix uninstallability of livecd-rootfs due to rsync not being on
i386.
-- Dan Bungert <email address hidden> Fri, 07 Apr 2023 17:24:28 -0600