Just because tags show verification needed. I ran through and validated the netplan on jammy has right limited perms as root-rw and no warnings emitted by netplan apply due to permissions
## test logs csmith@midtown:~$ lxc launch ubuntu-daily:jammy t-j Creating t-j Starting t-j csmith@midtown:~$ lxc exec t-j -- cloud-init status --wait --format=yaml --- _schema_version: '1' boot_status_code: enabled-by-generator datasource: lxd detail: DataSourceLXD errors: [] extended_status: done init: errors: [] finished: 1714400907.8807135 recoverable_errors: {} start: 1714400907.4610379 init-local: errors: [] finished: 1714400906.754673 recoverable_errors: {} start: 1714400906.4037504 last_update: Mon, 29 Apr 2024 14:28:33 +0000 modules-config: errors: [] finished: 1714400913.6523855 recoverable_errors: {} start: 1714400913.5117085 modules-final: errors: [] finished: 1714400913.9227617 recoverable_errors: {} start: 1714400913.8417974 recoverable_errors: {} schemas: '1': boot_status_code: enabled-by-generator datasource: lxd detail: DataSourceLXD errors: [] extended_status: done init: errors: [] finished: 1714400907.8807135 recoverable_errors: {} start: 1714400907.4610379 init-local: errors: [] finished: 1714400906.754673 recoverable_errors: {} start: 1714400906.4037504 last_update: Mon, 29 Apr 2024 14:28:33 +0000 modules-config: errors: [] finished: 1714400913.6523855 recoverable_errors: {} start: 1714400913.5117085 modules-final: errors: [] finished: 1714400913.9227617 recoverable_errors: {} start: 1714400913.8417974 recoverable_errors: {} stage: null status: done stage: null status: done ...
csmith@midtown:~$ echo $? 0 csmith@midtown:~$ lxc exec t-j -- ls -ltr /etc/netplan/50-cloud-init.yaml -rw------- 1 root root 389 Apr 29 14:28 /etc/netplan/50-cloud-init.yaml csmith@midtown:~$ lxc exec t-j -- netplan apply WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running. csmith@midtown:~$ lxc exec t-j -- cloud-init --version /usr/bin/cloud-init 24.1.3-0ubuntu1~22.04.1
Just because tags show verification needed. I ran through and validated the netplan on jammy has right limited perms as root-rw and no warnings emitted by netplan apply due to permissions
## test logs by-generator _errors: {} _errors: {} _errors: {} _errors: {}
boot_status_ code: enabled- by-generator
extended_ status: done
finished: 1714400907.8807135
recoverabl e_errors: {}
finished: 1714400906.754673
recoverabl e_errors: {}
last_update: Mon, 29 Apr 2024 14:28:33 +0000
modules- config:
finished: 1714400913.6523855
recoverabl e_errors: {}
modules- final:
finished: 1714400913.9227617
recoverabl e_errors: {}
recoverable_ errors: {}
csmith@midtown:~$ lxc launch ubuntu-daily:jammy t-j
Creating t-j
Starting t-j
csmith@midtown:~$ lxc exec t-j -- cloud-init status --wait --format=yaml
---
_schema_version: '1'
boot_status_code: enabled-
datasource: lxd
detail: DataSourceLXD
errors: []
extended_status: done
init:
errors: []
finished: 1714400907.8807135
recoverable
start: 1714400907.4610379
init-local:
errors: []
finished: 1714400906.754673
recoverable
start: 1714400906.4037504
last_update: Mon, 29 Apr 2024 14:28:33 +0000
modules-config:
errors: []
finished: 1714400913.6523855
recoverable
start: 1714400913.5117085
modules-final:
errors: []
finished: 1714400913.9227617
recoverable
start: 1714400913.8417974
recoverable_errors: {}
schemas:
'1':
datasource: lxd
detail: DataSourceLXD
errors: []
init:
errors: []
start: 1714400907.4610379
init-local:
errors: []
start: 1714400906.4037504
errors: []
start: 1714400913.5117085
errors: []
start: 1714400913.8417974
stage: null
status: done
stage: null
status: done
...
csmith@midtown:~$ echo $? 50-cloud- init.yaml 50-cloud- init.yaml service is not running. 0ubuntu1~ 22.04.1
0
csmith@midtown:~$ lxc exec t-j -- ls -ltr /etc/netplan/
-rw------- 1 root root 389 Apr 29 14:28 /etc/netplan/
csmith@midtown:~$ lxc exec t-j -- netplan apply
WARNING:root:Cannot call Open vSwitch: ovsdb-server.
csmith@midtown:~$ lxc exec t-j -- cloud-init --version
/usr/bin/cloud-init 24.1.3-