Some jobs in zuul are reporting this error:
Failed to import test module: ovn_octavia_provider.tests.functional.test_integration
Traceback (most recent call last):
File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/home/zuul/src/opendev.org/openstack/ovn-octavia-provider/ovn_octavia_provider/tests/functional/test_integration.py", line 18, in <module>
from ovn_octavia_provider.tests.functional import base as ovn_base
File "/home/zuul/src/opendev.org/openstack/ovn-octavia-provider/ovn_octavia_provider/tests/functional/base.py", line 31, in <module>
from neutron.tests.functional import base
File "/home/zuul/src/opendev.org/openstack/ovn-octavia-provider/.tox/dsvm-functional/lib/python3.8/site-packages/neutron/tests/functional/base.py", line 40, in <module>
from neutron.conf.plugins.ml2.drivers.ovn import ovn_conf
File "/home/zuul/src/opendev.org/openstack/ovn-octavia-provider/.tox/dsvm-functional/lib/python3.8/site-packages/neutron/conf/plugins/ml2/drivers/ovn/ovn_conf.py", line 212, in <module>
cfg.CONF.register_opts(ovn_opts, group='ovn')
File "/home/zuul/src/opendev.org/openstack/ovn-octavia-provider/.tox/dsvm-functional/lib/python3.8/site-packages/oslo_config/cfg.py", line 2077, in __inner
...
if _is_opt_registered(self._opts, opt):
File "/home/zuul/src/opendev.org/openstack/ovn-octavia-provider/.tox/dsvm-functional/lib/python3.8/site-packages/oslo_config/cfg.py", line 356, in _is_opt_registered
raise DuplicateOptError(opt.name)
oslo_config.cfg.DuplicateOptError: duplicate option: ovn_nb_connection
Basically the OVN octavia provider is registering opts a soon modules (driver, agent or helper) are imported so when tests run the setUp they are triggered by a Duplicate option error because they are based on TestOVNFunctionalBase from Neutron where same options are loaded. Error doesn't appear in running environment as neutron and ovn-octavia-provider (octavia) are running in separate process but in zuul jobs they collide.
opensearch query: /opensearch. logs.openstack. org/_dashboards /app/discover/ ?security_ tenant= global# /?_g=(filters: !(),refreshInte rval:(pause: !t,value: 0),time: (from:now- 15d,to: now))&_ a=(columns: !(build_ name),filters: !(),index: '94869730- aea8-11ec- 9e6a-83741af3fd cd',interval: auto,query: (language: kuery,query: 'message: %22oslo_ config. cfg.DuplicateOp tError: %20duplicate% 20option: %20ovn_ nb_connection% 22'),sort: !())
https:/