From dcba0d29c454dbada574c36d53f30af2afdccbf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awek=20Kap=C5=82o=C5=84ski?= Date: Fri, 6 Apr 2018 13:10:45 +0200 Subject: [PATCH] Enable mutable config in Neutron-dynamic-routing New releases of oslo.config support a 'mutable' parameter to Opts. This is only respected when the new method mutate_config_files is called instead of reload_config_files. Neutron-dynamic-routing delegates making this call to oslo.service. This was provided in patchset Icec3e664f3fe72614e373b2938e8dee53cf8bc5e Further patches will be needed to make select config options be marked as mutable. This change enables support for oslo provided config options to be updated via SIGHUP such as log level. Change-Id: Icb405ae7197af7507469593e8555b833186c0e68 Task: 12505 Story: 2001545 --- neutron_dynamic_routing/services/bgp/agent/entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron_dynamic_routing/services/bgp/agent/entry.py b/neutron_dynamic_routing/services/bgp/agent/entry.py index 031d91f4..403a048c 100644 --- a/neutron_dynamic_routing/services/bgp/agent/entry.py +++ b/neutron_dynamic_routing/services/bgp/agent/entry.py @@ -44,4 +44,4 @@ def main(): report_interval=cfg.CONF.AGENT.report_interval, manager='neutron_dynamic_routing.services.bgp.agent.bgp_dragent.' 'BgpDrAgentWithStateReport') - service.launch(cfg.CONF, server).wait() + service.launch(cfg.CONF, server, restart_method='mutate').wait()