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: add jsonschema definition to cc_write_files #3591

Closed
ubuntu-server-builder opened this issue May 12, 2023 · 2 comments
Closed

schema: add jsonschema definition to cc_write_files #3591

ubuntu-server-builder opened this issue May 12, 2023 · 2 comments
Labels
good first issue launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

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

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = 2022-05-18T16:51:18.715376+00:00
date_created = 2020-01-08T21:31:50.775768+00:00
date_fix_committed = 2022-04-08T20:49:42.956226+00:00
date_fix_released = 2022-05-18T16:51:18.715376+00:00
id = 1858931
importance = low
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1858931
milestone = None
owner = chad.smith
owner_name = Chad Smith
private = False
status = fix_released
submitter = chad.smith
submitter_name = Chad Smith
tags = ['bitesize']
duplicates = []

Launchpad user Chad Smith(chad.smith) wrote on 2020-01-08T21:31:50.775768+00:00

Add initial jsonschema definition for validation of cloud-config
user data to cloudinit/config/cc_write_files.py.

Add a schema dictionary to the cc_*.py module which describes allowed
cloud-config properties which are honored by the module.

jsonschema support for a cloud-config module should entail:

  • module-level schema dict definition in cc_*py
    • schema should contain the keys:
      id, name, title, description, distros, examples, frequency, type,
      properties
  • handler should call validate_cloudconfig_schema(cfg, schema) if valid
    top-level config module keys are provided

Good examples are:

  • cloudinit/config/cc_runcmd.py
  • cloudinit/config/cc_ubuntu_drivers.py
  • cloudinit/config/cc_zypper_add_repo.py
  • cloudinit/config/cc_ntp.py
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Chad Smith(chad.smith) wrote on 2022-04-08T20:49:45.624510+00:00

Upstream commit landed a fix for this bug
dd87c03

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Brett Holman(holmanb) wrote on 2022-05-18T16:51:19.400739+00:00

This bug is believed to be fixed in cloud-init in version 22.2. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant