Enable mutable config in sahara
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 sahara 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: I11d31a80afb326fa3416726c6f68b4930346264a
This commit is contained in:
parent
a138f4e5bf
commit
094138de8b
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Operators can now update the running configuration of Sahara processes by
|
||||
sending the parent process a "HUP" signal.
|
||||
Note: The configuration option must support mutation.
|
|
@ -155,7 +155,7 @@ def _get_ops_driver(driver_name):
|
|||
|
||||
|
||||
def get_process_launcher():
|
||||
return oslo_service.ProcessLauncher(CONF)
|
||||
return oslo_service.ProcessLauncher(CONF, restart_method='mutate')
|
||||
|
||||
|
||||
def launch_api_service(launcher, service):
|
||||
|
|
Loading…
Reference in New Issue