From 116d0a4b8efa9cccb31f86deed3ebe90a0c8174b Mon Sep 17 00:00:00 2001 From: Anusree Date: Thu, 26 Jul 2018 02:07:29 +0530 Subject: [PATCH] Enable mutable config in designate 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 designate 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: I5fba66b32b2b8eeea7c206e9eaec0d8c217dafb2 --- designate/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/designate/service.py b/designate/service.py index 9840643cb..8619ee0f2 100644 --- a/designate/service.py +++ b/designate/service.py @@ -487,7 +487,8 @@ def serve(server, workers=None): if _launcher: raise RuntimeError(_('serve() can only be called once')) - _launcher = service.launch(CONF, server, workers=workers) + _launcher = service.launch(CONF, server, workers=workers, + restart_method='mutate') def wait():