-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
Unify NetworkManager Connection Names #926
Unify NetworkManager Connection Names #926
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@M4t7e LGTM, tested and running well huh?
@mysticaltech Yes, I test everything before creating a PR. But tbh, I can only test to some extend because we have a lot of different settings, so I can't test manually all combinations. Agent, Server and Egress Nodes are working fine with this change and I tested it with a few cluster deployments. The only place where we use terraform-hcloud-kube-hetzner/agents.tf Lines 180 to 187 in 9f2e7eb
Here the connection name is obtained by the device name eth0 . So no hard-coded connection name is used.
Other places where NetworkManager is touched are here:
My assumption currently is, that cloud-init will never touch the config again after the very first init. If it would so, only the I'm in no hurry with this PR. So if anyone wants to take a look, I'd appreciate that 🙂 PS: A re-run of cloud-init would revert not only the |
Thanks for the explanation @M4t7e! Yes, in the future if we can make the whole flow that we currently use more robust to cloud-init it would be great. But normally it shouldn't run again. But if it does, we can run these scripts automatically after each reboot. Btw, I also do not test every combination, just one test is good enough 🙏 |
I will merge it ASAP today or tomorrow. |
This PR is mainly a cosmetic change to unify NetworkManager connection names to make life easier for humans interacting with
nmcli
.Before the change:
# nmcli connection show NAME UUID TYPE DEVICE cloud-init eth0 1dd9a779-d327-56e1-8454-c65e2556c12c ethernet eth0 Wired connection 1 fdcd1a0a-bb69-3017-a940-96773f29fb8d ethernet eth1 lo 9e961e02-e328-4a5f-98ed-227fbf4b189d loopback lo
After the change:
# nmcli connection show NAME UUID TYPE DEVICE eth0 1dd9a779-d327-56e1-8454-c65e2556c12c ethernet eth0 eth1 2a211c06-56de-35bb-967d-5b0c8378449e ethernet eth1 lo 086d46a4-41f2-4089-81ce-0517216dbe80 loopback lo