Skip to content

Update to Ignition 0.35.0 / Spec 2.4 - #1543

Closed
LorbusChris wants to merge 4 commits into
openshift:masterfrom
LorbusChris:ignraw-2.4
Closed

LorbusChris wants to merge 4 commits into
openshift:masterfrom
LorbusChris:ignraw-2.4

Conversation

@LorbusChris

@LorbusChris LorbusChris commented Mar 6, 2020 •

Copy link
Copy Markdown
Contributor

Supports Ignition Config Spec <= v2.4

/hold

@LorbusChris
LorbusChris requested a review from runcom March 6, 2020 22:59
@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 6, 2020
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: LorbusChris
To complete the pull request process, please assign yuqi-zhang
You can assign the PR to them by writing /assign @yuqi-zhang in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kikisdeliveryservice

Copy link
Copy Markdown
Contributor

Why are we updating to 2.4?

@LorbusChris

Copy link
Copy Markdown
Contributor Author

HTTPHeaders were added to the spec in 2.4 and Installer already uses that feature in the provisioning of OpenStack nodes, via a shim (https://github.com/openshift/installer/blob/a135734617d76039b9494260975001b58a23c14b/pkg/tfvars/openstack/bootstrap_ignition.go#L9).

Everything still works right now with the Installer using the usual v2.2 for other platforms, but as a prereq for merging fcos and installer branches over there, all functions for generating Ignition configs are gathered and pulled into one location (and later another for all things spec3), so harmonization of spec versions across repos becomes a requirement, see openshift/installer#3248

@mtrmac mtrmac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just reviewing the mechanics of the thing, I don’t really understand the depths of the reconciliation process.

(I’m also very unsure about the RawExtension change, but I suppose that’s an item for #996 and I’m completely out of my depth for that one.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These four copies of essentially the same code keep getting larger and more unwieldy (and only two contain the c := c copy statement). Consider replacing it with a findConfigFile(mc, path)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is an optimization unrelated to the RawExt conversion and can be done separately if needed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another instance of the findConfigFile(mc, path) code.

Comment thread pkg/daemon/update_test.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

("999.0.0" or something clearly too high?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.0.0 is a version that actually exists and that is clearly not yet supported by MCO

@mtrmac mtrmac Mar 9, 2020 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other words, as soon as MCO adds support for it, this test will break. Or is that the purpose of this test?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test will indeed have to change once support is added.
However, right now it is important to check v3 is not accepted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree with @LorbusChris this should stay as-is

Comment thread pkg/daemon/update_test.go Resolved
Comment thread pkg/daemon/update_test.go Resolved
Comment thread pkg/server/server.go Resolved
Comment thread pkg/controller/template/render.go Resolved

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The “update mc.Spec.Config” operation might also be better with a helper (although saving one line and one variable, it’s less clear cut).

@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@LorbusChris: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-scaleup-rhel7 733aedb link /test e2e-aws-scaleup-rhel7
ci/prow/e2e-ovn-step-registry 733aedb link /test e2e-ovn-step-registry

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@LorbusChris

Copy link
Copy Markdown
Contributor Author

This probably won't be needed
/close

@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@LorbusChris: Closed this PR.

Details

In response to this:

This probably won't be needed
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants