For the second example, I tested with cloud-init from the jammy-security
pocket (i.e., 23.1.2-0ubuntu0~22.04.1):

$ cloud-init schema --config-file test.yaml

Invalid cloud-config test.yaml
Error: Cloud config schema errors: packages.0: {'snap': ['certbot', ['juju', 
'--edge'], ['lxd', '--channel=5.15/stable']]} is not valid under any of the 
given schemas, packages.1: {'apt': ['mg']} is not valid under any of the given 
schemas

Whereas with the version of cloud-init in the jammy-updates pocket
(i.e., 23.4.4-0ubuntu0~22.04.1):

$ cloud-init schema --config-file test.yaml

Valid schema test.yaml

Yao, do you reproduce the issue on a recent version of subiquity (or
ubuntu-desktop-bootstrap) ?

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

Title:
  autoinstall: user-data validation fails for users or packages if they
  contain list of object

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/2047796/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to