summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnusree <anusree.a04@gmail.com>2018-07-24 21:00:31 +0530
committerAnusree <anusree.a04@gmail.com>2018-07-25 03:40:34 +0530
commitd2f03bc7b0edffd5397de30d4ccd6405fd2a0c52 (patch)
treece9e4af8e3d0ba98aace414e821802368e09bd0e
parent8806b5b7d894560a69ce6e709187e2b83d03e075 (diff)
Enable mutable config in mistral
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 mistral 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: I8ea7085b9343b07f5fe419d30a68c00caec1b745
Notes
Notes (review): Code-Review+2: Renat Akhmerov <renat.akhmerov@gmail.com> Code-Review+2: Andras Kovi <akovi@nokia.com> Workflow+1: Andras Kovi <akovi@nokia.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 26 Jul 2018 16:55:21 +0000 Reviewed-on: https://review.openstack.org/585407 Project: openstack/mistral Branch: refs/heads/master
-rw-r--r--mistral/cmd/launch.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mistral/cmd/launch.py b/mistral/cmd/launch.py
index 994982d..b6b1597 100644
--- a/mistral/cmd/launch.py
+++ b/mistral/cmd/launch.py
@@ -64,7 +64,8 @@ def launch_thread(server, workers=1):
64 global SERVER_THREAD_MANAGER 64 global SERVER_THREAD_MANAGER
65 65
66 if not SERVER_THREAD_MANAGER: 66 if not SERVER_THREAD_MANAGER:
67 SERVER_THREAD_MANAGER = service.ServiceLauncher(CONF) 67 SERVER_THREAD_MANAGER = service.ServiceLauncher(
68 CONF, restart_method='mutate')
68 69
69 SERVER_THREAD_MANAGER.launch_service(server, workers=workers) 70 SERVER_THREAD_MANAGER.launch_service(server, workers=workers)
70 except Exception as e: 71 except Exception as e:
@@ -77,7 +78,8 @@ def launch_process(server, workers=1):
77 global SERVER_PROCESS_MANAGER 78 global SERVER_PROCESS_MANAGER
78 79
79 if not SERVER_PROCESS_MANAGER: 80 if not SERVER_PROCESS_MANAGER:
80 SERVER_PROCESS_MANAGER = service.ProcessLauncher(CONF) 81 SERVER_PROCESS_MANAGER = service.ProcessLauncher(
82 CONF, restart_method='mutate')
81 83
82 SERVER_PROCESS_MANAGER.launch_service(server, workers=workers) 84 SERVER_PROCESS_MANAGER.launch_service(server, workers=workers)
83 except Exception as e: 85 except Exception as e: