cloud-init status --wait fails with yaml load error
| Affects | Status | Importance | Assigned to | Milestone | ||
|---|---|---|---|---|---|---|
| cloud-init (Ubuntu) | Status tracked in Resolute | |||||
| Resolute |
Fix Released
|
Undecided
|
Unassigned | |||
Bug Description
$ lxc init -c security.
runcmd:
- echo '"'"'hai'"'"'
'
Creating openldap-ppm-test
$ lxc start openldap-ppm-test
$ lxc exec openldap-ppm-test -- cloud-init status --wait
2025-11-18 15:06:50,230 - util.py[WARNING]: Failed loading yaml blob. Yaml load allows (<class 'dict'>,) root types, but got str instead
...........status: done
this comes from /etc/cloud/
# written by cloud-init-base debian package per preseed entry
#
10 cloud-init-
which was created via /var/lib/
process_
seems to generate the failure message, which is just written down plainly as invalid yaml for cloud-init.
| description: | updated |
| Changed in cloud-init (Ubuntu Resolute): | |
| status: | Confirmed → In Progress |

workaround: before running cloud-init status --wait, do: cloud.cfg. d/90_dpkg_ local_cloud_ config. cfg
$ lxc exec openldap-ppm-test -- rm /etc/cloud/