Running neutron-ovn-db-sync-util with the following `extension_drivers=port_security` fails with
CRITICAL neutron_ovn_db_sync_util [req-9697a0e0-6097-4d8c-a24b-2c86b6921d7f - - - - -] Unhandled error: neutron.plugins.ml2.common.exceptions.ExtensionDriverNotFound: Extension driver qos required for service plugin qos not found.
ERROR neutron_ovn_db_sync_util Traceback (most recent call last):
ERROR neutron_ovn_db_sync_util File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
ERROR neutron_ovn_db_sync_util return _run_code(code, main_globals, None,
ERROR neutron_ovn_db_sync_util File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
ERROR neutron_ovn_db_sync_util exec(code, run_globals)
ERROR neutron_ovn_db_sync_util File "/opt/xena/lib/python3.8/site-packages/debugpy/__main__.py", line 39, in <module>
ERROR neutron_ovn_db_sync_util cli.main()
ERROR neutron_ovn_db_sync_util File "/opt/xena/lib/python3.8/site-packages/debugpy/server/cli.py", line 430, in main
ERROR neutron_ovn_db_sync_util run()
ERROR neutron_ovn_db_sync_util File "/opt/xena/lib/python3.8/site-packages/debugpy/server/cli.py", line 284, in run_file
ERROR neutron_ovn_db_sync_util runpy.run_path(target, run_name="__main__")
ERROR neutron_ovn_db_sync_util File "/opt/xena/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
ERROR neutron_ovn_db_sync_util return _run_module_code(code, init_globals, run_name,
ERROR neutron_ovn_db_sync_util File "/opt/xena/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
ERROR neutron_ovn_db_sync_util _run_code(code, mod_globals, init_globals,
ERROR neutron_ovn_db_sync_util File "/opt/xena/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
ERROR neutron_ovn_db_sync_util exec(code, run_globals)
ERROR neutron_ovn_db_sync_util File "/opt/xena/bin/neutron-ovn-db-sync-util", line 10, in <module>
ERROR neutron_ovn_db_sync_util sys.exit(main())
ERROR neutron_ovn_db_sync_util File "/opt/neutron/neutron/cmd/ovn/neutron_ovn_db_sync_util.py", line 222, in main
ERROR neutron_ovn_db_sync_util manager.init()
ERROR neutron_ovn_db_sync_util File "/opt/neutron/neutron/manager.py", line 301, in init
ERROR neutron_ovn_db_sync_util NeutronManager.get_instance()
ERROR neutron_ovn_db_sync_util File "/opt/neutron/neutron/manager.py", line 252, in get_instance
ERROR neutron_ovn_db_sync_util cls._create_instance()
ERROR neutron_ovn_db_sync_util File "/opt/xena/lib/python3.8/site-packages/oslo_concurrency/lockutils.py", line 360, in inner
ERROR neutron_ovn_db_sync_util return f(*args, **kwargs)
ERROR neutron_ovn_db_sync_util File "/opt/neutron/neutron/manager.py", line 238, in _create_instance
ERROR neutron_ovn_db_sync_util cls._instance = cls()
ERROR neutron_ovn_db_sync_util File "/opt/neutron/neutron/manager.py", line 126, in __init__
ERROR neutron_ovn_db_sync_util plugin = self._get_plugin_instance(CORE_PLUGINS_NAMESPACE,
ERROR neutron_ovn_db_sync_util File "/opt/neutron/neutron/manager.py", line 162, in _get_plugin_instance
ERROR neutron_ovn_db_sync_util plugin_inst = plugin_class()
ERROR neutron_ovn_db_sync_util File "/opt/neutron/neutron/quota/resource_registry.py", line 124, in wrapper
ERROR neutron_ovn_db_sync_util return f(*args, **kwargs)
ERROR neutron_ovn_db_sync_util File "/opt/neutron/neutron/plugins/ml2/plugin.py", line 279, in __init__
ERROR neutron_ovn_db_sync_util self._verify_service_plugins_requirements()
ERROR neutron_ovn_db_sync_util File "/opt/neutron/neutron/plugins/ml2/plugin.py", line 311, in _verify_service_plugins_requirements
ERROR neutron_ovn_db_sync_util raise ml2_exc.ExtensionDriverNotFound(
ERROR neutron_ovn_db_sync_util neutron.plugins.ml2.common.exceptions.ExtensionDriverNotFound: Extension driver qos required for service plugin qos not found.
ERROR neutron_ovn_db_sync_util
I tracked it down to https://opendev.org/openstack/neutron/src/commit/429fbae1d0e835f7282040f59a71c2fcb9fa7a7d/neutron/cmd/ovn/neutron_ovn_db_sync_util.py#L203 where qos is added to `conf.service_plugins` regardless whether I have qos in my deployment.
Status changed to 'Confirmed' because the bug affects multiple users.