Apply opendaylight state after ovs host config 97/54397/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 23 Mar 2018 12:47:46 +0000 (16:47 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 23 Mar 2018 12:53:46 +0000 (16:53 +0400)
* employ GA kernel for baremetal computes as well
* setup/start opendaylight server after ovs host config

Change-Id: Ic772aed544b17be02e6ca9ccd175f2288b2128a8
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
mcp/reclass/classes/cluster/mcp-pike-odl-ha/infra/maas.yml

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 35b2904..96d4bcc 100644 (file)
@@ -9,9 +9,9 @@
 cluster:
   domain: mcp-pike-odl-noha.local
   states:
-    - opendaylight
     - openstack_noha
     - neutron_gateway
+    - opendaylight
     - networks
 virtual:
   nodes:
index a698b8c..515420a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash -e
 ##############################################################################
-# Copyright (c) 2017 Mirantis Inc., Enea AB and others.
+# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
 # All rights reserved. This program and the accompanying materials
 # are made available under the terms of the Apache License, Version 2.0
 # which accompanies this distribution, and is available at
@@ -9,6 +9,16 @@
 
 CI_DEBUG=${CI_DEBUG:-0}; [[ "${CI_DEBUG}" =~ (false|0) ]] || set -x
 
+# shellcheck disable=SC1090
+source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh"
+
+# Get OpenDaylight server options with prefix odl_
+function odl() {
+  salt --out txt -I 'opendaylight:server' pillar.get "opendaylight:server:odl_$1" | cut -d ' ' -f2
+}
+
 # TODO: use service.masked state instead once salt get updated to 2017.7.0+
 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 'result: true'"
index 87f73a0..6662f1f 100644 (file)
@@ -9,3 +9,6 @@
 classes:
   - cluster.mcp-pike-common-ha.infra.maas
   - cluster.mcp-pike-odl-ha.infra
+parameters:
+  _param:
+    hwe_kernel: 'ga-16.04'