Skip to content

Fix support for VPC CNI + RHEL9#18264

Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
rifelpet:amazonvpc-rhel9
May 3, 2026
Merged

Fix support for VPC CNI + RHEL9#18264
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
rifelpet:amazonvpc-rhel9

Conversation

@rifelpet
Copy link
Copy Markdown
Member

@rifelpet rifelpet commented May 3, 2026

Similar to #18261 but for RHEL 9.

According to RH docs, RHEL9 will have standard support for the foreseeable future.

This presubmit job passed with a temporary override to use VPC CNI + RHEL9 with this fix

@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 May 3, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot requested a review from hakman May 3, 2026 01:59
@k8s-ci-robot k8s-ci-robot requested a review from zetaab May 3, 2026 01:59
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 3, 2026
@rifelpet
Copy link
Copy Markdown
Member Author

rifelpet commented May 3, 2026

/test pull-kops-aws-distro-rhel9

@rifelpet rifelpet changed the title Disable nm-cloud-setup on RHEL 9 for AWS VPC CNI Fix support for VPC CNI + RHEL9 May 3, 2026
@rifelpet rifelpet force-pushed the amazonvpc-rhel9 branch from 93e9973 to 21b2af8 Compare May 3, 2026 11:57
@rifelpet rifelpet marked this pull request as ready for review May 3, 2026 11:57
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 3, 2026
@k8s-ci-robot k8s-ci-robot requested a review from olemarkus May 3, 2026 11:57
RHEL 9 ships NetworkManager-cloud-setup, whose nm-cloud-setup.service +
.timer poll IMDS for the secondary IPs assigned to ENIs (the AWS VPC
CNI's pod IPs) and tell NetworkManager to install per-IP source-routing
rules in reserved tables 30200/30201/30400/30401:

    30200: from <pod-ip> lookup 30200 proto static
    30400: from <pod-ip> lookup 30400 proto static
    ...
    32765: from <secondary-eni-primary-ip> lookup 2     ← AWS VPC CNI

The 30xxx priorities are below the AWS VPC CNI's rule at 32765, so they
take precedence. Pod traffic gets routed through tables that don't have
the routes the CNI needs for the service CIDR or IMDS, and pods can't
reach 100.64.0.1 or 169.254.169.254. Cluster validation times out with
all ebs-csi-node and CoreDNS pods stuck not-ready.

AWS's own VPC CNI troubleshooting guide explicitly calls out that
nm-cloud-setup must be disabled on EC2 nodes using the VPC CNI; EKS
AMIs ship without it, RHEL 9's stock cloud image enables it.

Mask both nm-cloud-setup.service and nm-cloud-setup.timer so neither
the periodic timer nor a package preset can re-enable them, then bounce
the active NetworkManager connections with `
nmcli connection down/up`
to drop the rules and routes nm-cloud-setup pushed before nodeup ran.
A marker file at /etc/kops/nm-cloud-setup-disabled keeps the disable
idempotent across nodeup re-runs.
@rifelpet rifelpet force-pushed the amazonvpc-rhel9 branch from 21b2af8 to fae5c6f Compare May 3, 2026 12:24
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 3, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

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

The pull request process is described 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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 3, 2026
@k8s-ci-robot k8s-ci-robot merged commit 27c1687 into kubernetes:master May 3, 2026
26 checks passed
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/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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