Skip to content

[Backport 2025.1] fix(aws): Make cloud-init wait for the network device#977

Draft
scylladbbot wants to merge 1 commit into
scylladb:next-2025.1from
scylladbbot:backport/858/to-2025.1
Draft

[Backport 2025.1] fix(aws): Make cloud-init wait for the network device#977
scylladbbot wants to merge 1 commit into
scylladb:next-2025.1from
scylladbbot:backport/858/to-2025.1

Conversation

@scylladbbot

Copy link
Copy Markdown

On some AWS instances, a race condition can occur where cloud-init
starts before the ENA network interface is fully initialized. This can
cause it to fail when it tries to fetch metadata or perform other
network-dependent tasks.

This commit addresses the issue by introducing a systemd override that
forces the cloud-init-local service to wait until the eth0 device is
available. This ensures the network is ready before cloud-init runs.

Additionally, the ena kernel module is now preloaded in initramfs to
ensure it's available as early as possible during the boot process.

Closes: SMI-243

Testing:

Parent PR: #858

On some AWS instances, a race condition can occur where cloud-init
starts before the ENA network interface is fully initialized. This can
cause it to fail when it tries to fetch metadata or perform other
network-dependent tasks.

This commit addresses the issue by introducing a systemd override that
forces the `cloud-init-local` service to wait until the `eth0` device is
available. This ensures the network is ready before cloud-init runs.

Additionally, the `ena` kernel module is now preloaded in initramfs to
ensure it's available as early as possible during the boot process.

Closes: SMI-243
(cherry picked from commit 232c519)
@scylladbbot

Copy link
Copy Markdown
Author

@fruch - This PR has conflicts, therefore it was moved to draft
Please resolve them and mark this PR as ready for review by removing the conflicts label

@scylladbbot scylladbbot added this to the 2025.1.15 milestone Jun 29, 2026
@github-actions github-actions Bot added the P2 label Jun 29, 2026
@fruch

fruch commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

@vponomaryov can you pickup this backport fix the conflict and give it a quick test with i3en as the original issue

Be in sync with @dimakr for help on building AMIs in repo

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants