nova/releasenotes/notes/bug-1581977-310e5f218ccb1d16.yaml
Sean Mooney 6314f09ed4 [codespell] apply codespell to the releasenotes
this change fixes the typos in the releasenotes
"""
codespell --ignore-words=doc/dictionary.txt -i 3 -w  releasenotes/
"""

Change-Id: I29cd5268cd129b194c43a9f6b08a2b7b1c254b65
2023-10-03 01:17:21 +01:00

25 lines
1.5 KiB
YAML

---
fixes:
- |
Nova will now replace periods (``.``) with dashes (``-``) when sanitizing an
instance's display name for use as a hostname.
Nova publishes hostnames for instances via the metadata service and config
drives. This hostname is based on a sanitized version of the instance name
combined with the domain value specified in ``[api] dhcp_domain``. The
previous sanitization of the hostname included the replacement of whitespace
and underscores with dashes and the stripping of unicode characters along
with leading and trailing periods and dashes. It did not, however, include
the removal of periods in the name. Periods are not valid in the hostname
or, more specifically, in the host-specific or leaf label (the ``host`` in
``host.example.com``) and their presence can cause conflicts when ``[api]
dhcp_domain`` is configured, leading to instances being mistakenly
configured with hostnames like ``host.example.com.example.com``. More
pressingly, their use can result in a failure to boot instances if DNS
integration is enabled in neutron, likely via designate, as the hostname is
identified as a FQDN (fully-qualified domain name) by neutron and reasonable
instance names like ``test-ubuntu20.04`` will be rejected as invalid FQDNs,
in this case because the name would yield a TLD (top-level domain) of ``04``
and TLDs cannot be entire numerical. To avoid these issues, periods are now
replaced with dashes.