Enable mutable config in Nova
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. Nova 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 Nova 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. Further patches will make selected Nova options mutable. Part of bp:mutable-config Change-Id: I8f09f9482736b496e3ad7117f170e476e92c2b7d
This commit is contained in:
parent
7b35aa97d8
commit
48aa5f2baf
|
@ -393,7 +393,7 @@ class WSGIService(service.Service):
|
|||
|
||||
|
||||
def process_launcher():
|
||||
return service.ProcessLauncher(CONF)
|
||||
return service.ProcessLauncher(CONF, restart_method='mutate')
|
||||
|
||||
|
||||
# NOTE(vish): the global launcher is to maintain the existing
|
||||
|
|
Loading…
Reference in New Issue