Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema: wrong validation of cc_users_groups #3991

Open
ubuntu-server-builder opened this issue May 12, 2023 · 1 comment
Open

schema: wrong validation of cc_users_groups #3991

ubuntu-server-builder opened this issue May 12, 2023 · 1 comment
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1979491

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2022-06-22T09:54:20.224282+00:00
date_fix_committed = None
date_fix_released = None
id = 1979491
importance = medium
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1979491
milestone = None
owner = aciba
owner_name = Alberto Contreras
private = False
status = triaged
submitter = aciba
submitter_name = Alberto Contreras
tags = []
duplicates = []

Launchpad user Alberto Contreras(aciba) wrote on 2022-06-22T09:54:20.224282+00:00

The schema validation does detect the following wrong schema as valid:

#cloud-config
groups:
  - 3.14

Steps to reproduce:

cat <<EOF > /tmp/user-data
#cloud-config
groups:
  - 3.14
EOF

lxc launch ubuntu-daily:jammy gg --config=user.user-data="$(cat /tmp/user-data)"
$ lxc exec gg -- cloud-init status --wait
..............
status: error

$ lxc exec gg -- grep -ni "error" /var/log/cloud-init.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.

@ubuntu-server-builder ubuntu-server-builder added bug Something isn't working correctly launchpad Migrated from Launchpad labels May 12, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Alberto Contreras(aciba) wrote on 2022-06-22T09:55:52.413828+00:00

Attach logs

Launchpad attachments: cloud-init.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant