Bug 1972254 - oslo_config.cfg.DuplicateOptError: duplicate option: host
Summary: oslo_config.cfg.DuplicateOptError: duplicate option: host
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ga
: 16.2 (Train on RHEL 8.4)
Assignee: OSP Team
QA Contact: Bruna Bonguardo
URL:
Whiteboard:
Depends On:
Blocks: 2045082
TreeView+ depends on / blocked
 
Reported: 2021-06-15 14:00 UTC by Attila Fazekas
Modified: 2022-01-25 15:22 UTC (History)
13 users (show)

Fixed In Version: python-networking-ovn-7.4.2-2.20210601204817.el8ost.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2045082 (view as bug list)
Environment:
Last Closed: 2021-09-15 07:15:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1932093 0 None None None 2021-06-16 01:43:44 UTC
OpenStack gerrit 796517 0 None MERGED Fix oslo.config duplicate option failure 2022-09-28 09:42:15 UTC
Red Hat Issue Tracker OSP-5195 0 None None None 2022-01-25 15:22:08 UTC
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:16:28 UTC

Description Attila Fazekas 2021-06-15 14:00:22 UTC
Description of problem:

/controller-1/var/log/containers/octavia/octavia.log.gz
2021-06-15 10:39:46.022 12 ERROR octavia.api.drivers.driver_factory [-] Unable to load provider driver ovn due to: duplicate option: host: oslo_config.cfg.DuplicateOptError: duplicate option: host

Version-Release number of selected component (if applicable):
RHOS-16.2-RHEL-8-20210614.n.1
tag: 16.2_20210614.1

Actual results:
ERROR message in the octavia log.
503 response on `openstack loadbalancer list` 
http://10.0.0.111:9876 "GET /v2.0/lbaas/loadbalancers HTTP/1.1" 503 None

Expected results:

octavia service responding.

Comment 2 Gregory Thiemonge 2021-06-15 15:22:36 UTC
More logs from controller-0/var/log/extra/podman/containers/octavia_api/log/httpd/octavia_wsgi_error.log.gz

[Tue Jun 15 13:25:31.451063 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100] mod_wsgi (pid=13): Failed to exec Python script file '/var/www/cgi-bin/octavia/app'.
[Tue Jun 15 13:25:31.451113 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100] mod_wsgi (pid=13): Exception occurred processing WSGI script '/var/www/cgi-bin/octavia/app'.
[Tue Jun 15 13:25:31.455622 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100] Traceback (most recent call last):
[Tue Jun 15 13:25:31.455757 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/octavia/api/drivers/driver_factory.py", line 44, in get_driver
[Tue Jun 15 13:25:31.455771 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     invoke_on_load=True).driver
[Tue Jun 15 13:25:31.455782 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/stevedore/driver.py", line 61, in __init__
[Tue Jun 15 13:25:31.455789 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     warn_on_missing_entrypoint=warn_on_missing_entrypoint
[Tue Jun 15 13:25:31.455798 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/stevedore/named.py", line 81, in __init__
[Tue Jun 15 13:25:31.455803 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     verify_requirements)
[Tue Jun 15 13:25:31.455811 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/stevedore/extension.py", line 203, in _load_plugins
[Tue Jun 15 13:25:31.455816 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     self._on_load_failure_callback(self, ep, err)
[Tue Jun 15 13:25:31.455825 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/stevedore/extension.py", line 195, in _load_plugins
[Tue Jun 15 13:25:31.455830 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     verify_requirements,
[Tue Jun 15 13:25:31.455838 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/stevedore/named.py", line 158, in _load_one_plugin
[Tue Jun 15 13:25:31.455844 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     verify_requirements,
[Tue Jun 15 13:25:31.455852 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/stevedore/extension.py", line 223, in _load_one_plugin
[Tue Jun 15 13:25:31.455858 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     plugin = ep.resolve()
[Tue Jun 15 13:25:31.455867 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
[Tue Jun 15 13:25:31.455873 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     module = __import__(self.module_name, fromlist=['__name__'], level=0)
[Tue Jun 15 13:25:31.455882 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/networking_ovn/octavia/ovn_driver.py", line 43, in <module>
[Tue Jun 15 13:25:31.455887 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     from networking_ovn.ovsdb import impl_idl_ovn
[Tue Jun 15 13:25:31.455895 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/networking_ovn/ovsdb/impl_idl_ovn.py", line 36, in <module>
[Tue Jun 15 13:25:31.455900 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     from networking_ovn.ovsdb import ovsdb_monitor
[Tue Jun 15 13:25:31.455908 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/networking_ovn/ovsdb/ovsdb_monitor.py", line 32, in <module>
[Tue Jun 15 13:25:31.455913 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     from networking_ovn.common import hash_ring_manager
[Tue Jun 15 13:25:31.455938 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/networking_ovn/common/hash_ring_manager.py", line 26, in <module>
[Tue Jun 15 13:25:31.455944 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     from neutron import service
[Tue Jun 15 13:25:31.455952 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/neutron/service.py", line 37, in <module>
[Tue Jun 15 13:25:31.455957 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     from neutron.common import config
[Tue Jun 15 13:25:31.455965 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/neutron/common/config.py", line 50, in <module>
[Tue Jun 15 13:25:31.455969 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     common_config.register_core_common_config_opts()
[Tue Jun 15 13:25:31.455978 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/neutron/conf/common.py", line 160, in register_core_common_config_opts
[Tue Jun 15 13:25:31.455983 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     cfg.register_opts(core_opts)
[Tue Jun 15 13:25:31.455991 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2055, in __inner
[Tue Jun 15 13:25:31.455996 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     result = f(self, *args, **kwargs)
[Tue Jun 15 13:25:31.456005 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2317, in register_opts
[Tue Jun 15 13:25:31.456010 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     self.register_opt(opt, group, clear_cache=False)
[Tue Jun 15 13:25:31.456018 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2059, in __inner
[Tue Jun 15 13:25:31.456023 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     return f(self, *args, **kwargs)
[Tue Jun 15 13:25:31.456031 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2306, in register_opt
[Tue Jun 15 13:25:31.456036 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     if _is_opt_registered(self._opts, opt):
[Tue Jun 15 13:25:31.456044 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 368, in _is_opt_registered
[Tue Jun 15 13:25:31.456049 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     raise DuplicateOptError(opt.name)
[Tue Jun 15 13:25:31.456072 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100] oslo_config.cfg.DuplicateOptError: duplicate option: host
[Tue Jun 15 13:25:31.456085 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100] 
[Tue Jun 15 13:25:31.456088 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100] During handling of the above exception, another exception occurred:
[Tue Jun 15 13:25:31.456091 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100] 
[Tue Jun 15 13:25:31.456096 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100] Traceback (most recent call last):
[Tue Jun 15 13:25:31.456118 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/var/www/cgi-bin/octavia/app", line 52, in <module>
[Tue Jun 15 13:25:31.456122 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     application = setup_app()
[Tue Jun 15 13:25:31.456127 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/octavia/api/app.py", line 51, in setup_app
[Tue Jun 15 13:25:31.456130 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     _init_drivers()
[Tue Jun 15 13:25:31.456134 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/octavia/api/app.py", line 43, in _init_drivers
[Tue Jun 15 13:25:31.456137 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     driver_factory.get_driver(provider)
[Tue Jun 15 13:25:31.456148 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]   File "/usr/lib/python3.6/site-packages/octavia/api/drivers/driver_factory.py", line 49, in get_driver
[Tue Jun 15 13:25:31.456151 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100]     raise exceptions.ProviderNotFound(prov=provider)
[Tue Jun 15 13:25:31.456161 2021] [wsgi:error] [pid 13] [remote 172.17.1.88:59100] octavia.common.exceptions.ProviderNotFound: Provider 'ovn' was not found.

Comment 3 Brian Haley 2021-06-15 16:55:37 UTC
We found the upstream change that caused this [0] and proposed a revert, re-assigning to networking-ovn component as we'll probably need to cherry-pick directly to 16.2 instead of waiting for upstream revert to merge.

[0] https://review.opendev.org/c/openstack/networking-ovn/+/790218

Comment 8 Itzik Brown 2021-06-21 13:54:50 UTC
It blocks Openshift on Openstack with 16.2

Comment 19 errata-xmlrpc 2021-09-15 07:15:55 UTC
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


Note You need to log in before you can comment on or make changes to this bug.