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
This commit is contained in:
LIU Yulong 2024-02-06 13:51:37 +08:00 committed by liuyulong
parent 94ea289600
commit 9065cdf78e

View File

@ -28,6 +28,7 @@ from neutron.agent.linux import ip_lib
from neutron.agent.linux import utils as agent_utils from neutron.agent.linux import utils as agent_utils
from neutron.common import config from neutron.common import config
from neutron.common import utils as common_utils 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.conf.agent.l3 import keepalived
from neutron import privileged from neutron import privileged
@ -177,6 +178,7 @@ def configure(conf):
def main(): def main():
keepalived.register_cli_l3_agent_keepalived_opts() keepalived.register_cli_l3_agent_keepalived_opts()
keepalived.register_l3_agent_keepalived_opts() keepalived.register_l3_agent_keepalived_opts()
agent_config.register_root_helper()
configure(cfg.CONF) configure(cfg.CONF)
MonitorDaemon(cfg.CONF.pid_file, MonitorDaemon(cfg.CONF.pid_file,
cfg.CONF.router_id, cfg.CONF.router_id,