[Bug 2047796] Re: autoinstall: user-data validation fails for users or packages if they contain list of object

Olivier Gayot 2047796 at bugs.launchpad.net
Tue Mar 26 13:56:42 UTC 2024


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
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/2047796

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

Status in cloud-init:
  New
Status in subiquity:
  New
Status in subiquity package in Ubuntu:
  Confirmed

Bug description:
  autoinstall.user-data schema validation failed in the following cases:

  * cannot define a user in user-config:

  autoinstall:
    user-data:
      users:
      - name: ubuntu
        plain_text_passwd: 'ubuntu'
        home: /home/ubuntu
        shell: /bin/bash
        lock_passwd: false
        gecos: Ubuntu all-oem-init
        groups: [adm, cdrom, dip, lxd, sudo]

  * cannot use packages[#].apt or packages[#].snap which contains a list
  of packages:

  autoinstall:
    user-data:
      packages:
      - snap:
        - certbot
        - [juju, --edge]
        - [lxd, --channel=5.15/stable]
      - apt:
        - mg

  These schemas documented in cloud-init documentations should be
  usable.

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




More information about the foundations-bugs mailing list