[Bug 812539] Re: FQDN does not get set correctly in /etc/hosts

Adam Gandelman 812539 at bugs.launchpad.net
Mon Jul 18 20:41:15 UTC 2011


Rev 406 ( sanitize hosts file for system hostname (LP: #802637) )
attempts to set the hostname for 127.0.0.1 in /etc/hosts, however:

1.  It is using a hard-coded domain of ".localdomain" instead of what is supplied by the cloud provider.
2.  It is using platform.node() method to obtain its hostname when it should be using what is provided from cloud-init's data sources.

The following patch fixes this and allows hosts to boot with a valid
FQDN as reported by the instance metadata.

Additionally, instances FQDN is included when propagating /etc/hosts
from template.

** Patch added: "cloud-init-fqdn.patch"
   https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/812539/+attachment/2215577/+files/cloud-init-fqdn.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/812539

Title:
  FQDN does not get set correctly in /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/812539/+subscriptions



More information about the Ubuntu-server-bugs mailing list