modified to integrete ONOS. 67/16267/2
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 1 Jul 2016 14:02:24 +0000 (09:02 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 1 Jul 2016 14:13:43 +0000 (09:13 -0500)
Change-Id: Ic787c583c36805aca13ec0a954b23d89a1addc8d
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/01-deploybundle.sh
ci/bundle_tpl/bundle.yaml
ci/bundle_tpl/harelations.yaml
ci/bundle_tpl/neutron-api.yaml
ci/bundle_tpl/neutron-gateway.yaml
ci/bundle_tpl/neutron-ovs.yaml
ci/bundle_tpl/onos.yaml [new file with mode: 0644]
ci/bundle_tpl/relations.yaml
ci/bundle_tpl/subordinate.yaml

index 1c3811d..78f3cf5 100755 (executable)
@@ -10,6 +10,8 @@ set -ex
     sed -i -- "s|distro=trusty|distro=$6|g" ./fetch-charms.sh
     ./fetch-charms.sh $6
 
+osdomname=''
+
 case "$1" in
     'nonha' )
         cp $4/juju-deployer/ovs-$4-nonha.yaml ./bundles.yaml
@@ -144,11 +146,18 @@ case "$6" in
         ;;
 esac
 
-var=os-$4-$fea-$1
-if [ "$4" == "nosdn" ]; then
+if [ "$osdomname" != "''" ]; then
+    var=os-$4-$fea-$1-publicapi
+else
+    var=os-$4-$fea-$1
+fi
+
+if [ "$4" != "nosdn" ]; then
     python genBundle.py  -l deployconfig.yaml  -s $var > bundles.yaml
 elif [ "$4" == "odl" ]; then
     python genBundle.py  -l deployconfig.yaml  -s $var > bundles.yaml
+elif [ "$4" == "onos" ]; then
+    python genBundle.py  -l deployconfig.yaml  -s $var > bundles.yaml
 fi
 
 echo "... Deployment Started ...."
index 19bf115..4aae4fb 100644 (file)
@@ -33,7 +33,11 @@ openstack-phase1:
 {% include 'heat.yaml' %}
 {% include 'neutron-api.yaml' %}
 {% include 'neutron-gateway.yaml' %}
-{% if os.network.controller == 'odl' %}{% include 'odl.yaml' %}{% endif %}
+{% if os.network.controller == 'odl' %}
+    {% include 'odl.yaml' %}
+{% elif os.network.controller == 'onos' %}
+    {% include 'onos.yaml' %}
+{% endif %}
 {% if os.ha.mode == 'ha' %}
     {% include 'haclusters.yaml' %}
 {% endif %}
index 0a455e9..bc089d0 100644 (file)
@@ -18,6 +18,8 @@
       - hacluster-horizon:ha
     - - heat:ha
       - hacluster-heat:ha
+    - - ceilometer:ha
+      - hacluster-ceilometer:ha
 {% if os.beta.hacluster_ceph_radosgw %}
     - - ceph-radosgw:ha
       - hacluster-ceph-radosgw:ha
index 3942fe2..86c6fed 100644 (file)
@@ -5,8 +5,10 @@
         neutron-security-groups: true
 {% if os.network.controller == 'nosdn' %}
         overlay-network-type: vxlan
-{% endif %}
-{% if os.network.controller == 'odl' %}
+{% elif os.network.controller == 'odl' %}
+        manage-neutron-plugin-legacy-mode: False
+{% elif os.network.controller == 'onos' %}
+        flat-network-providers: "*"
         manage-neutron-plugin-legacy-mode: False
 {% endif %}
 {% if os.ha.mode == 'ha' %}
index f1eadc3..c5678a0 100644 (file)
@@ -6,6 +6,8 @@
 {% endif %}
 {% if os.network.controller == 'odl' %}
         plugin: ovs-odl
+{% elif os.network.controller == 'onos' %}
+        plugin: onos
 {% endif %}
         instance-mtu: 1400
       to:
index ba0b6a5..20bf1d9 100644 (file)
@@ -4,8 +4,8 @@
 {% if os.network.dpdk %}
         enable-dpdk: true
         #dpdk-driver: uio_pci_generic
-{% endif %}
         #data-port: ""
         #default-socket-memory: 1024
         #default-socket-cores: 1
+{% endif %}
 {# Empty block to avoid bad block trim #}
diff --git a/ci/bundle_tpl/onos.yaml b/ci/bundle_tpl/onos.yaml
new file mode 100644 (file)
index 0000000..4459330
--- /dev/null
@@ -0,0 +1,7 @@
+    onos-controller:
+      charm: local:{{ ubuntu.release }}/onos-controller
+      options:
+        #ext-port: "eth1"
+        #gateway-mac: "default"
+      to:
+        - "lxc:nodes=0"
index 98b3d31..c2e12a9 100644 (file)
     - - neutron-openvswitch:neutron-plugin-api
       - neutron-api:neutron-plugin-api
 {% elif os.network.controller == 'odl' %}
-    - - nova-compute:neutron-plugin
-      - openvswitch-odl:neutron-plugin
-    - - neutron-gateway
-      - openvswitch-odl
-    - - openvswitch-odl:ovsdb-manager
-      - odl-controller:ovsdb-manager
-    - - neutron-api-odl:odl-controller
-      - odl-controller:controller-api
+    - - "neutron-api:neutron-plugin-api-subordinate"
+      - "neutron-api-odl:neutron-plugin-api-subordinate"
+    - - "nova-compute:neutron-plugin"
+      - "openvswitch-odl:neutron-plugin"
+    - - "neutron-gateway"
+      - "openvswitch-odl"
+    - - "openvswitch-odl:ovsdb-manager"
+      - "odl-controller:ovsdb-manager"
+    - - "neutron-api-odl:odl-controller"
+      - "odl-controller:controller-api"
+{% elif os.network.controller == 'onos' %}
+    - - "neutron-api:neutron-plugin-api-subordinate"
+      - "neutron-api-onos:neutron-plugin-api-subordinate"
+    - - "nova-compute:neutron-plugin"
+      - "openvswitch-onos:neutron-plugin"
+    - - "neutron-gateway"
+      - "openvswitch-onos"
+    - - "openvswitch-onos:ovsdb-manager"
+      - "onos-controller:ovsdb-manager"
+    - - "neutron-api-onos:onos-controller"
+      - "onos-controller:controller-api"
 {% endif %}
index c84cdd7..645cd05 100644 (file)
@@ -4,7 +4,8 @@
     cinder-ceph:
       charm: local:{{ ubuntu.release }}/cinder-ceph
 {% endif %}
-{% if os.network.controller == 'nosdn' %}{% include 'neutron-ovs.yaml' %}
+{% if os.network.controller == 'nosdn' %}
+    {% include 'neutron-ovs.yaml' %}
 {% elif os.network.controller == 'odl' %}
     neutron-api-odl:
       charm: local:{{ ubuntu.release }}/neutron-api-odl
     openvswitch-odl:
       charm: local:{{ ubuntu.release }}/openvswitch-odl
 {% elif os.network.controller == 'nons' %}
-    openvswitch-onos:
-      charm: local:{{ ubuntu.release }}/openvswitch-onos
     neutron-api-onos:
       charm: local:{{ ubuntu.release }}/neutron-api-onos
       options:
         overlay-network-type: 'vxlan'
         security-groups: True
+    openvswitch-onos:
+      charm: local:{{ ubuntu.release }}/openvswitch-onos
 {% endif %}
 {% if os.lxd %}
     lxd: