-
Notifications
You must be signed in to change notification settings - Fork 247
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
Unknown config field only yields warning, continues boot #853
Comments
In this case Ignition is spitting out warnings (and not exiting with an error) by design. When updating the Ignition schema, we may have to add a new key at any level for any purpose. This is usually done without breaking backward compatibility (not only in Ignition, but generally in software design). The alternative behavior that you are suggesting would remove any wiggle room we have in updating the configuration schema, resulting in a semver-breaking bump for each new one. |
@lucab New config keys are only added in new spec versions, so I'm not sure that argument applies here. |
Hmm. My guess is we have the current behavior for backwards compatibility. Ignition's ignored unused keys from the start and so we could never make that change without breaking users. We actually do have the opportunity now, since we're still in preview. Does anyone know of a good reason to not fail on unused keys? |
@cgwalters has a usecase for this here: #863 (comment) |
See also related discussions in #696. |
Bug
If I put in a key in my ignition config that is unused should my system continue to boot? In my example I was handcrafting an ignition config (shame on me) based on ignition snippets provided by another user and I placed the
filsystems
key at the toplevel and not under thestorage
key. My system booted, but my filesystems weren't set up as I would expect.The ignition config used:
The logs do show a warning:
Which is the same thing that ignition-validate shows:
but it's just flagged as a warning and
ignition-validate
returns with a successful exit code.Operating System Version
fedora/x86_64/coreos/testing
at30.20190905.0
Ignition Version
ignition-2.0.1-2.gite75cf24.fc30.x86_64
Environment
QEMU
Expected Behavior
Probably this should error? I guess that's what I'm here to discuss.
Actual Behavior
Warning with no erroring out.
The text was updated successfully, but these errors were encountered: