Enable mutable config in Congress
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 Congress 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: Ia82715af8a8174e4f0d89ee1d9609487654e4e03
This commit is contained in:
parent
b60df62dc3
commit
9d3ffadc40
|
@ -63,9 +63,9 @@ class ServerWrapper(object):
|
|||
def serve(*servers):
|
||||
if max([server[1].workers for server in servers]) > 1:
|
||||
# TODO(arosen) - need to provide way to communicate with DSE services
|
||||
launcher = service.ProcessLauncher(cfg.CONF)
|
||||
launcher = service.ProcessLauncher(cfg.CONF, restart_method='mutate')
|
||||
else:
|
||||
launcher = service.ServiceLauncher(cfg.CONF)
|
||||
launcher = service.ServiceLauncher(cfg.CONF, restart_method='mutate')
|
||||
|
||||
for name, server in servers:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue