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

libazureinit currently does not bounce DHCP to publish hostname to Azure platform DNS #68

Open
anhvoms opened this issue Mar 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@anhvoms
Copy link
Contributor

anhvoms commented Mar 20, 2024

Description

Due to starting late (after network-online), azure-init ends up setting the computer name after DHCP. This has the side effect of not registering the correct hostname to DNS (as the image's stale hostname was what got sent in DHCP).

Impact

Hostname lookup for this VM will fail for other VMs that are in the same VNET or part of VNET peering.

Additional Information

This won't be an issue if we solve #35. Otherwise we'll have to restart network stack (e.g., NetworkManager)

@anhvoms anhvoms added the bug Something isn't working label Mar 20, 2024
@pothos
Copy link

pothos commented May 3, 2024

In Flatcar we also wanted to disable the if-up-down because we thought that setting on boot is enough but it is not: With waagent listing for internal hostname changes it also supports changes after boot to be propagated to Azure. Since the if-up-down is causing too much disruption I'm now trying out to explicitly trigger a new DHCP request which is a no-op for the interface state but propagates the hostname. For systemd-networkd the command is networkctl reconfigure IFACE (I first tried networkctl forcerenew IFACE and it didn't seem to work according to the unit logs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants