From 4ceef7f8a8e1e39d72fc1e0d1d76ab25fc3b77a6 Mon Sep 17 00:00:00 2001 From: Feng Shengqin Date: Mon, 12 Mar 2018 19:00:58 +0800 Subject: [PATCH] Enable mutable config in ZUN 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. ZUN delegates making this call to oslo.service, so how do we switch? Icec3e664f3fe72614e373b2938e8dee53cf8bc5e allows services to tell oslo.service they want mutate_config_files to be called by passing a parameter, which this patch does. This allows ZUN to benefit from I1e7a69de169cc85f4c09954b2f46ce2da7106d90, where the 'debug' option (owned by oslo.log) is made mutable. IE when all these patches merge, we should be able to turn debug logging on and off by changing the config and sending SIGHUP. Part of bp:mutable-config Change-Id: I50458a450f7931a5b606147beb22ef406d73ae49 --- zun/common/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zun/common/service.py b/zun/common/service.py index 5c2d374b4..10a315839 100644 --- a/zun/common/service.py +++ b/zun/common/service.py @@ -41,7 +41,7 @@ def prepare_service(argv=None): def process_launcher(): - return service.ProcessLauncher(CONF) + return service.ProcessLauncher(CONF, restart_method='mutate') class WSGIService(service.ServiceBase):