From f9decab30e3dd61ef2296903a168688a4bfaccc7 Mon Sep 17 00:00:00 2001 From: sajuptpm Date: Wed, 25 Jul 2018 16:37:45 +0530 Subject: [PATCH] Enable mutable config in zun 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 zun 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: Ibcc0dea603416e98ddedbbffffa6518adf931cb3 --- zun/cmd/compute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zun/cmd/compute.py b/zun/cmd/compute.py index c7d74e426..e90ceb563 100644 --- a/zun/cmd/compute.py +++ b/zun/cmd/compute.py @@ -45,5 +45,5 @@ def main(): server = rpc_service.Service.create(CONF.compute.topic, CONF.host, endpoints, binary='zun-compute') - launcher = service.launch(CONF, server) + launcher = service.launch(CONF, server, restart_method='mutate') launcher.wait()