Enable mutable config in Cinder

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. Cinder delegates making this
call to oslo.service. This was provided in patchset
Icec3e664f3fe72614e373b2938e8dee53cf8bc5e

Further patches will be needed to make select config options be
marked as mutable. This change enables support for oslo provided
config options to be updated via SIGHUP such as log level.

Change-Id: I6499ae6c98d9489a257bb20febd6c1ddb9e17b86
Partial-implements: bp dynamic-reconfiguration
This commit is contained in:
Sean McGinnis 2017-05-11 15:31:23 +00:00
parent d07dfec9ab
commit 68f802b789
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ class WSGIService(service.ServiceBase):
def process_launcher(): def process_launcher():
return service.ProcessLauncher(CONF) return service.ProcessLauncher(CONF, restart_method='mutate')
# NOTE(vish): the global launcher is to maintain the existing # NOTE(vish): the global launcher is to maintain the existing