Skip to content

Disable cloud-init network hotplug on Ubuntu 24.04 for Cilium and Ama…#17882

Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
yilmaz-burak:master
Jan 28, 2026
Merged

Disable cloud-init network hotplug on Ubuntu 24.04 for Cilium and Ama…#17882
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
yilmaz-burak:master

Conversation

@yilmaz-burak
Copy link
Copy Markdown
Contributor

@yilmaz-burak yilmaz-burak commented Jan 24, 2026

…zon VPC CNI

On Ubuntu 24.04+, cloud-init network hotplug is enabled by default (canonical/cloud-init#4799). This causes cloud-init to reconfigure netplan when CNIs dynamically attach secondary ENIs, breaking BPF masquerade and network routing functionality.

This fix disables cloud-init network hotplug by creating a configuration file at /etc/cloud/cloud.cfg.d/99-disable-network-hotplug.cfg that sets updates.network.when to an empty list, preventing cloud-init from handling any network update events including hotplug.

Fixes #17881

@k8s-ci-robot k8s-ci-robot added the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jan 24, 2026
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Jan 24, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: yilmaz-burak / name: Burak Yılmaz (3128f05)

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Welcome @yilmaz-burak!

It looks like this is your first PR to kubernetes/kops 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/kops has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 24, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @yilmaz-burak. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jan 24, 2026
@yilmaz-burak yilmaz-burak force-pushed the master branch 2 times, most recently from 84c0590 to e8154bf Compare January 24, 2026 22:47
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jan 24, 2026
…zon VPC CNI

On Ubuntu 24.04+, cloud-init network hotplug is enabled by default
(cloud-init PR 4799). This causes cloud-init to reconfigure netplan
when CNIs dynamically attach secondary ENIs, breaking BPF masquerade
and network routing functionality.

This fix disables cloud-init network hotplug by creating a configuration
file at /etc/cloud/cloud.cfg.d/99-disable-network-hotplug.cfg that sets
updates.network.when to only boot-new-instance, preventing cloud-init
from handling hotplug events.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jan 24, 2026
@hakman
Copy link
Copy Markdown
Member

hakman commented Jan 25, 2026

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 25, 2026
@hakman
Copy link
Copy Markdown
Member

hakman commented Jan 26, 2026

/cc @rifelpet

@k8s-ci-robot k8s-ci-robot requested a review from rifelpet January 26, 2026 10:48
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rifelpet

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 lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 28, 2026
@hakman
Copy link
Copy Markdown
Member

hakman commented Jan 28, 2026

/retest

@k8s-ci-robot k8s-ci-robot merged commit 69f1b3a into kubernetes:master Jan 28, 2026
32 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.36 milestone Jan 28, 2026
k8s-ci-robot added a commit that referenced this pull request Feb 8, 2026
#17882-#17933-origin-release-1.34

Automated cherry pick of #17867: Use a different systemd-networkd configuration for AL2023
#17882: Disable cloud-init network hotplug on Ubuntu 24.04 for Cilium and Ama…
#17933: Set MACAddressPolicy=none for AWS VPC CNI on AL2023
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

Ubuntu 24.04: cloud-init hotplug reconfigures netplan when Cilium attaches ENIs, breaking BPF masquerade

4 participants