schema: wrong validation of cc_users_groups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
The schema validation does detect the following wrong schema as valid:
```yaml
#cloud-config
groups:
- 3.14
```
Steps to reproduce:
```sh
cat <<EOF > /tmp/user-data
#cloud-config
groups:
- 3.14
EOF
lxc launch ubuntu-daily:jammy gg --config=
$ lxc exec gg -- cloud-init status --wait
..............
status: error
$ lxc exec gg -- grep -ni "error" /var/log/
412: raise TypeError(
413:TypeError: Unknown group name type float
440: raise TypeError(
441:TypeError: Unknown group name type float
$ lxc exec gg -- cloud-init schema --system
Valid cloud-config: system userdata
$ lxc exec gg -- echo $?
0
```
The schema validation should detect this schema as invalid.
Changed in cloud-init: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: bitesize |
tags: | removed: bitesize |
Attach logs