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 error appears during boot regarding network v2 config with NoCloud #4814

Closed
dermotbradley opened this issue Jan 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working correctly

Comments

@dermotbradley
Copy link
Contributor

Bug report

Whilst booting the console output shows:

2024-01-28 20:53:11,605 - schema.py[WARNING]: Invalid network-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors.

running cloud-init schema --system shows:

Skipping network-config schema validation. No network schema for version: 2

The console-displayed message should not appear as the network-config provided is not invalid, the schema checker merely doesn't know how to validate it.

Steps to reproduce the problem

Environment details

  • Cloud-init version: git Main
  • Operating System Distribution: Alpine Linux
  • Cloud provider, platform or installer type: NoCloud with ISO

cloud-init logs

@dermotbradley dermotbradley added bug Something isn't working correctly new An issue that still needs triage labels Jan 28, 2024
@blackboxsw blackboxsw removed the new An issue that still needs triage label Jan 29, 2024
@blackboxsw blackboxsw self-assigned this Jan 29, 2024
blackboxsw added a commit to blackboxsw/cloud-init that referenced this issue Jan 29, 2024
Avoid warning when network-config schema is version 2 and we
are on non-netplan systems because cloud-init doesn't yet
have static JSON network-config schema defined yet for
version 2.

Fixes canonicalGH-4814
@blackboxsw
Copy link
Collaborator

Thanks for the bug @dermotbradley I'll put up a PR shortly to address this

blackboxsw added a commit to blackboxsw/cloud-init that referenced this issue Jan 29, 2024
Avoid warning when network-config schema is version 2 and we
are on non-netplan systems because cloud-init doesn't yet
have static JSON network-config schema defined yet for
version 2.

Fixes canonicalGH-4814
blackboxsw added a commit to blackboxsw/cloud-init that referenced this issue Jan 29, 2024
Avoid warning when network-config schema is version 2 and we
are on non-netplan systems because cloud-init doesn't yet
have static JSON network-config schema defined yet for
version 2.

Also fixes integration test to expect python3 netplan API
on Ubuntu Mantic and newer.

Fixes canonicalGH-4814
blackboxsw added a commit to blackboxsw/cloud-init that referenced this issue Jan 29, 2024
Avoid warning when network-config schema is version 2 and we
are on a system within netplan python modules because cloud-init
doesn't ye have static JSON network-config schema defined yet for
version 2.

Also fixes integration test to expect python3 netplan API
on Ubuntu Mantic and newer.

Fixes canonicalGH-4814
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
Projects
None yet
Development

No branches or pull requests

2 participants