From 9065cdf78e0a5f5d9752820707b0d7101f4a3292 Mon Sep 17 00:00:00 2001 From: LIU Yulong Date: Tue, 6 Feb 2024 13:51:37 +0800 Subject: [PATCH] Register root_helper config for state change Add config options for neutron-keepalived-state-change python bin daemon. And it will be possible to not run root neutron-rootwrap-daemon for it after fix of https://review.opendev.org/c/openstack/neutron/+/653378 Related-Bug: #2052367 Change-Id: I15060c9c6b1c2c11b3a7d692f945e27ffec9e854 --- neutron/agent/l3/keepalived_state_change.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neutron/agent/l3/keepalived_state_change.py b/neutron/agent/l3/keepalived_state_change.py index e495a417ab9..6575926e061 100644 --- a/neutron/agent/l3/keepalived_state_change.py +++ b/neutron/agent/l3/keepalived_state_change.py @@ -28,6 +28,7 @@ from neutron.agent.linux import ip_lib from neutron.agent.linux import utils as agent_utils from neutron.common import config from neutron.common import utils as common_utils +from neutron.conf.agent import common as agent_config from neutron.conf.agent.l3 import keepalived from neutron import privileged @@ -177,6 +178,7 @@ def configure(conf): def main(): keepalived.register_cli_l3_agent_keepalived_opts() keepalived.register_l3_agent_keepalived_opts() + agent_config.register_root_helper() configure(cfg.CONF) MonitorDaemon(cfg.CONF.pid_file, cfg.CONF.router_id,