Skip to content

k3s: retry ip address retrieval during setup #1374

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

Merged
merged 2 commits into from
Aug 7, 2025

Conversation

Nevon
Copy link
Contributor

@Nevon Nevon commented Aug 7, 2025

When networking is enabled but the interface does not have any IP assigned yet, k3s installation can fail. The IPAddress function says that it is guaranteed to return a value, which is technically true, but that value can be an empty string if the network interface exists but doesn't have any IP assigned.

This changes the k3s installation to wait for up to 20 seconds for an address to be assigned before failing.

Fixes #1373

When networking is enabled but the interface does not have any IP
assigned yet, k3s installation can fail. This changes that to wait for
up to 20 seconds for an address to be assigned before failing.

Fixes abiosoft#1373
@Nevon Nevon marked this pull request as ready for review August 7, 2025 09:45
@Nevon
Copy link
Contributor Author

Nevon commented Aug 7, 2025

Looks like one of the runners had an issue for one of the checks, but I don't have a way to retrigger it.

@abiosoft abiosoft changed the title Retry getting ip during k3s installation k3s: retry ip address retrieval during setup Aug 7, 2025
@abiosoft abiosoft merged commit 8c9d728 into abiosoft:main Aug 7, 2025
11 checks passed
@abiosoft
Copy link
Owner

abiosoft commented Aug 7, 2025

Thanks again :)

@Nevon Nevon deleted the k3s-wait-for-ip branch August 8, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

k3s installation potentially starts before IP assignment
2 participants