yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #61146
[Bug 1647910] Re: hostname is set incorrectly if localhostname is fully qualified
** Also affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Changed in: cloud-init (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1647910
Title:
hostname is set incorrectly if localhostname is fully qualified
Status in cloud-init:
Fix Released
Status in cloud-init package in Ubuntu:
Fix Released
Bug description:
If no data source is available and the local hostname is set to
"localhost.localdomain", and /etc/hosts looks like:
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
Then in sources/__init__.py in get_hostname:
- util.get_hostname() will return 'localhost.localdomain'
- util.get_fqdn_from_hosts(hostname) will return 'localhost'
- 'toks' will be set to [ 'localhost.localdomain', 'localdomain'
And ultimately the system hostname will be set to
'localhost.localdomain.localdomain', which isn't useful to anybody.
Also reported in:
https://bugzilla.redhat.com/show_bug.cgi?id=1389048
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1647910/+subscriptions
References