ubuntu-desktop-installer: cloud-init not configured to use network-manager resulting in unread /etc/netplan/50-cloud-init.yaml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs |
New
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In this ephemeral install environment, the Ubuntu desktop installer prefers to setup NetworkManager for network configuration due to the file
affects:
ubuntu-
cat /etc/netplan/
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
But cloud-init package default configuration sets network renderers to netplan:
grep -B 1 renderers /etc/cloud/
network:
renderers: ['netplan', 'eni', 'sysconfig']
This results in cloud-init writing discovered network configuration to netplan files which will not be applied to the ephemeral system during boot via custom kernel commandline parameters which will break some potential custom install paths or cloud-init datasource overrides in the emphemeral desktop install environment.
You can see cloud-init trying to render netplan files by default in /var/log/
egrep 'netplan|
...
2022-07-26 15:43:12,972 - __init__.py[DEBUG]: Selected renderer 'netplan' from priority list: ['netplan', 'eni', 'sysconfig']
2022-07-26 15:43:12,972 - netplan.py[DEBUG]: V2 to V2 passthrough
2022-07-26 15:43:12,972 - util.py[DEBUG]: Writing to /etc/netplan/
2022-07-26 15:43:12,972 - subp.py[DEBUG]: Running command ['netplan', 'generate'] with allowed return codes [0] (shell=False, capture=True)
2022-07-26 15:43:26,106 - __init__.py[DEBUG]: Selected renderer 'netplan' from priority list: ['netplan', 'eni', 'sysconfig']
2022-07-26 15:43:26,106 - netplan.py[DEBUG]: V2 to V2 passthrough
2022-07-26 15:43:26,107 - util.py[DEBUG]: Writing to /etc/netplan/
2022-07-26 15:43:26,107 - subp.py[DEBUG]: Running command ['netplan', 'generate'] with allowed return codes [0] (shell=False, capture=True)
2022-07-26 15:43:26,166 - activators.
2022-07-26 15:43:26,166 - subp.py[DEBUG]: Running command ['netplan', 'apply'] with allowed return codes [0] (shell=False, capture=True)
...
Since Desktop ephemeral environment prefers NetworkManager to render network, it should change the default network renderers configured for cloud-init with a supplemental cloud config file
cat > /etc/cloud/
system_info:
network:
renderers: ['network-manager']
EOF
Related branches
- Łukasz Zemczak: Approve
- Chad Smith (community): Approve
-
Diff: 46 lines (+27/-0)2 files modifieddebian/changelog (+6/-0)
live-build/functions (+21/-0)
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
ubuntu-desktop-installer: cloud-init not configured to use network- - manager resulting in unread /etc/netplan /50-cloud-init.yaml + manager resulting in unread /etc/netplan/50-cloud-init.yaml |
description: | updated |
affects: | subiquity → livecd-rootfs |
Changed in livecd-rootfs (Ubuntu): | |
status: | New → Fix Released |
related bug for cloud-init providing livecd-rootfs the ability to override cloud-init's network activators https:/ /bugs.launchpad .net/livecd- rootfs/ +bug/1982857