From 9d3ffadc40df07926e5637edff1d47545114404e Mon Sep 17 00:00:00 2001 From: Anusha Ramineni Date: Wed, 28 Mar 2018 09:47:28 +0530 Subject: [PATCH] Enable mutable config in Congress New releases of oslo.config support a 'mutable' parameter to Opts. oslo.service provides an option here Icec3e664f3fe72614e373b2938e8dee53cf8bc5e allows services to tell oslo.service they want mutate_config_files to be called by passing a parameter. This commit is to use the same. This allows Congress to benefit from I1e7a69de169cc85f4c09954b2f46ce2da7106d90, where the 'debug' option (owned by oslo.log) is made mutable. we should be able to turn debug logging on and off by changing the config. tc goal: https://governance.openstack.org/tc/goals/rocky/enable-mutable-configuration.html Change-Id: Ia82715af8a8174e4f0d89ee1d9609487654e4e03 --- congress/server/congress_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/congress/server/congress_server.py b/congress/server/congress_server.py index 0f6759fdc..765c43722 100644 --- a/congress/server/congress_server.py +++ b/congress/server/congress_server.py @@ -63,9 +63,9 @@ class ServerWrapper(object): def serve(*servers): if max([server[1].workers for server in servers]) > 1: # TODO(arosen) - need to provide way to communicate with DSE services - launcher = service.ProcessLauncher(cfg.CONF) + launcher = service.ProcessLauncher(cfg.CONF, restart_method='mutate') else: - launcher = service.ServiceLauncher(cfg.CONF) + launcher = service.ServiceLauncher(cfg.CONF, restart_method='mutate') for name, server in servers: try: