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
This commit is contained in:
Tobias Urdin 2018-07-14 13:50:16 +02:00
parent d80e6ed5c0
commit 036224507e
1 changed files with 2 additions and 0 deletions

View File

@ -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")