Skip to content
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

Fix rename interface #1564

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

schlichtanders
Copy link
Contributor

works around #1560

This makes the interface renaming failure tolerant. Worked for me with most recent autoscaler.
Still it would be even better if the network interface eth0 wouldn't be disconnecting and reconnecting initially

@schlichtanders schlichtanders requested a review from M4t7e November 20, 2024 14:32
@schlichtanders
Copy link
Contributor Author

after some test runs, this unfortunatly is not enough - sometimes even after 3 minutes the network is not available... there is hopefully a solution to this somewhere

@M4t7e
Copy link
Contributor

M4t7e commented Dec 3, 2024

I haven't encountered this personally, but I've read about others facing similar issues with the internal network interface connections to Hetzner's network. Are the issues occurring with both eth0 and eth1, or just one?

To ensure the configuration is as fault-tolerant as possible, I suggest waiting for the network interfaces to be fully up before proceeding with nmcli after this:

ip link set eth1 up

Example snippet to wait for up state:

until [ "$(cat /sys/class/net/eth0/operstate)" = "up" ]; do
    echo "Waiting for eth0 to be up"
    sleep 2
done

until [ "$(cat /sys/class/net/eth1/operstate)" = "up" ]; do
    echo "Waiting for eth1 to be up"
    sleep 2
done

If the problem persists after this, there may be an underlying issue or race condition with nmcli.

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.

2 participants