The cloud-init yaml errors are a problem also on lxd, I've created bug
#2131809.

Could reproduce the autopkgtest image dpkg error in a fresh resolute
container from just now (without local changes) with the following steps
on questing:

% lxc init -c security.nesting=true ubuntu-daily:26.04 autopkgtest-test
% lxc start autopkgtest-test
% cat > locale.gen <<eof
en_US.UTF-8 UTF-8
de_DE.UTF-8 UTF-8
en_DK.UTF-8 UTF-8
eof
% lxc file push locale.gen autopkgtest-test//etc/
% lxc exec openldap-ppm-test -- locale-gen
% lxc exec openldap-ppm-test -- timedatectl set-timezone Europe/Berlin
% lxc exec openldap-ppm-test -- sudo.ws -i -u ubuntu
container: % apt install autopkgtest qemu-system-x86 genisoimage
container: % autopkgtest-buildvm-ubuntu-cloud -v -a amd64 -r resolute -s 10G

<< yaml errors from bug #2131809 >>

   59.721266] cloud-init[258]: 2025-11-18 15:36:04,898 - util.py[WARNING]: 
Failed loading yaml blob. Yaml load allows (<class 'dict'>,) root types, but 
got str instead
[   60.960550] cloud-init[258]: 2025-11-18 15:36:06,131 - util.py[WARNING]: 
Failed loading yaml blob. Yaml load allows (<class 'dict'>,) root types, but 
got str instead
[   61.493800] cloud-init[258]: 2025-11-18 15:36:06,672 - schema.py[WARNING]: 
cloud-config failed schema validation! You may run 'sudo cloud-init schema 
--system' to check the details.

<< dpkg errors >>
[   62.135399] cloud-init[258]: dpkg: error: --add-architecture takes exactly 
one argument
[   62.140489] cloud-init[258]: Type dpkg --help for help about installing and 
deinstalling packages [*];
[   62.145879] cloud-init[258]: Use 'apt' or 'aptitude' for user-friendly 
package management;
[   62.150762] cloud-init[258]: Type dpkg -Dhelp for a list of dpkg debug flag 
values;
[   62.156802] cloud-init[258]: Type dpkg --force-help for a list of forcing 
options;
[   62.161672] cloud-init[258]: Type dpkg-deb --help for help about 
manipulating *.deb files;
[   62.169566] cloud-init[258]: Options marked [*] produce a lot of output - 
pipe it through 'less' or 'more' !
[  OK  ] Finished cloud-init-network.service - Cloud-init: Network Stage.
[...]

the script continues to run, though, and in the end it produces an img
(it did so also for my initial report).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2131431

Title:
  qemu image cloud-init yaml validation fails, dpkg architecture error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/2131431/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to