Mend OVN scenario 75/56275/2
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Mon, 23 Apr 2018 13:23:06 +0000 (17:23 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Tue, 24 Apr 2018 11:56:32 +0000 (15:56 +0400)
* setup HWE kernel to get suitable conntrack module
* clean out outdated state with ovn ctl options
* point SB remote source to local mgmt network

Change-Id: I8986c227ce0a9a3b7ab3faf382760ec32e6e7c00
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/scenario/defaults.yaml
mcp/config/scenario/os-ovn-nofeature-noha.yaml
mcp/config/states/ovn_ctl_opts [deleted file]
mcp/reclass/classes/cluster/mcp-pike-ovn-noha/openstack/compute.yml

index e6915d4..13f2dd5 100644 (file)
@@ -20,6 +20,7 @@ x86_64:
         - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.11 xenial main
     pkg:
       install:
+        - linux-generic-hwe-16.04
         - salt-minion
   control:
     apt: ~
index 0e4d644..104df96 100644 (file)
@@ -10,7 +10,6 @@ cluster:
   domain: mcp-pike-ovn-noha.local
   states:
     - openstack_noha
-    - ovn_ctl_opts
     - networks
 virtual:
   nodes:
diff --git a/mcp/config/states/ovn_ctl_opts b/mcp/config/states/ovn_ctl_opts
deleted file mode 100755 (executable)
index eeb336b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash -e
-##############################################################################
-# Copyright (c) 2017 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
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-CI_DEBUG=${CI_DEBUG:-0}; [[ "${CI_DEBUG}" =~ (false|0) ]] || set -x
-
-salt -I 'neutron:server' file.append /etc/default/ovn-central \
-  args="OVN_CTL_OPTS='--db-nb-create-insecure-remote=yes --db-sb-create-insecure-remote=yes'"
-salt -I 'neutron:server' service.restart ovn-central
-sleep 30
index 92db55c..ad86585 100644 (file)
@@ -11,6 +11,9 @@ classes:
   - cluster.mcp-pike-common-noha.openstack_compute
   - cluster.mcp-pike-ovn-noha
 parameters:
+  neutron:
+    compute:
+      controller_vip: ${_param:cluster_local_address}
   linux:
     network:
       interface: