oslo.config/oslo_config
Hervé Beraud 6480356928 Add a new type HostDomain.
HostDomain is like HostAddress with the support of
_ character - RFC1033

openstack services are failing to start when a hostname with underscore
_ is provided.

Example:

```
overcloud-novacompute_edge1-0.internalapi.localdomain
overcloud-novacompute_edge1-0.internalapi
```

Nova use `HostAddressOpt` to define `live_migration_inbound_addr`,
and if a hostname with underscore is present in the config file
then the service fail to start.

Example:

```
/etc/nova/nova.conf
live_migration_inbound_addr =
overcloud-novacompute_edge1-0.internalapi.localdomain
```

FQDN is a domain name that specifies its exact
location in the tree hierarchy of the Domain Name System (DNS).

Underscore are allowed by RFC1033 [1][2][3]. Indeed, while a hostname may not
contain other characters, such as the underscore character (_), other
DNS names may contain the underscore.[1][2].
Systems such as DomainKeys and service records use the underscore.

These changes allow us to use underscore with the `HostDomain`.

[1] https://www.ietf.org/rfc/rfc1912.txt
[2] https://www.ietf.org/rfc/rfc1033.txt
[3] http://domainkeys.sourceforge.net/underscore.html

Co-authored-by: Daniel Bengtsson <dbengt@redhat.com>
Change-Id: I0a0670207f96a987996d329e5efa9a5eb2ce000c
Closes-Bug: #1892044
2020-10-22 12:30:39 +02:00
..
sources Resolve UnboundLocalError 2020-05-01 16:45:04 +01:00
tests Add a new type HostDomain. 2020-10-22 12:30:39 +02:00
__init__.py Move files out of the namespace package 2014-12-12 16:13:29 -05:00
_i18n.py Switch to hacking 2.x 2020-02-12 09:56:58 +00:00
_list_opts.py ensure we do not modify private data from drivers 2018-07-17 12:35:13 -04:00
cfg.py Resolve UnboundLocalError 2020-05-01 16:45:04 +01:00
fixture.py track config file and command line locations for user settings 2018-03-15 10:14:03 -04:00
generator.py drop use of pkg_resources 2020-07-05 19:37:01 -04:00
iniparser.py Move files out of the namespace package 2014-12-12 16:13:29 -05:00
sphinxconfiggen.py Mark sphinx extensions thread safe 2020-04-14 11:04:14 +00:00
sphinxext.py Mark sphinx extensions thread safe 2020-04-14 11:04:14 +00:00
types.py Add a new type HostDomain. 2020-10-22 12:30:39 +02:00
validator.py drop use of pkg_resources 2020-07-05 19:37:01 -04:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:23 -05:00