Merge "Debian: Ensure metadata-api is stopped before starting apache"

This commit is contained in:
Zuul 2023-11-17 19:23:50 +00:00 committed by Gerrit Code Review
commit b96dbabffe
1 changed files with 5 additions and 1 deletions

View File

@ -232,8 +232,12 @@ class nova::api(
if $manage_service {
Service <| title == 'httpd' |> { tag +> 'nova-service' }
# make sure we start apache before nova-api to avoid binding issues
# make sure we start apache before nova-api and nova-metadata-api are
# stopped to avoid binding issues
Service['nova-api'] -> Service[$service_name]
if $metadata_service_name {
Service['nova-api-metadata'] -> Service[$service_name]
}
}
} else {
fail("Invalid service_name. Either nova-api/openstack-nova-api for running \