Public bug reported: Tested with latest Ubuntu 14.04 image on Azure (20150908).
In Azure, the DHCP client on Ubuntu VMs is configured to push the current hostname to the DHCP server, which then publishes the hostname into Azure DNS. However, after changing the hostname and rebooting, the old hostname is always pushed to Azure DNS instead of the new one. Repro steps: - Create Ubuntu 14.04 VM on Azure - Edit /etc/hostname to change the hostname - Reboot the VM - After reboot, the hostname will be changed, but commands like 'hostname -f' and 'sudo' will complain that the new hostname cannot be found via a DNS lookup. Next, bounce DHCP to force the DNS update and check that the new hostname has been published: - Run "sudo ifdown eth0 && sudo ifup eth0" - After a few seconds run: "host NEWHOSTNAME". DNS lookup to the new hostname should succeed now indicating that the new hostname was pushed to the DHCP server and into Azure DNS. Commands like 'hostname -f' and 'sudo' will work now. However, after rebooting the OLD hostname will again be published to DNS: - Run 'sudo reboot' - After logging in, run "host OLDHOSTNAME" and see that the old hostname is again published to DNS. Commands like "hostname -f" and "host NEWHOSTNAME" will again fail. ** Affects: cloud-init (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1498179 Title: Azure: After changing hostname, old hostname is still published to DHCP after reboot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1498179/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs