summaryrefslogtreecommitdiff
path: root/nova/service.py
diff options
context:
space:
mode:
authorAlexis Lee <lxsli@hpe.com>2016-02-16 15:31:16 +0000
committerAlexis Lee <lxsli@hpe.com>2016-06-07 18:01:27 +0000
commit48aa5f2bafee04cfc07501dd54667f4c9a184da2 (patch)
tree62be053fd796b7c0cbd173a700b771d7d002a5ce /nova/service.py
parent7b35aa97d84acaa503083a85c96bdf90a4aabe05 (diff)
downloadnova-48aa5f2bafee04cfc07501dd54667f4c9a184da2.tar.gz
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
Diffstat (limited to 'nova/service.py')
-rw-r--r--nova/service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/service.py b/nova/service.py
index c8c9c398d1..22ddd218d8 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -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