Re-order opendaylight state 43/54643/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 30 Mar 2018 09:37:36 +0000 (13:37 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 30 Mar 2018 09:47:31 +0000 (13:47 +0400)
* return back opendaylight state after neutron setup
* sleep for awhile to let neutron api reconnect to the ODL
  controller and agents to register on server

Change-Id: Ife0c7d3cc20574b0733e8e3064843c680379cc84
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/scenario/os-odl-nofeature-ha.yaml.j2
mcp/config/scenario/os-odl-nofeature-noha.yaml
mcp/config/states/opendaylight

index 0bd3a13..76b893e 100644 (file)
@@ -23,8 +23,8 @@ cluster:
 {%- if conf.MCP_VCP %}
     - virtual_control_plane
 {%- endif %}
-    - opendaylight
     - openstack_ha
+    - opendaylight
     - networks
 virtual:
   nodes:
index f52eaf5..260e1ba 100644 (file)
@@ -9,9 +9,9 @@
 cluster:
   domain: mcp-pike-odl-noha.local
   states:
-    - opendaylight
     - openstack_noha
     - neutron_gateway
+    - opendaylight
     - networks
 virtual:
   nodes:
index 5bbf0d7..d00a773 100755 (executable)
@@ -22,3 +22,6 @@ salt -I 'opendaylight:server' service.mask opendaylight
 salt -I 'opendaylight:server' state.sls opendaylight
 
 wait_for 20 "salt --out yaml -C 'I@neutron:server and *01*' network.connect $(odl bind_ip) $(odl rest_port) | fgrep -q 'result: true'"
+
+# settle down neutron api and agents
+sleep 180