[train] HostAddressOpt not accepting undercore in the hostnames ( allowed by RFC1033)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Fix Released
|
Undecided
|
Daniel Bengtsson |
Bug Description
openstack services are failing to start when a hostname with underscord _ is provided
```
2020-08-14 15:42:35.813 8 ERROR nova During handling of the above exception, another exception occurred:
2020-08-14 15:42:35.813 8 ERROR nova
2020-08-14 15:42:35.813 8 ERROR nova Traceback (most recent call last):
2020-08-14 15:42:35.813 8 ERROR nova File "/usr/bin/
2020-08-14 15:42:35.813 8 ERROR nova sys.exit(main())
2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/
2020-08-14 15:42:35.813 8 ERROR nova service.wait()
2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/
2020-08-14 15:42:35.813 8 ERROR nova _launcher.wait()
2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/
2020-08-14 15:42:35.813 8 ERROR nova status, signo = self._wait_
2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/
2020-08-14 15:42:35.813 8 ERROR nova self.conf.
2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/
2020-08-14 15:42:35.813 8 ERROR nova _sanitize(opt, getattr(group_attr, opt_name)))
2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/
2020-08-14 15:42:35.813 8 ERROR nova return self._conf.
2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/
2020-08-14 15:42:35.813 8 ERROR nova value, loc = self._do_get(name, group, namespace)
2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/
2020-08-14 15:42:35.813 8 ERROR nova raise ConfigFileValue
2020-08-14 15:42:35.813 8 ERROR nova oslo_config.
2020-08-14 15:42:35.813 8 ERROR nova
# podman exec -u 0 -ti nova_libvirt rpm -qa | grep oslo-config
python3-
# grep overcloud-
172.16.12.80 overcloud-
# grep overcloud-
172.16.12.80 overcloud-
```
# How to reproduce
1. add a hostname with underscord in the config file, for example
/etc/nova/nova.conf
live_migration_
ensure hostname is in etc/hosts
2. restart the service
# Details
While a hostname may not contain other characters, such as the underscore character (_), other DNS names may contain the underscore.
Within the RFC 1033 [3] the following characters are recommended for use in a host name (besides the dot separator):
"A-Z", "a-z", "0-9", dash and underscore
[1] http://
[2] https:/
[3] https:/
Changed in oslo.config: | |
assignee: | Herve Beraud (herveberaud) → Daniel Bengtsson (damani42) |
Fix proposed to branch: master /review. opendev. org/746723
Review: https:/