From d11f87d0ca42cb9dc3cb0923d02c9049b9b5b8bd Mon Sep 17 00:00:00 2001 From: Spyros Trigazis Date: Tue, 30 Jan 2018 15:31:04 +0000 Subject: [PATCH] Start RPC service before waiting Stoping magnum-cond without having invoke start(), results in "WARNING oslo_messaging.server Possible hang: stop is waiting for start to complete". A magnum instance with 16 workers was taking 1m to stop with this change it takes 1 to 10 seconds. This change doesn't break the fix in [1]. [1] If9e13effc14fd35e646d02bb4f568e79786aa958 Related-Bug: #1702349 Related issue in sahara: Related-Bug: #1546119 Change-Id: Ied7ab43398d4e499514fa0bd5dba64971d1956bf --- magnum/cmd/conductor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/magnum/cmd/conductor.py b/magnum/cmd/conductor.py index 79bf8cc904..d0eb03f9df 100755 --- a/magnum/cmd/conductor.py +++ b/magnum/cmd/conductor.py @@ -66,5 +66,6 @@ def main(): # duplicated in all the children if multiple # workers are being used. server.create_periodic_tasks() + server.start() launcher.wait()