[Bug 2047796] [NEW] autoinstall: user-data validation fails for users or packages if they contain list of object
Yao Wei
2047796 at bugs.launchpad.net
Tue Jan 2 06:20:47 UTC 2024
Public bug reported:
The user-data it will be converted into an object with integer key.
However, cloud-init considers such merged list as an object instead of
list, and the schema validator considers object and list differently,
causing issues like:
* 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.
** Affects: subiquity (Ubuntu)
Importance: Undecided
Status: New
--
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 subiquity package in Ubuntu:
New
Bug description:
The user-data it will be converted into an object with integer key.
However, cloud-init considers such merged list as an object instead of
list, and the schema validator considers object and list differently,
causing issues like:
* 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/ubuntu/+source/subiquity/+bug/2047796/+subscriptions
More information about the foundations-bugs
mailing list