netplan is not doing a daemon-reload afer writing unit configuration on Ubuntu Core
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
When using this cloud.conf file in a gadget snap:
#cloud-config
datasource_list: [None]
users:
- name: ubuntu
sudo: "ALL=(ALL) NOPASSWD:ALL"
lock_passwd: false
shell: /bin/bash
passwd: "..."
ssh_
- "..."
On both UC22 and UC24, cloud-init shows this warning in /run/cloud-
...
"WARNING": [
"Running ['netplan', 'apply'] resulted in stderr output: Warning: The unit file, source configuration file or drop-ins of netplan-
]
...
doing "systemctl cat" for the affected units shows a similar error message.
There is a difference on behavior between UC22 and UC24 as in the former cloud-init finishes without error, but in the latter it finishes with a "recoverable error" code due to the netplan issue. However the same warning is shown.
Do we know the Netplan versions used in those UC22 & UC24 images?
This might also be related to https:/ /github. com/canonical/ netplan/ pull/421 which should be fixed as of Netplan v1.0 in Noble (and UC24?).