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

[wip]remove the KubeletVersion from ignorePreflightErrors for v1.29 #2944

Closed
wants to merge 1 commit into from

Conversation

pacoxu
Copy link
Member

@pacoxu pacoxu commented Oct 18, 2023

@k8s-ci-robot
Copy link
Contributor

@pacoxu: GitHub didn't allow me to request PR reviews from the following users: lalitc375.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @neolit123 @lalitc375

xref #2924

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.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/kinder Issues to track work in the kinder tool labels Oct 18, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pacoxu

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 18, 2023
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 18, 2023
Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

/hold for review

kinder/ci/kubeadm-periodic.tests.md Show resolved Hide resolved
kinder/ci/tools/update-workflows/config.yaml Show resolved Hide resolved
ignorePreflightErrors: "KubeletVersion"
ignorePreflightErrors: "{{.IgnorePreflightErrors}}"
Copy link
Member

Choose a reason for hiding this comment

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

can we just remove this old line:

ignorePreflightErrors: "KubeletVersion"

i don't remember why we added it.
the kubelet version should match the k8s version and the k8s version is N-1 of the kubeadm version.

Copy link
Member Author

Choose a reason for hiding this comment

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

- --ignore-preflight-errors={{ .vars.defaultIgnorePreflightErrors }}{{ .vars.ignorePreflightErrors }}
- --loglevel=debug

We will appendignorePreflightErrors after the defaultIgnorePreflightErrors.

Copy link
Member Author

Choose a reason for hiding this comment

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

We can remove ignorePreflightErrors suport and add KubeletVersion to the defaultIgnorePreflightErrors list then. And remove KubeletVersion from defaultIgnorePreflightErrors in v1.32.

Copy link
Member

@neolit123 neolit123 Nov 1, 2023

Choose a reason for hiding this comment

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

i see what the problem here is.
this file:
https://github.com/kubernetes/kubeadm/blob/e7452d437493fc9345cd2e243d7fba960af71fdb/kinder/ci/tools/update-workflows/templates/workflows/skew-kubelet-x-on-y.yaml

imports:
skew-x-on-y-tasks.yaml

so if you want to make changes to the kubelet skew it must be in skew-kubelet-x-on-y.yaml, not in skew-x-on-y-tasks.yaml. skew-x-on-y-tasks.yaml also applies to the kubeadm / control plane skew workflows.

if you add variables in skew-kubelet-x-on-y.yaml, they will act as overrides.

then again, this

ignorePreflightErrors: "{{.IgnorePreflightErrors}}"
comes from the config
ignorePreflightErrors: KubeletVersion

so as long as all config entries have the KubeletVersion preflight error ignored, it will work.
and there is no need to change skew-kubelet-x-on-y.yaml or skew-x-on-y-tasks.yaml.

does this make sense to you?

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 18, 2023
Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

what is the status of this @pacoxu ?
if you don't have time i can send the test / docs prs?

@pacoxu pacoxu changed the title remove the KubeletVersion from ignorePreflightErrors for v1.29 [wip]remove the KubeletVersion from ignorePreflightErrors for v1.29 Nov 1, 2023
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 1, 2023
@pacoxu
Copy link
Member Author

pacoxu commented Nov 1, 2023

I would suggest just changing the comments only in v1.29 if we want to keep it simple for maintenance.

I opened #2950.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 3, 2023
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

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.

Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

@pacoxu
test freeze is in two days.. you are probably busy with other things.
i will close this PR, send a new PR from me and ping you for review there.

@pacoxu
Copy link
Member Author

pacoxu commented Nov 13, 2023

Thanks @neolit123

@pacoxu pacoxu closed this Nov 13, 2023
Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

@pacoxu so after looking at this change and our comments from earlier again, we don't need to do changes to the tests. you already added the doc changes, those are ok.

we established that we can continue passing --ignore-preflight-errors=KubeletVesion even in cases where it's not needed.

that was because we don't want to update the config.yaml every release to target only specific versions with --ignore-preflight-errors=KubeletVesion, this is annoying. instead we can just leave the test jobs they way they are and in 1 year when all supported kubeadm versions supported the new skew drop the --ignore-preflight-errors=KubeletVesion for all of the jobs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/kinder Issues to track work in the kinder tool cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants