Ensure nova-network service is up before creating networks

https://review.openstack.org/229895 made sure nova networks could
only be created if the nova-network service was enabled. However,
it is still possible that Puppet tries to create them before the
service is started.

This patch should be backported to stable/mitaka and stable/liberty.

Change-Id: Iaf21b70f274d2c5769c6bb117697efe9e74873fd
This commit is contained in:
Javier Pena
2016-05-18 17:53:04 +02:00
committed by Alex Schultz
parent 13d6327fd8
commit cd3611beb9

View File

@@ -147,6 +147,7 @@ class nova::network(
# because nova_network provider uses nova client, so it assumes
# that nova-network service is running already
Service<| title == 'nova-network' |> -> Nova_network<| |>
if $create_networks {
if $enabled {
nova::manage::network { 'nova-vm-net':