From 036224507e2629d1056c57d419178c95063912b8 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Sat, 14 Jul 2018 13:50:16 +0200 Subject: [PATCH] Notify nova-api running under apache on changes When running nova metadata api with eventlet and nova compute api under apache wsgi config changes only refreshes the nova-api eventlet process and not apache. This forces a refresh of apache on nova::service::begin anchor notifications. Change-Id: Ie046ceca590ed7f79c3bf771cbb8f1ed88d504b4 Closes-Bug: 1658040 --- manifests/api.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/api.pp b/manifests/api.pp index b4889b1d4..38c885a78 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -357,6 +357,8 @@ class nova::api( } # make sure we start apache before nova-api to avoid binding issues Service[$service_name] -> Service['nova-api'] + # make sure apache is refreshed on config changes etc + Anchor['nova::service::begin'] ~> Service[$service_name] } else { fail("Invalid service_name. Either nova-api/openstack-nova-api for running \ as a standalone service, or httpd for being run by a httpd server")