[Bug 1268050] Re: Deprovision breaks iDNS registration when using cloud-init
Ben Howard
ben.howard at canonical.com
Wed Jan 15 22:15:44 UTC 2014
** Description changed:
+ SRU justification
+
+ Impact : Users who run "waagent --deprovision" and then capture/snapshot
+ an image will not have the instance register with iDNS and subsiquently
+ the instance will be unreachable.
+
+ This issue is caused by waagent changing the "send-hostname" parameter
+ in the dhclient.
+
+ Fix : Applied upstream commit from
+ https://github.com/WindowsAzure/WALinuxAgent/commit/375f1ede38fd323c2560e7e21ba99ac50bc66acd
+
+ Test Case :
+ - Launch instance
+ - Install walinuxagent from proposed
+ - Run "waagent --deprovision"
+ - Shutdown instance
+ - Run "azure vm shutdown <name>" with Azure CLI tool
+ - Run "azure vm capture <name> <new name>" with Azure CLI tool
+ - Launch new instance from <new name>
+ - Confirm that instance is accesable using DNS name
+
+ Regression : Low. The change fixes how waagent interacts with
+ /etc/dhcp/dhcpclient.conf. If an instance has been configured via cloud-
+ init, there is no change.
+
+ [ORIGNIAL BUG REPORT]
Hello,
This is a request to please backport this patch from the 1.4.1 agent:
https://github.com/WindowsAzure/WALinuxAgent/commit/375f1ede38fd323c2560e7e21ba99ac50bc66acd
-
Summary
The Ubuntu images in the Windows Azure gallery (except for 12.10) all use cloud-init for provisioning. This means that WALA provisioning and the hostname monitor are disabled via /etc/waagent.conf.
However, when a user runs 'waagent -deprovision' the agent will attempt
to modify the 'send host-name' parameter dhclient.conf file to set the
hostname to "localhost.localdomain". But with provisioning and the
monitor disabled, the agent does not have a chance to reset this
parameter to the proper hostname. So captured Ubuntu images will not
register their correct DNS name with the DHCP server.
In the Ubuntu images this behavior is not necessary since dhclient is
already configured to send its hostname to the DHCP server. This patch
makes the agent a bit smarter about this and leaves dhclient.conf alone
if it sees that it is already configured to send it's current hostname
to the DHCP server.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to walinuxagent in Ubuntu.
https://bugs.launchpad.net/bugs/1268050
Title:
Deprovision breaks iDNS registration when using cloud-init
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/walinuxagent/+bug/1268050/+subscriptions
More information about the Ubuntu-server-bugs
mailing list