← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1932093] Re: "oslo_config.cfg.DuplicateOptError: duplicate option: host" using OVN Octavia provider on stable/train

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1932093

Title:
  "oslo_config.cfg.DuplicateOptError: duplicate option: host" using OVN
  Octavia provider on stable/train

Status in neutron:
  Fix Released

Bug description:
  Some recent changes to the networking-ovn repository have broken the
  OVN Octavia provider that is in-tree.  When staring the octavia-api
  process for tempest scenario tests we get:

  Jun 15 13:54:56.154717 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia.api.drivers.driver_factory [-] Unable to load provider driver ovn due to: duplicate option: host: oslo_config.cfg.DuplicateOptError: duplicate option: host
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: CRITICAL octavia [-] Unhandled error: octavia.common.exceptions.ProviderNotFound: Provider 'ovn' was not found.
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia Traceback (most recent call last):
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/opt/stack/octavia/octavia/api/drivers/driver_factory.py", line 44, in get_driver
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     invoke_on_load=True).driver
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/stevedore/driver.py", line 61, in __init__
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     warn_on_missing_entrypoint=warn_on_missing_entrypoint
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/stevedore/named.py", line 81, in __init__
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     verify_requirements)
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/stevedore/extension.py", line 203, in _load_plugins
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     self._on_load_failure_callback(self, ep, err)
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/stevedore/extension.py", line 195, in _load_plugins
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     verify_requirements,
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/stevedore/named.py", line 158, in _load_one_plugin
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     verify_requirements,
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/stevedore/extension.py", line 223, in _load_one_plugin
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     plugin = ep.resolve()
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2456, in resolve
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     module = __import__(self.module_name, fromlist=['__name__'], level=0)
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/opt/stack/networking-ovn/networking_ovn/octavia/ovn_driver.py", line 42, in <module>
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     from networking_ovn.ovsdb import impl_idl_ovn
  Jun 15 13:54:56.163102 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/opt/stack/networking-ovn/networking_ovn/ovsdb/impl_idl_ovn.py", line 35, in <module>
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     from networking_ovn.ovsdb import ovsdb_monitor
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/opt/stack/networking-ovn/networking_ovn/ovsdb/ovsdb_monitor.py", line 32, in <module>
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     from networking_ovn.common import hash_ring_manager
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/opt/stack/networking-ovn/networking_ovn/common/hash_ring_manager.py", line 26, in <module>
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     from neutron import service
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/opt/stack/neutron/neutron/service.py", line 37, in <module>
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     from neutron.common import config
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/opt/stack/neutron/neutron/common/config.py", line 49, in <module>
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     common_config.register_core_common_config_opts()
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/opt/stack/neutron/neutron/conf/common.py", line 160, in register_core_common_config_opts
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     cfg.register_opts(core_opts)
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2051, in __inner
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     result = f(self, *args, **kwargs)
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2313, in register_opts
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     self.register_opt(opt, group, clear_cache=False)
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2055, in __inner
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     return f(self, *args, **kwargs)
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 2302, in register_opt
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     if _is_opt_registered(self._opts, opt):
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia   File "/usr/local/lib/python3.6/dist-packages/oslo_config/cfg.py", line 364, in _is_opt_registered
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia     raise DuplicateOptError(opt.name)
  Jun 15 13:54:56.164409 ubuntu-bionic-inap-mtl01-0025122610 devstack@o-api.service[1675]: ERROR octavia oslo_config.cfg.DuplicateOptError: duplicate option: host

  Since there are multiple changes implicated here, and they are
  desired, we'll need a workaround to get past it, work in progress.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1932093/+subscriptions



References