]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commit
wsgi: make sure eventlet process is stopped before httpd
authorEmilien Macchi <emilien@redhat.com>
Mon, 28 Sep 2015 19:45:53 +0000 (15:45 -0400)
committerEmilien Macchi <emilien@redhat.com>
Wed, 30 Sep 2015 17:30:42 +0000 (13:30 -0400)
commitb0ee27206d0e0de22986f0cfd266a19937d88b87
treeeb3d6a4c20c0f893f6d8789a161db1e2258d58da
parent409e35a77671e3b129ad387f5e03f57cbe91872c
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