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
cluster: ipvs conntrack module vs kernel version #89327
Conversation
We should use 'nf_conntrack' instead of 'nf_conntrack_ipv4' for linux kernel >= 4.19
# https://github.com/kubernetes/kubernetes/pull/70398 | ||
local -r kernel_version=$(uname -r | cut -d\. -f1,2) | ||
local conntrack_module="nf_conntrack" | ||
if [[ $(printf "${kernel_version}\n4.18\n" | sort -V | tail -1) == "4.18" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the simplest solution I found, but requires coreutils >= 7, however, I don't think this can be a problem in the CI.
xref: https://stackoverflow.com/questions/4023830/how-to-compare-two-strings-in-dot-separated-version-format-in-bash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting ... :)
/approve changes only the ipvs code path which is already failing ... so let's try this. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, dims 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 |
/retest Review the full test history for this PR. Silence the bot with an |
1 similar comment
/retest Review the full test history for this PR. Silence the bot with an |
/retest
|
/retest
|
/retest Review the full test history for this PR. Silence the bot with an |
/retest
|
What type of PR is this?
/kind cleanup
/kind failing-test
What this PR does / why we need it:
We should use 'nf_conntrack' instead of 'nf_conntrack_ipv4'
for linux kernel >= 4.19
This causes that the test for ipvs fails with images that have a kernel >= 4.19 because tries to load the wrong kernel module and the helper scripts fails
kubernetes/cluster/gce/gci/configure-helper.sh
Lines 1499 to 1507 in f5df777
Failing job:
https://prow.k8s.io/view/gcs/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce-ipvs/1241055371510943744/
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: