puppet: add ordering for Neutron agents
authorEmilien Macchi <emilien@redhat.com>
Tue, 10 Mar 2015 23:01:11 +0000 (19:01 -0400)
committerEmilien Macchi <emilien@redhat.com>
Tue, 10 Mar 2015 23:03:40 +0000 (19:03 -0400)
Before starting the Neutron agents, we need to make sure neutron-server
is running so we don't have a race when starting the services.
This patch adds some orchestration to do it.

Change-Id: I24db069d6af1fadd302b0924f769db3f58f65685

puppet/manifests/overcloud_controller.pp

index d6be920..9bda046 100644 (file)
@@ -244,6 +244,11 @@ if hiera('step') >= 2 {
     auth_url => join(['http://', hiera('controller_virtual_ip'), ':35357/v2.0']),
   }
 
+  Service['neutron-server'] -> Service['neutron-dhcp-service']
+  Service['neutron-server'] -> Service['neutron-l3']
+  Service['neutron-server'] -> Service['neutron-ovs-agent-service']
+  Service['neutron-server'] -> Service['neutron-metadata']
+
   class {'cinder':
     rabbit_hosts => [hiera('controller_virtual_ip')],
   }