yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #88811
[Bug 1972278] [NEW] ovn-octavia-provider oslo config options colliding with neutron ones
Public bug reported:
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.
** Affects: neutron
Importance: Undecided
Assignee: Fernando Royo (froyoredhat)
Status: New
** Changed in: neutron
Assignee: (unassigned) => Fernando Royo (froyoredhat)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1972278
Title:
ovn-octavia-provider oslo config options colliding with neutron ones
Status in neutron:
New
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1972278/+subscriptions
Follow ups