Hi, cloud-init doesn’t seem to be running correctly on some images
lxd 4.20
lxc profile show p1
config:
user.user-data: |
#cloud-config
users:
- name: test
description: P1 LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: p1
used_by:
- /1.0/instances/c3?project=myproject
- /1.0/instances/c4?project=myproject
lxc launch images:debian/11/cloud c1 --profile p1
lxc exec c1 -- ls /home/
debian #should be test
lxc launch images:centos/8-Stream/cloud c3 --profile p1
lxc exec c3 -- ls /home/
test #ok
lxc exec c1 -- cat /var/log/cloud-init.log
...
2021-11-17 17:33:15,827 - util.py[WARNING]: Failed loading yaml blob. Invalid format at line 4 column 12: "while scanning for the next token
found character '%' that cannot start any token
in "<unicode string>", line 4, column 12:
name: {% if instance.type == "virtual-m ...
...