summaryrefslogtreecommitdiff
path: root/nova/service.py
diff options
context:
space:
mode:
authorRoman Podoliaka <rpodolyaka@mirantis.com>2017-05-04 18:29:16 +0300
committerRoman Podoliaka <rpodolyaka@mirantis.com>2017-05-05 10:54:40 +0300
commit8854a24c588afec467da22f95837645ed4692137 (patch)
treef7517dabb2c0cd542c434cf82338a89c8b8e03b8 /nova/service.py
parentd219a3dcdc9c51bff3ebf2df086ea61a840ea3e9 (diff)
downloadnova-8854a24c588afec467da22f95837645ed4692137.tar.gz
service: use restart_method='mutate' for all services
I8f09f9482736b496e3ad7117f170e476e92c2b7d changed the way SIGHUP is handled by nova-api by telling oslo_service to reload config files and run 'mutation' hooks for a set of supported options. Make sure we use the very same mechanism for other service like nova-compute, that do not use process_launcher() directly, but rely on launch() helper from oslo_service instead. Change-Id: Ie4e7c06814310f661d054d2181340418fd0df7bc
Diffstat (limited to 'nova/service.py')
-rw-r--r--nova/service.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/service.py b/nova/service.py
index 05fa8ddf5d..91f25f821c 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -427,7 +427,8 @@ def serve(server, workers=None):
if _launcher:
raise RuntimeError(_('serve() can only be called once'))
- _launcher = service.launch(CONF, server, workers=workers)
+ _launcher = service.launch(CONF, server, workers=workers,
+ restart_method='mutate')
def wait():