summaryrefslogtreecommitdiffstats
path: root/sourcecode/JOID/charm-k8s-ovn/layers
diff options
context:
space:
mode:
authorTrinath Somanchi <trinath.somanchi@nxp.com>2018-03-30 15:47:19 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-30 15:47:19 +0000
commit9623c07f59e059ed0b1cdc6fdfec9c7d9996d88d (patch)
tree5acdf92dfd6ae416e774f2c0a9cf6c55a498398b /sourcecode/JOID/charm-k8s-ovn/layers
parentc3106a47dd483f0dd736343789a0e307595d3d80 (diff)
parentdd2ff7be51548c62f5f708b7e323e23ca5171b95 (diff)
Merge "Code for charm-k8s-ovn under sourcecode/JOID/charm-k8s-ovn"
Diffstat (limited to 'sourcecode/JOID/charm-k8s-ovn/layers')
-rw-r--r--sourcecode/JOID/charm-k8s-ovn/layers/ovn/README.ex21
-rw-r--r--sourcecode/JOID/charm-k8s-ovn/layers/ovn/config.yaml5
-rw-r--r--sourcecode/JOID/charm-k8s-ovn/layers/ovn/copyright13
-rw-r--r--sourcecode/JOID/charm-k8s-ovn/layers/ovn/icon.svg581
-rw-r--r--sourcecode/JOID/charm-k8s-ovn/layers/ovn/layer.yaml2
-rw-r--r--sourcecode/JOID/charm-k8s-ovn/layers/ovn/metadata.yaml19
-rw-r--r--sourcecode/JOID/charm-k8s-ovn/layers/ovn/reactive/ovn.py491
-rwxr-xr-xsourcecode/JOID/charm-k8s-ovn/layers/ovn/tests/00-setup5
-rwxr-xr-xsourcecode/JOID/charm-k8s-ovn/layers/ovn/tests/10-deploy35
9 files changed, 1172 insertions, 0 deletions
diff --git a/sourcecode/JOID/charm-k8s-ovn/layers/ovn/README.ex b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/README.ex
new file mode 100644
index 0000000..f8f5bc0
--- /dev/null
+++ b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/README.ex
@@ -0,0 +1,21 @@
+# Overview
+
+This charm provides an SDN via the use of OVN and can be used with any principal charm implementing the [kubernetes-cni](https://github.com/juju-solutions/interface-kubernetes-cni) interface.
+
+# Usage
+
+This charm is subordinate.
+
+<code>
+juju deploy ovn
+juju deploy kubernetes-master
+juju deploy kubernetes-worker
+juju add-relation ovn kubernetes-master
+juju add-relation ovn kubernetes-worker
+</code>
+
+# Configuration
+
+The "gateway-physical-interface" option will allow you to choose an interface on which to create the gateway bridge. If unsure, leave it to "none" to use the default interface.
+
+
diff --git a/sourcecode/JOID/charm-k8s-ovn/layers/ovn/config.yaml b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/config.yaml
new file mode 100644
index 0000000..eb1fa21
--- /dev/null
+++ b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/config.yaml
@@ -0,0 +1,5 @@
+options:
+ gateway-physical-interface:
+ type: string
+ default: "none"
+ description: "The interface used by gateway nodes for north-south connectivity"
diff --git a/sourcecode/JOID/charm-k8s-ovn/layers/ovn/copyright b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/copyright
new file mode 100644
index 0000000..e04f1d3
--- /dev/null
+++ b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/copyright
@@ -0,0 +1,13 @@
+Copyright 2017 Aakash KT <aakashkt0@gmail.com> <aakash.kt@research.iiit.ac.in>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License. \ No newline at end of file
diff --git a/sourcecode/JOID/charm-k8s-ovn/layers/ovn/icon.svg b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/icon.svg
new file mode 100644
index 0000000..7517e0d
--- /dev/null
+++ b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/icon.svg
@@ -0,0 +1,581 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="96"
+ height="96"
+ id="svg6517"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="icon.svg">
+ <defs
+ id="defs6519">
+ <linearGradient
+ id="Background">
+ <stop
+ id="stop4178"
+ offset="0"
+ style="stop-color:#b8b8b8;stop-opacity:1" />
+ <stop
+ id="stop4180"
+ offset="1"
+ style="stop-color:#c9c9c9;stop-opacity:1" />
+ </linearGradient>
+ <filter
+ style="color-interpolation-filters:sRGB;"
+ inkscape:label="Inner Shadow"
+ id="filter1121">
+ <feFlood
+ flood-opacity="0.59999999999999998"
+ flood-color="rgb(0,0,0)"
+ result="flood"
+ id="feFlood1123" />
+ <feComposite
+ in="flood"
+ in2="SourceGraphic"
+ operator="out"
+ result="composite1"
+ id="feComposite1125" />
+ <feGaussianBlur
+ in="composite1"
+ stdDeviation="1"
+ result="blur"
+ id="feGaussianBlur1127" />
+ <feOffset
+ dx="0"
+ dy="2"
+ result="offset"
+ id="feOffset1129" />
+ <feComposite
+ in="offset"
+ in2="SourceGraphic"
+ operator="atop"
+ result="composite2"
+ id="feComposite1131" />
+ </filter>
+ <filter
+ style="color-interpolation-filters:sRGB;"
+ inkscape:label="Drop Shadow"
+ id="filter950">
+ <feFlood
+ flood-opacity="0.25"
+ flood-color="rgb(0,0,0)"
+ result="flood"
+ id="feFlood952" />
+ <feComposite
+ in="flood"
+ in2="SourceGraphic"
+ operator="in"
+ result="composite1"
+ id="feComposite954" />
+ <feGaussianBlur
+ in="composite1"
+ stdDeviation="1"
+ result="blur"
+ id="feGaussianBlur956" />
+ <feOffset
+ dx="0"
+ dy="1"
+ result="offset"
+ id="feOffset958" />
+ <feComposite
+ in="SourceGraphic"
+ in2="offset"
+ operator="over"
+ result="composite2"
+ id="feComposite960" />
+ </filter>
+ <clipPath
+ clipPathUnits="userSpaceOnUse"
+ id="clipPath873">
+ <g
+ transform="matrix(0,-0.66666667,0.66604479,0,-258.25992,677.00001)"
+ id="g875"
+ inkscape:label="Layer 1"
+ style="fill:#ff00ff;fill-opacity:1;stroke:none;display:inline">
+ <path
+ style="fill:#ff00ff;fill-opacity:1;stroke:none;display:inline"
+ d="m 46.702703,898.22775 50.594594,0 C 138.16216,898.22775 144,904.06497 144,944.92583 l 0,50.73846 c 0,40.86071 -5.83784,46.69791 -46.702703,46.69791 l -50.594594,0 C 5.8378378,1042.3622 0,1036.525 0,995.66429 L 0,944.92583 C 0,904.06497 5.8378378,898.22775 46.702703,898.22775 Z"
+ id="path877"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="sssssssss" />
+ </g>
+ </clipPath>
+ <filter
+ inkscape:collect="always"
+ id="filter891"
+ inkscape:label="Badge Shadow">
+ <feGaussianBlur
+ inkscape:collect="always"
+ stdDeviation="0.71999962"
+ id="feGaussianBlur893" />
+ </filter>
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="4.0745362"
+ inkscape:cx="-15.476928"
+ inkscape:cy="49.018169"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0"
+ inkscape:window-width="1383"
+ inkscape:window-height="879"
+ inkscape:window-x="57"
+ inkscape:window-y="21"
+ inkscape:window-maximized="1"
+ showborder="true"
+ showguides="true"
+ inkscape:guide-bbox="true"
+ inkscape:showpageshadow="false"
+ inkscape:snap-global="true">
+ <inkscape:grid
+ type="xygrid"
+ id="grid821" />
+ <sodipodi:guide
+ orientation="1,0"
+ position="16,48"
+ id="guide823" />
+ <sodipodi:guide
+ orientation="0,1"
+ position="64,80"
+ id="guide825" />
+ <sodipodi:guide
+ orientation="1,0"
+ position="80,40"
+ id="guide827" />
+ <sodipodi:guide
+ orientation="0,1"
+ position="64,16"
+ id="guide829" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata6522">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="BACKGROUND"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(268,-635.29076)"
+ style="display:inline">
+ <path
+ style="fill:#ffffff;fill-opacity:1;stroke:none;display:inline;filter:url(#filter1121)"
+ d="m -268,700.15563 0,-33.72973 c 0,-27.24324 3.88785,-31.13513 31.10302,-31.13513 l 33.79408,0 c 27.21507,0 31.1029,3.89189 31.1029,31.13513 l 0,33.72973 c 0,27.24325 -3.88783,31.13514 -31.1029,31.13514 l -33.79408,0 C -264.11215,731.29077 -268,727.39888 -268,700.15563 Z"
+ id="path6455"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="sssssssss" />
+ <image
+ y="651.29077"
+ x="-252"
+ id="image3466"
+ xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIEAIAAAByquWKAABDBElEQVR4nOzdB1wT6d4+/Emh9y4g
+vQgoRboiiCgCggrIqgh2EcuKIiiIYqErdooUxYJIVwRpFlRQkSqoNAXpSC/SIeXNJPt/H/es7qIk
+GRLme32e57MHYebac/TnZDK5bzSeCIDNMjh9MMPDw6XDpW0v2h61PapPqreqt6rjrtOp06mX+JL9
+JbsNaBtsG+z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+aTNqU2lTye/P/5z/uVS9BFGCKCwqOll0svFKw9mGs5hHGDeMG2GQjRACuw++uObewH2a+7RS5Pyo
++VG6K3QSdBI06jW5NbkXOi28tvAay30wUBeFTRU8sGgf8U5Kf0D/yf6T73e8132vW3a9LKgsqNwI
+vDr7uPjD1w9fu2O6/bv9cQdxxjhjqOuSlTUYpm9MckxyMjdk4mTilN+ryKrIqsqp7lDdsdCLMJSc
+ZONk+2X70XVgoK4Lmy54YNE54nVZWEdih1eHV+1bwmVZee3buvS69AbLet563kYNMM2GLfNb5nce
+69jUsWm4aqRkpASLxaRj0gm/PcD9NjUBASo8iEHcZRJfBXQD3QjiClBMc5k2MW3i/ARGdOfc0Lmh
+4sliWWJZEs6SlyUvS7dKt0i3yB2VDZENkdoqfVX6KqsJqzWrNfxSjr7BAwv2F8wGzGrM6r6zffv6
+9nUld1V1VXUc7NDr0Os/1b+tf1ufRd+2vm0DXAMEQ0TjN8ZcxlwmlCc3EPJ2IooQnUkLQlZOik2K
+Ieci7ZH2jHoMMoScYzxDSAJDPEM8Yzzjc8bnrNZsu9l2c7Swv2Z/zb2IZwfPDm457kXci/hwfCx8
+LHPezGmd08qrx2vMa8xxHQzwihjYrAcPLBgMRjP+vwAAAP//HU4zzmkfpbMAAAAASUVORK5CYII=
+"
+ style="image-rendering:optimizeQuality"
+ preserveAspectRatio="none"
+ height="64"
+ width="64" />
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer3"
+ inkscape:label="PLACE YOUR PICTOGRAM HERE"
+ style="display:inline" />
+ <g
+ inkscape:groupmode="layer"
+ id="layer2"
+ inkscape:label="BADGE"
+ style="display:none"
+ sodipodi:insensitive="true">
+ <g
+ style="display:inline"
+ transform="translate(-340.00001,-581)"
+ id="g4394"
+ clip-path="none">
+ <g
+ id="g855">
+ <g
+ inkscape:groupmode="maskhelper"
+ id="g870"
+ clip-path="url(#clipPath873)"
+ style="opacity:0.6;filter:url(#filter891)">
+ <path
+ transform="matrix(1.4999992,0,0,1.4999992,-29.999795,-237.54282)"
+ d="m 264,552.36218 a 12,12 0 0 1 -12,12 12,12 0 0 1 -12,-12 12,12 0 0 1 12,-12 12,12 0 0 1 12,12 z"
+ sodipodi:ry="12"
+ sodipodi:rx="12"
+ sodipodi:cy="552.36218"
+ sodipodi:cx="252"
+ id="path844"
+ style="color:#000000;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ sodipodi:type="arc" />
+ </g>
+ <g
+ id="g862">
+ <path
+ sodipodi:type="arc"
+ style="color:#000000;fill:#f5f5f5;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="path4398"
+ sodipodi:cx="252"
+ sodipodi:cy="552.36218"
+ sodipodi:rx="12"
+ sodipodi:ry="12"
+ d="m 264,552.36218 a 12,12 0 0 1 -12,12 12,12 0 0 1 -12,-12 12,12 0 0 1 12,-12 12,12 0 0 1 12,12 z"
+ transform="matrix(1.4999992,0,0,1.4999992,-29.999795,-238.54282)" />
+ <path
+ transform="matrix(1.25,0,0,1.25,33,-100.45273)"
+ d="m 264,552.36218 a 12,12 0 0 1 -12,12 12,12 0 0 1 -12,-12 12,12 0 0 1 12,-12 12,12 0 0 1 12,12 z"
+ sodipodi:ry="12"
+ sodipodi:rx="12"
+ sodipodi:cy="552.36218"
+ sodipodi:cx="252"
+ id="path4400"
+ style="color:#000000;fill:#dd4814;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ sodipodi:type="arc" />
+ <path
+ sodipodi:type="star"
+ style="color:#000000;fill:#f5f5f5;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="path4459"
+ sodipodi:sides="5"
+ sodipodi:cx="666.19574"
+ sodipodi:cy="589.50385"
+ sodipodi:r1="7.2431178"
+ sodipodi:r2="4.3458705"
+ sodipodi:arg1="1.0471976"
+ sodipodi:arg2="1.6755161"
+ inkscape:flatsided="false"
+ inkscape:rounded="0.1"
+ inkscape:randomized="0"
+ d="m 669.8173,595.77657 c -0.39132,0.22593 -3.62645,-1.90343 -4.07583,-1.95066 -0.44938,-0.0472 -4.05653,1.36297 -4.39232,1.06062 -0.3358,-0.30235 0.68963,-4.03715 0.59569,-4.47913 -0.0939,-0.44198 -2.5498,-3.43681 -2.36602,-3.8496 0.18379,-0.41279 4.05267,-0.59166 4.44398,-0.81759 0.39132,-0.22593 2.48067,-3.48704 2.93005,-3.4398 0.44938,0.0472 1.81505,3.67147 2.15084,3.97382 0.3358,0.30236 4.08294,1.2817 4.17689,1.72369 0.0939,0.44198 -2.9309,2.86076 -3.11469,3.27355 -0.18379,0.41279 0.0427,4.27917 -0.34859,4.5051 z"
+ transform="matrix(1.511423,-0.16366377,0.16366377,1.511423,-755.37346,-191.93651)" />
+ </g>
+ </g>
+ </g>
+ </g>
+</svg>
diff --git a/sourcecode/JOID/charm-k8s-ovn/layers/ovn/layer.yaml b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/layer.yaml
new file mode 100644
index 0000000..44b8acf
--- /dev/null
+++ b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/layer.yaml
@@ -0,0 +1,2 @@
+includes: ['layer:basic', 'interface:kubernetes-cni', 'interface:master-config']
+repo: 'https://github.com/AakashKT/charm-ovn.git'
diff --git a/sourcecode/JOID/charm-k8s-ovn/layers/ovn/metadata.yaml b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/metadata.yaml
new file mode 100644
index 0000000..767bb13
--- /dev/null
+++ b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/metadata.yaml
@@ -0,0 +1,19 @@
+name: ovn
+summary: SDN via OVN
+maintainer: Aakash <aakashkt0@gmail.com>
+description: |
+ Overlay networking via OVN and OVS
+tags:
+ - networking
+subordinate: true
+requires:
+ cni:
+ interface: kubernetes-cni
+ scope: container
+peers:
+ master-config:
+ interface: master-config
+
+series:
+ - xenial
+ - trusty
diff --git a/sourcecode/JOID/charm-k8s-ovn/layers/ovn/reactive/ovn.py b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/reactive/ovn.py
new file mode 100644
index 0000000..675a3dd
--- /dev/null
+++ b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/reactive/ovn.py
@@ -0,0 +1,491 @@
+import os
+import json
+import re
+import sys
+import subprocess
+import time
+import urllib.request as urllib2
+import multiprocessing as mp
+
+from charmhelpers.core import host
+
+from charmhelpers.core.hookenv import (
+ open_port,
+ open_ports,
+ status_set,
+ config,
+ unit_public_ip,
+ unit_private_ip,
+)
+
+from charmhelpers.core.host import (
+ service_start,
+ service_stop,
+ log,
+ mkdir,
+ write_file,
+)
+
+from charmhelpers.fetch import (
+ apt_install,
+ apt_update,
+ apt_upgrade
+)
+
+from charms.reactive.helpers import (
+ mark_invoked,
+ was_invoked,
+)
+
+from charms.reactive import (
+ when,
+ when_not,
+ when_file_changed,
+ hook,
+ RelationBase,
+ scopes,
+ set_state,
+ remove_state
+)
+
+
+
+CONF_FILE = '/tmp';
+
+
+#########################################################################
+# Common functions
+#########################################################################
+
+def run_command(command=None):
+
+ if command is None:
+ return False;
+
+ log('Running Command "%s"' % command);
+ try:
+ return subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT).decode('utf-8').replace('\n', '');
+ except subprocess.CalledProcessError as e:
+ log('Error running "%s" : %s' % (command, e.output));
+
+ return False;
+
+def get_config(key):
+ conf = config(key);
+ return conf;
+
+def retrieve(key):
+ try:
+ conf = open('/tmp/ovn_conf', 'r');
+ except:
+ return '';
+
+ plain_text = conf.read();
+ conf.close();
+ if plain_text == '':
+ return '';
+ else:
+ data = json.loads(plain_text);
+ return data[key];
+
+def store(key, value):
+ conf = open('/tmp/ovn_conf', 'r');
+ plain_text = conf.read();
+ conf.close();
+
+ conf = open('/tmp/ovn_conf', 'w+');
+
+ data = {};
+ if plain_text != '':
+ data = json.loads(plain_text);
+ data[key] = value;
+
+ conf.truncate(0);
+ conf.seek(0, 0);
+ conf.write(json.dumps(data));
+ conf.close();
+
+
+#########################################################################
+# Hooks and reactive handlers
+#########################################################################
+
+''' Common reactive handlers '''
+
+@when_not('deps.installed')
+def install_deps():
+ status_set('maintenance', 'Installing dependencies');
+
+ conf = open('/tmp/ovn_conf', 'w+');
+ conf.close();
+
+ run_command('sudo apt-get update ; sudo apt-get upgrade ; sudo apt-get install git -y');
+ run_command('sudo apt-get install -y build-essential fakeroot debhelper \
+ autoconf automake bzip2 libssl-dev docker.io \
+ openssl graphviz python-all procps \
+ python-dev python-setuptools python-pip python3 python3.4 \
+ python-twisted-conch libtool git dh-autoreconf \
+ linux-headers-$(uname -r) libcap-ng-dev');
+ run_command('sudo pip2 install six');
+
+ status_set('maintenance', 'Configure and make openvswitch');
+ run_command('git clone https://github.com/openvswitch/ovs.git /tmp/ovs');
+
+ os.chdir('/tmp/ovs');
+
+ run_command('./boot.sh');
+ run_command('./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
+ --enable-ssl --with-linux=/lib/modules/`uname -r`/build');
+ run_command('make -j3 ; sudo make install ; sudo make modules_install');
+
+ status_set('maintenance', 'Replacing kernel module');
+
+ run_command('sudo mkdir /etc/depmod.d/');
+ run_command('for module in datapath/linux/*.ko; \
+ do modname="$(basename ${module})" ; \
+ echo "override ${modname%.ko} * extra" >> "/etc/depmod.d/openvswitch.conf" ; \
+ echo "override ${modname%.ko} * weak-updates" >> "/etc/depmod.d/openvswitch.conf" ; \
+ done');
+ run_command('/sbin/modprobe openvswitch');
+
+ run_command('/usr/share/openvswitch/scripts/ovs-ctl start --system-id=$(uuidgen)');
+ status_set('maintenance', 'Open vSwitch Installed');
+
+ run_command('git clone https://github.com/openvswitch/ovn-kubernetes /tmp/ovn-kubernetes');
+ os.chdir('/tmp/ovn-kubernetes');
+ run_command('sudo -H pip2 install .');
+
+ set_state('deps.installed');
+
+
+
+''' Master reactive handlers and functions '''
+
+def get_worker_subnet():
+ ip3 = int(retrieve('ip3'));
+ store('ip3', ip3+1);
+
+ return '192.168.%s.0/24' % ip3;
+
+@when('master.initialised')
+def restart_services():
+ new_interface = retrieve('new_interface');
+ old_interface = retrieve('old_interface');
+
+ run_command('sudo ovn-k8s-watcher --overlay --pidfile \
+ --log-file -vfile:info -vconsole:emer --detach');
+ run_command('sudo ovn-k8s-gateway-helper --physical-bridge=%s \
+ --physical-interface=%s \
+ --pidfile --detach' % (new_interface, old_interface));
+
+@when('master.initialised', 'master-config.worker.cert.available')
+def sign_and_send(mconfig):
+ data = mconfig.get_worker_data();
+ central_ip = get_my_ip();
+ master_hostname = run_command('hostname');
+
+ signed_certs = {};
+ for unit in data:
+ worker_hostname = unit['worker_hostname'];
+
+ if not was_invoked(worker_hostname):
+ mark_invoked(worker_hostname);
+ cert = unit['cert_to_sign'];
+ worker_subnet = get_worker_subnet();
+
+ os.chdir('/tmp/');
+ cert_file = open('/tmp/ovncontroller-req.pem', 'w+');
+ cert_file.truncate(0);
+ cert_file.seek(0, 0);
+ cert_file.write(cert);
+ cert_file.close();
+ run_command('sudo ovs-pki -d /certs/pki -b sign ovncontroller switch --force');
+
+ cert_file = open('ovncontroller-cert.pem', 'r');
+ signed_cert = cert_file.read();
+
+ signed_certs[worker_hostname] = {
+ "central_ip": central_ip,
+ "signed_cert": signed_cert,
+ "master_hostname": master_hostname,
+ "worker_hostname": worker_hostname,
+ "worker_subnet": worker_subnet,
+ };
+
+ mconfig.send_signed_certs(signed_certs);
+
+@when('cni.is-master', 'master.initialised')
+@when_not('gateway.installed')
+def install_gateway(cni):
+ status_set('maintenance', 'Initialising gateway');
+
+ run_command('sudo ovs-vsctl set Open_vSwitch . external_ids:k8s-api-server="0.0.0.0:8080"');
+
+ run_command('git clone https://github.com/openvswitch/ovn-kubernetes /tmp/ovn-kubernetes');
+ os.chdir('/tmp/ovn-kubernetes');
+ run_command('sudo pip2 install .');
+
+ old_interface = get_interface(old=True);
+ new_interface = get_interface(old=False);
+
+ op = run_command('ifconfig %s | grep "inet addr:"' % (new_interface));
+ br_ip = op.lstrip().split()[1].replace('addr:', '');
+
+ gateway_ip = run_command('ip route | grep default').split(' ')[2];
+ hostname = run_command('hostname');
+
+ op = run_command('ovn-k8s-overlay gateway-init \
+ --cluster-ip-subnet="192.168.0.0/16" \
+ --bridge-interface %s \
+ --physical-ip %s/32 \
+ --node-name="%s-gateway" \
+ --default-gw %s' % (new_interface, br_ip, hostname, gateway_ip));
+ log('Gateway init output: %s' % (op));
+
+ op = run_command('ovn-k8s-gateway-helper --physical-bridge=%s \
+ --physical-interface=%s --pidfile --detach' % (new_interface, old_interface));
+ log('Gateway Helper start: %s' % (op));
+
+ status_set('active', 'Master subnet : 192.168.1.0/24');
+ set_state('gateway.installed');
+
+@when('cni.is-master', 'master.setup.done')
+@when_not('master.initialised')
+def initialise_master(cni):
+ status_set('maintenance', 'Initialising master network');
+
+ central_ip = get_my_ip();
+ hostname = run_command('hostname');
+
+ run_command('sudo ovs-vsctl set Open_vSwitch . external_ids:k8s-api-server="0.0.0.0:8080"');
+ run_command('sudo ovn-k8s-overlay master-init --cluster-ip-subnet="192.168.0.0/16" \
+ --master-switch-subnet="192.168.1.0/24" \
+ --node-name="%s"' % (hostname));
+
+ run_command('sudo ovn-k8s-watcher --overlay --pidfile --log-file -vfile:info \
+ -vconsole:emer --detach');
+
+ status_set('maintenance', 'Waiting for gateway');
+ set_state('master.initialised');
+
+@when('cni.is-master', 'bridge.setup.done')
+@when_not('master.setup.done')
+def master_setup(cni):
+ status_set('maintenance', 'Setting up master');
+ open_port(6641);
+ open_port(6642);
+ open_port(8080);
+
+ central_ip = get_my_ip();
+ run_command('sudo /usr/share/openvswitch/scripts/ovn-ctl start_northd');
+ run_command('sudo ovn-nbctl set-connection pssl:6641');
+ run_command('sudo ovn-sbctl set-connection pssl:6642');
+
+ os.chdir('/etc/openvswitch');
+ run_command('sudo ovs-pki -d /certs/pki init --force');
+ run_command('sudo cp /certs/pki/switchca/cacert.pem /etc/openvswitch/');
+
+ run_command('sudo ovs-pki req ovnnb --force && sudo ovs-pki self-sign ovnnb --force');
+ run_command('sudo ovn-nbctl set-ssl /etc/openvswitch/ovnnb-privkey.pem \
+ /etc/openvswitch/ovnnb-cert.pem /certs/pki/switchca/cacert.pem');
+
+ run_command('sudo ovs-pki req ovnsb --force && sudo ovs-pki self-sign ovnsb --force');
+ run_command('sudo ovn-sbctl set-ssl /etc/openvswitch/ovnsb-privkey.pem \
+ /etc/openvswitch/ovnsb-cert.pem /certs/pki/switchca/cacert.pem');
+
+ run_command('sudo ovs-pki req ovncontroller');
+ run_command('sudo ovs-pki -b -d /certs/pki sign ovncontroller switch --force');
+
+ ovn_host_file = open('/etc/default/ovn-host', 'a');
+ ovn_host_file.write('OVN_CTL_OPTS="--ovn-controller-ssl-key=/etc/openvswitch/ovncontroller-privkey.pem \
+ --ovn-controller-ssl-cert=/etc/openvswitch/ovncontroller-cert.pem \
+ --ovn-controller-ssl-bootstrap-ca-cert=/etc/openvswitch/ovnsb-ca.cert"');
+ ovn_host_file.close();
+
+ run_command('sudo ovs-vsctl set Open_vSwitch . external_ids:ovn-remote="ssl:%s:6642" \
+ external_ids:ovn-nb="ssl:%s:6641" \
+ external_ids:ovn-encap-ip=%s \
+ external_ids:ovn-encap-type="%s"' % (central_ip, central_ip, central_ip, 'geneve'));
+ run_command('sudo /usr/share/openvswitch/scripts/ovn-ctl \
+ --ovn-controller-ssl-key="/etc/openvswitch/ovncontroller-privkey.pem" \
+ --ovn-controller-ssl-cert="/etc/openvswitch/ovncontroller-cert.pem" \
+ --ovn-controller-ssl-bootstrap-ca-cert="/etc/openvswitch/ovnsb-ca.cert" \
+ restart_controller');
+
+ set_state('master.setup.done');
+
+@when('cni.is-master', 'master.kv.setup')
+@when_not('bridge.setup.done')
+def bridge_setup(cni):
+ status_set('maintenance', 'Setting up new interface');
+
+ interface = get_config('gateway-physical-interface');
+ if interface == 'none' or interface == None:
+ op = run_command('ip route | grep default').split(' ');
+ interface = op[4];
+
+ store('old_interface', interface);
+ store('new_interface', 'br%s' % (interface));
+
+ op = run_command('ovn-k8s-util nics-to-bridge %s' % (interface));
+ log('Bridge create output: %s' % (op));
+
+ op = run_command('dhclient -r br%s' % (interface));
+ op = run_command('dhclient br%s' % (interface));
+
+ status_set('maintenance', 'Waiting to initialise master');
+ set_state('bridge.setup.done');
+
+@when('cni.is-master', 'deps.installed')
+@when_not('master.kv.setup')
+def setup_master_kv(cni):
+ store('ip3', '2');
+
+ set_state('master.kv.setup');
+
+
+''' Worker reactive handlers and functions '''
+
+@when('cni.is-worker', 'worker.data.registered')
+@when_not('k8s.worker.certs.setup')
+def setup_k8s_worker_certs(cni):
+ if os.path.isfile('/root/cdk/kubeconfig') and os.path.isfile('/root/cdk/ca.crt'):
+ set_state('k8s.worker.certs.setup');
+
+ master_hostname = retrieve('master_hostname');
+
+ k8s_api_ip = "%s:6443" % (master_hostname);
+ api_token = run_command('sudo awk \'$1=="token:" {print $2}\' /root/cdk/kubeconfig');
+
+ run_command('sudo cp /root/cdk/ca.crt /etc/openvswitch/k8s-ca.crt');
+ run_command('sudo ovs-vsctl set Open_vSwitch . \
+ external_ids:k8s-api-server="https://%s" \
+ external_ids:k8s-api-token="%s"' % (k8s_api_ip, api_token));
+
+
+@when('cni.is-worker', 'worker.setup.done')
+@when_not('worker.initialised')
+def initialise_worker(cni):
+ status_set('maintenance', 'Initialising worker network');
+
+ local_ip = get_my_ip();
+ worker_subnet = retrieve('worker_subnet');
+ central_ip = retrieve('central_ip');
+ hostname = run_command('hostname').replace('\n', '');
+
+ run_command('ovs-vsctl set Open_vSwitch . \
+ external_ids:k8s-api-server="%s:8080"' % (central_ip));
+ run_command('ovn-k8s-overlay minion-init --cluster-ip-subnet="192.168.0.0/16" \
+ --minion-switch-subnet="%s" --node-name="%s"' % (worker_subnet, hostname));
+
+ os.chdir('/tmp/');
+ run_command('wget https://github.com/containernetworking/cni/releases/download/v0.5.2/cni-amd64-v0.5.2.tgz');
+ run_command('sudo mkdir -p /opt/cni/bin');
+ run_command('sudo mkdir -p /etc/cni/net.d');
+ os.chdir('/opt/cni/bin/');
+ run_command('sudo tar xvzf /tmp/cni-amd64-v0.5.2.tgz');
+
+ status_set('active', 'Worker subnet : %s' % (worker_subnet));
+ set_state('worker.initialised');
+
+@when('cni.is-worker', 'worker.data.registered')
+@when_not('worker.setup.done')
+def worker_setup(cni):
+ status_set('maintenance', 'Setting up worker');
+ open_port(8080);
+
+ central_ip = retrieve('central_ip');
+ local_ip = get_my_ip();
+
+ run_command('sudo ovs-vsctl set Open_vSwitch . \
+ external_ids:ovn-remote="ssl:%s:6642" \
+ external_ids:ovn-nb="ssl:%s:6641" \
+ external_ids:ovn-encap-ip=%s \
+ external_ids:ovn-encap-type=%s' % (central_ip, central_ip, local_ip, 'geneve'));
+
+ ovn_host_file = open('/etc/default/ovn-host', 'a');
+ ovn_host_file.write('OVN_CTL_OPTS="--ovn-controller-ssl-key=/etc/openvswitch/ovncontroller-privkey.pem \
+ --ovn-controller-ssl-cert=/etc/openvswitch/ovncontroller-cert.pem \
+ --ovn-controller-ssl-bootstrap-ca-cert=/etc/openvswitch/ovnsb-ca.cert"');
+ ovn_host_file.close();
+
+ run_command('sudo /usr/share/openvswitch/scripts/ovn-ctl \
+ --ovn-controller-ssl-key="/etc/openvswitch/ovncontroller-privkey.pem" \
+ --ovn-controller-ssl-cert="/etc/openvswitch/ovncontroller-cert.pem" \
+ --ovn-controller-ssl-bootstrap-ca-cert="/etc/openvswitch/ovnsb-ca.cert" \
+ restart_controller');
+ set_state('worker.setup.done');
+
+@when('cni.is-worker', 'master-config.master.data.available', 'worker.cert.sent')
+@when_not('worker.data.registered')
+def receive_data(cni, mconfig):
+ status_set('maintenance', 'Certificate received')
+ worker_hostname = run_command('hostname');
+
+ data = mconfig.get_signed_cert(worker_hostname);
+ cert = data['signed_cert'];
+ worker_subnet = data['worker_subnet'];
+ master_ip = data['central_ip'];
+ master_hostname = data['master_hostname'];
+
+ store('master_hostname', master_hostname);
+ store('worker_subnet', worker_subnet);
+ store('central_ip', master_ip);
+ cni.set_config(cidr='192.168.0.0/16');
+
+ os.chdir('/etc/openvswitch');
+ cert_file = open('/etc/openvswitch/ovncontroller-cert.pem', 'a');
+ cert_file.write(cert);
+ cert_file.close();
+
+ set_state('worker.data.registered');
+
+@when('cni.is-worker', 'master-config.connected', 'worker.kv.setup')
+@when_not('worker.cert.sent')
+def send_cert(cni, mconfig):
+ worker_hostname = run_command('hostname');
+ mconfig.set_worker_id(worker_hostname);
+
+ os.chdir('/etc/openvswitch');
+ run_command('sudo ovs-pki req ovncontroller');
+
+ req_file = open('ovncontroller-req.pem', 'r');
+ cert = req_file.read();
+ mconfig.send_worker_data({
+ 'cert_to_sign': cert,
+ 'worker_hostname': worker_hostname
+ });
+
+ status_set('maintenance', 'Waiting for certificate');
+ set_state('worker.cert.sent');
+
+@when('cni.is-worker', 'deps.installed')
+@when_not('worker.kv.setup')
+def setup_worker_kv(cni):
+ hostname = run_command('hostname');
+ interface = get_config('gateway-physical-interface');
+ if interface == 'none' or interface == None:
+ op = run_command('ip route | grep default').split(' ');
+ interface = op[4];
+
+ store('new_interface', interface);
+ store('worker_hostname', hostname);
+ set_state('worker.kv.setup');
+
+
+#########################################################################
+# Helper functions
+#########################################################################
+
+
+def get_my_ip():
+ interface = get_interface(old=False);
+
+ op = run_command('ifconfig %s | grep "inet addr:"' % (interface));
+ br_ip = op.lstrip().split()[1].replace('addr:', '');
+
+ return br_ip;
+
+def get_interface(old):
+ key = 'old_interface' if old == True else 'new_interface';
+ return retrieve(key);
diff --git a/sourcecode/JOID/charm-k8s-ovn/layers/ovn/tests/00-setup b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/tests/00-setup
new file mode 100755
index 0000000..f0616a5
--- /dev/null
+++ b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/tests/00-setup
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+sudo add-apt-repository ppa:juju/stable -y
+sudo apt-get update
+sudo apt-get install amulet python-requests -y
diff --git a/sourcecode/JOID/charm-k8s-ovn/layers/ovn/tests/10-deploy b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/tests/10-deploy
new file mode 100755
index 0000000..1cd905f
--- /dev/null
+++ b/sourcecode/JOID/charm-k8s-ovn/layers/ovn/tests/10-deploy
@@ -0,0 +1,35 @@
+#!/usr/bin/python3
+
+import amulet
+import requests
+import unittest
+
+
+class TestCharm(unittest.TestCase):
+ def setUp(self):
+ self.d = amulet.Deployment()
+
+ self.d.add('OVN')
+ self.d.expose('OVN')
+
+ self.d.setup(timeout=900)
+ self.d.sentry.wait()
+
+ self.unit = self.d.sentry['OVN'][0]
+
+ def test_service(self):
+ # test we can access over http
+ page = requests.get('http://{}'.format(self.unit.info['public-address']))
+ self.assertEqual(page.status_code, 200)
+ # Now you can use self.d.sentry[SERVICE][UNIT] to address each of the units and perform
+ # more in-depth steps. Each self.d.sentry[SERVICE][UNIT] has the following methods:
+ # - .info - An array of the information of that unit from Juju
+ # - .file(PATH) - Get the details of a file on that unit
+ # - .file_contents(PATH) - Get plain text output of PATH file from that unit
+ # - .directory(PATH) - Get details of directory
+ # - .directory_contents(PATH) - List files and folders in PATH on that unit
+ # - .relation(relation, service:rel) - Get relation data from return service
+
+
+if __name__ == '__main__':
+ unittest.main()