yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #68620
[Bug 1724414] [NEW] rhel distro selects FQDN as hostname
Public bug reported:
Currently cloud-init rhel distro selects FQDN over short hostname for set_hostname and
update_hostneme.
RHEL limits max hostname to 64 bytes by default:
$ getconf HOST_NAME_MAX
64
According to RFC 1035, the FQDN could up to 255 bytes. Setting hostname
to FQDN will fail if FQDN > 64 byets.
Normally the cloud will provide "local-hostname" in instance metadata,
which usually a short hostname. In sources/__init__.py get_hostname(),
we default FQDN to <local-hostname>.localdomain. If rhel set it as
hostname, then that's just wrong.
The proposal is to make rhel distro select shorter hostname over FQDN,
just as other distros. RHEL has its own preference, but not prohibiting
us doing improvement.
** Affects: cloud-init
Importance: Undecided
Status: New
** Patch added: "cloud-init-rhel-distro-select-hostname.patch"
https://bugs.launchpad.net/bugs/1724414/+attachment/4974309/+files/cloud-init-rhel-distro-select-hostname.patch
--
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/1724414
Title:
rhel distro selects FQDN as hostname
Status in cloud-init:
New
Bug description:
Currently cloud-init rhel distro selects FQDN over short hostname for set_hostname and
update_hostneme.
RHEL limits max hostname to 64 bytes by default:
$ getconf HOST_NAME_MAX
64
According to RFC 1035, the FQDN could up to 255 bytes. Setting
hostname to FQDN will fail if FQDN > 64 byets.
Normally the cloud will provide "local-hostname" in instance metadata,
which usually a short hostname. In sources/__init__.py get_hostname(),
we default FQDN to <local-hostname>.localdomain. If rhel set it as
hostname, then that's just wrong.
The proposal is to make rhel distro select shorter hostname over FQDN,
just as other distros. RHEL has its own preference, but not
prohibiting us doing improvement.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1724414/+subscriptions
Follow ups