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
This commit is contained in:
Feng Shengqin 2018-03-12 19:00:58 +08:00
parent c8028f9aae
commit 4ceef7f8a8
1 changed files with 1 additions and 1 deletions

View File

@ -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):