From b0ee27206d0e0de22986f0cfd266a19937d88b87 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Mon, 28 Sep 2015 15:45:53 -0400 Subject: [PATCH] wsgi: make sure eventlet process is stopped before httpd When stopping Ceilometer API running eventlet (ceilometer-api service), we need to make sure it's done *before* starting Apache. Otherwise, there is a race condition where Apache could be started before stopping the service, and what would lead to: AH00072: make_sock: could not bind to address [::]:8777 AH00072: make_sock: could not bind to address 0.0.0.0:8777 no listening sockets available, shutting down Apache fails to start. This patch make sure we have the right orchestration in place. Change-Id: Ieec365b9eed2a13d132005118f93089ac9885e58 --- manifests/api.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/api.pp b/manifests/api.pp index c28ac40..dfafbc0 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -138,6 +138,9 @@ class ceilometer::api ( tag => 'ceilometer-service', } Class['ceilometer::db'] -> Service[$service_name] + + # we need to make sure ceilometer-api/eventlet is stopped before trying to start apache + Service['ceilometer-api'] -> Service[$service_name] } else { fail('Invalid service_name. Either ceilometer/openstack-ceilometer-api for running as a standalone service, or httpd for being run by a httpd server') } -- 2.45.2