Description of problem: 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/nova-compute", line 10, in <module> 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/python3.6/site-packages/nova/cmd/compute.py", line 59, in main 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/python3.6/site-packages/nova/service.py", line 458, in wait 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/python3.6/site-packages/oslo_service/service.py", line 392, in wait 2020-08-14 15:42:35.813 8 ERROR nova status, signo = self._wait_for_exit_or_signal() 2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/python3.6/site-packages/oslo_service/service.py", line 367, in _wait_for_exit_or_signal 2020-08-14 15:42:35.813 8 ERROR nova self.conf.log_opt_values(LOG, logging.DEBUG) 2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2589, in log_opt_values 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/python3.6/site-packages/oslo_config/cfg.py", line 3134, in __getattr__ 2020-08-14 15:42:35.813 8 ERROR nova return self._conf._get(name, self._group) 2020-08-14 15:42:35.813 8 ERROR nova File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2631, in _get 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/python3.6/site-packages/oslo_config/cfg.py", line 2705, in _do_get 2020-08-14 15:42:35.813 8 ERROR nova raise ConfigFileValueError(message) 2020-08-14 15:42:35.813 8 ERROR nova oslo_config.cfg.ConfigFileValueError: Value for option live_migration_inbound_addr from LocationInfo(location=<Locations.user: (4, True)>, detail='/etc/nova/nova.conf') is not valid: overcloud-novacompute_edge1-0.internalapi.localdomain is not a valid host address 2020-08-14 15:42:35.813 8 ERROR nova OSP16.0 # podman exec -u 0 -ti nova_libvirt rpm -qa | grep oslo-config python3-oslo-config-6.11.2-0.20200221150642.22c286c.el8ost.noarch # grep overcloud-novacompute_edge1-0.internalapi.localdomain /etc/hosts 172.16.12.80 overcloud-novacompute_edge1-0.internalapi.localdomain overcloud-novacompute_edge1-0.internalapi How reproducible: always Steps to Reproduce: 1. add a hostname with underscord in the config file, for example /etc/nova/nova.conf live_migration_inbound_addr = overcloud-novacompute_edge1-0.internalapi.localdomain ensure hostname is in etc/hosts # grep overcloud-novacompute_edge1-0.internalapi.localdomain /etc/hosts 172.16.12.80 overcloud-novacompute_edge1-0.internalapi.localdomain overcloud-novacompute_edge1-0.internalapi 2. Restart container 3. Actual results: service fails to start Expected results: service start normally
Hello Public bug opened [1] and fix submitted [2]. [1] https://bugs.launchpad.net/oslo.config/+bug/1892044 [2] https://review.opendev.org/#/c/746723/
Fixed in version python-oslo-config-6.11.3-2.20201217142051.9b1ccea.el8ost.1
After editing nova.conf it doesn't stick after commiting and restarting: [root@compute-1 ~]# podman commit a1802113af00 undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-nova-libvirt:20200416.1 [root@compute-1 ~]# podman restart a1802113af00 Any advice?
Has been verified with python-oslo-config-6.11.3-2.20201217142051.9b1ccea.el8ost.1 and openstack services are ok with a hostname with underscore
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2021:3483
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days