Mofifications for OVN-Kubernetes 27/37927/1
authorAakashKT <aakash.kt@research.iiit.ac.in>
Fri, 21 Jul 2017 13:47:39 +0000 (19:17 +0530)
committerAakashKT <aakash.kt@research.iiit.ac.in>
Fri, 21 Jul 2017 13:49:50 +0000 (19:19 +0530)
Change-Id: Ib1f24d4a11d5d0dd4a5356619757cc72ac800877
Signed-off-by: Aakash KT <aakash.kt@research.iiit.ac.in>
ci/02-deploybundle.sh
ci/config_tpl/juju2/bundlek8_tpl/easyrsa.yaml
ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml
ci/config_tpl/juju2/bundlek8_tpl/kubernetes.yaml
ci/config_tpl/juju2/bundlek8_tpl/ovn.yaml

index 647d18b..b24b728 100755 (executable)
@@ -30,7 +30,7 @@ check_status() {
     while [ $retval -eq 0 ]; do
        sleep 30
        juju status > status.txt
-       if [ "$(grep -c "waiting" status.txt )" -ge 2 ]; then
+       if [ "$(grep -c "waiting" status.txt )" -ge 3 ]; then
            echo " still waiting for machines ..."
            if [ $timeoutiter -ge 240 ]; then
                retval=1
index a4633fc..ea46e42 100644 (file)
@@ -6,5 +6,9 @@
         "": internal-api
 {% endif %}
       to:
-        - "lxd:nodes/0"
+{% if k8.network.controller == 'ovn' %}
+        - "nodes/1"
+{% else %}
+         - "lxd:nodes/0"
+{% endif %}
 
index 5915038..d902adf 100644 (file)
@@ -1,7 +1,11 @@
     etcd:
       charm: "cs:~containers/etcd"
 {% if k8.feature.loadbalancer %}
+{% if k8.network.controller == 'ovn' %}
+      num_units: 1
+{% else %}
       num_units: 3
+{% endif %}
 {% else %}
       num_units: 1
 {% endif %}
@@ -10,6 +14,9 @@
         "": internal-api
 {% endif %}
       to:
+{% if k8.network.controller == 'ovn' %}
+        - "nodes/0"
+{% else %}
 {% if k8.feature.loadbalancer %}
 {% for unit_id in to_select() %}
         - "lxd:nodes/0"
@@ -17,4 +24,5 @@
 {% else %}
         - "lxd:nodes/0"
 {% endif %}
+{% endif %}
 
index 4589203..933c1ef 100644 (file)
@@ -9,6 +9,7 @@
 {% if k8.network.controller == 'ovn' %}
       options:
         channel: 1.5/stable
+        service-cidr: "192.168.200.0/24"
 {% endif %}
       to:
         - "nodes/0"
index ac6e1cf..094b375 100644 (file)
@@ -1,9 +1,9 @@
 
     ovn:
-      charm: "cs:~aakashkt/ovn-2"
+      charm: "cs:~aakashkt/ovn-8"
 {% if os.service.bindings %}
       bindings:
         "": internal-api
 {% endif %}
       options:
-        gateway-physical-interface: "intf100"
\ No newline at end of file
+        gateway-physical-interface: "none"
\ No newline at end of file