From 5c60d697c3c54b749cba99e75494e8ca140e1573 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 25 Mar 2023 09:33:18 +0900 Subject: [PATCH] OVN agent: Stop registering unused options Currently all common options are registered while startung up OVN agent but these options include many unused ones such as oslo.messaging options. These unused options appear in logs when the service starts up and this is confusing for operators. This reduces and minimises options loaded, to avoid loading unused items. Change-Id: I9927ad6cc60752032c262f4a68e01285617e9ed9 --- neutron/agent/ovn/ovn_neutron_agent.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neutron/agent/ovn/ovn_neutron_agent.py b/neutron/agent/ovn/ovn_neutron_agent.py index 421adbb2e32..4b54992c4f6 100644 --- a/neutron/agent/ovn/ovn_neutron_agent.py +++ b/neutron/agent/ovn/ovn_neutron_agent.py @@ -17,6 +17,7 @@ import sys from neutron.common import config from neutron.common import utils +from neutron.conf import common as common_config from oslo_config import cfg from oslo_log import log as logging from oslo_service import service @@ -29,7 +30,9 @@ LOG = logging.getLogger(__name__) def main(): - config.register_common_config_options() + logging.register_options(cfg.CONF) + common_config.register_cli_script_opts() + config_ovn_agent.register_opts() config.init(sys.argv[1:]) config.setup_logging()