modified to fix the opencontrail bundle issue for nonha. 59/22759/2
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 7 Oct 2016 03:40:38 +0000 (22:40 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 7 Oct 2016 03:54:19 +0000 (22:54 -0500)
Change-Id: I3b35c8bb4d9ceecdacebf2b092fe38acb77b5076
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
17 files changed:
ci/config_tpl/bundle_tpl/ceilometer.yaml
ci/config_tpl/bundle_tpl/cinder.yaml
ci/config_tpl/bundle_tpl/glance.yaml
ci/config_tpl/bundle_tpl/heat.yaml
ci/config_tpl/bundle_tpl/keystone.yaml
ci/config_tpl/bundle_tpl/neutron-api.yaml
ci/config_tpl/bundle_tpl/neutron-gateway.yaml
ci/config_tpl/bundle_tpl/neutron-ovs.yaml
ci/config_tpl/bundle_tpl/nova-cloud-controller.yaml
ci/config_tpl/bundle_tpl/nova-compute.yaml
ci/config_tpl/bundle_tpl/oclphase1.yaml
ci/config_tpl/bundle_tpl/openstack-dashboard.yaml
ci/config_tpl/bundle_tpl/phase2-overrides.yaml
ci/config_tpl/bundle_tpl/relations.yaml
ci/config_tpl/bundle_tpl/subordinate.yaml
ci/opencontrail/fetch-charms.sh
labconfig/juniper/pod1/labconfig.yaml

index 031551a..ef70630 100644 (file)
@@ -6,6 +6,7 @@
       charm: "local:{{ ubuntu.release }}/ceilometer"
       num_units: {{ unit_qty() }}
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.ceilometer }}
 {% endif %}
index 1d70372..82e1873 100644 (file)
@@ -6,6 +6,7 @@
       num_units: {{ unit_qty() }}
 {% endif %}
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.cinder }}
 {% endif %}
index 8499932..50ee54b 100644 (file)
@@ -2,6 +2,7 @@
       charm: "local:{{ ubuntu.release }}/glance"
       num_units: {{ unit_qty() }}
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.glance }}
 {% endif %}
index 119a557..087cd4f 100644 (file)
@@ -2,6 +2,7 @@
       charm: "local:{{ ubuntu.release }}/heat"
 #      num_units: {{ unit_qty() }}
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if os.ha.mode == 'ha' %}
 #        vip: {{ opnfv.vip.heat }}
 {% endif %}
index 24f5b10..991dfa4 100644 (file)
@@ -2,6 +2,7 @@
       charm: "local:{{ ubuntu.release }}/keystone"
       num_units: {{ unit_qty() }}
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         admin-password: {{ opnfv.admin_password | default(os.admin.password) }}
         admin-token: {{ os.admin.name }}
 {% if os.ha.mode == 'ha' %}
index 4de6e07..807d9f4 100644 (file)
@@ -2,6 +2,7 @@
       charm: "local:{{ ubuntu.release }}/neutron-api"
       num_units: {{ unit_qty() }}
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         neutron-security-groups: true
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.neutron }}
index 0719550..7b97d47 100644 (file)
@@ -1,6 +1,7 @@
     neutron-gateway:
       charm: "local:{{ ubuntu.release }}/neutron-gateway"
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if opnfv.spaces_dict.data is defined %}
         os-data-network: {{ opnfv.spaces_dict.data.cidr }}
 {% endif %}
index 6823ca8..800f470 100644 (file)
@@ -1,6 +1,7 @@
     neutron-openvswitch:
       charm: local:{{ ubuntu.release }}/neutron-openvswitch
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if opnfv.spaces_dict.data is defined %}
         os-data-network: {{ opnfv.spaces_dict.data.cidr }}
 {% endif %}
index 88e3f73..05ece87 100644 (file)
@@ -2,6 +2,7 @@
       charm: "local:{{ ubuntu.release }}/nova-cloud-controller"
       num_units: {{ unit_qty() }}
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         #console-access-protocol: novnc
         neutron-external-network: ext-net
         service-guard: true
index 0311889..0a9305a 100644 (file)
@@ -10,6 +10,7 @@
 {% endif %}
 {% endif %}
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         enable-live-migration: true
         enable-resize: true
         migration-auth-type: ssh
index 5781ebc..ebb69c4 100644 (file)
@@ -22,7 +22,7 @@
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.contrailconfig }}
 {% endif %}
-      install-sources: ppa:opencontrail/trunk-20160812
+        install-sources: ppa:opencontrail/trunk-20160812
       to:
 {% for unit_id in to_select() %}
         - "lxc:nodes={{ unit_id }}"
@@ -30,7 +30,8 @@
     contrail-control:
       charm: local:{{ ubuntu.release }}/contrail-control
       num_units: {{ unit_qty() }}
-      install-sources: ppa:opencontrail/trunk-20160812
+      options:
+        install-sources: ppa:opencontrail/trunk-20160812
       to:
 {% for unit_id in to_select() %}
         - "lxc:nodes={{ unit_id }}"
@@ -38,7 +39,8 @@
     contrail-analytics:
       charm: local:{{ ubuntu.release }}/contrail-analytics
       num_units: {{ unit_qty() }}
-      install-sources: ppa:opencontrail/trunk-20160812
+      options:
+        install-sources: ppa:opencontrail/trunk-20160812
       to:
 {% for unit_id in to_select() %}
         - "lxc:nodes={{ unit_id }}"
@@ -46,7 +48,8 @@
     contrail-webui:
       charm: local:{{ ubuntu.release }}/contrail-webui
       num_units: {{ unit_qty() }}
-      install-sources: ppa:opencontrail/trunk-20160812
+      options:
+        install-sources: ppa:opencontrail/trunk-20160812
       to:
 {% for unit_id in to_select() %}
         - "lxc:nodes={{ unit_id }}"
index 83408dc..db83d5b 100644 (file)
@@ -2,6 +2,7 @@
       charm: "local:{{ ubuntu.release }}/openstack-dashboard"
       num_units: {{ unit_qty() }}
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         secret: admin
         webroot: /
 {% if os.ha.mode == 'ha' %}
index c38af91..2063607 100644 (file)
 {% endif %}
     region: {{ os.region }}
 {% if ubuntu.release == 'trusty' %}
-    source: "cloud:{{ ubuntu.release }}-{{ os.release }}"
+    #source: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% endif %}
 {% if ubuntu.release == 'xenial' %}
 {% if os.release == 'newton' %}
-    source: "cloud:{{ ubuntu.release }}-{{ os.release }}"
+    #source: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% endif %}
 {% endif %}
-    openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
+    #openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if os.ha.mode == 'nonha' %}
 {% if opnfv.storage_dict.ceph is defined %}
     ceph-osd-replication-count: {{ unit_ceph_qty() }}
index 8dd6475..6d4d70c 100644 (file)
     - [ 'openvswitch-onos:ovsdb-manager', 'onos-controller:ovsdb-manager' ]
     - [ 'neutron-api-onos:onos-controller', 'onos-controller:controller-api' ]
 {% elif os.network.controller == 'ocl' %}
+    - [ 'kafka', 'zookeeper' ]
     - [ 'contrail-configuration:cassandra', 'cassandra:database' ]
+    - [ 'contrail-configuration:contrail-analytics-api', 'contrail-analytics:contrail-analytics-api' ]
     - [ 'contrail-configuration', 'zookeeper' ]
     - [ 'contrail-configuration', 'rabbitmq-server' ]
     - [ 'contrail-configuration', 'keystone' ]
-    - [ 'neutron-api-contrail', 'contrail-configuration' ]
-    - [ 'neutron-api-contrail', 'keystone' ]
-    - [ 'contrail-control:contrail-api', 'contrail-configuration:contrail-api' ]
+    - [ 'contrail-configuration', 'haproxy' ]
+    - [ 'contrail-analytics:cassandra', 'cassandra:database' ]
+    - [ 'contrail-analytics:contrail-api', 'contrail-configuration:contrail-api' ]
+    - [ 'contrail-analytics:contrail-discovery', 'contrail-configuration:contrail-discovery' ]
+    - [ 'contrail-analytics', 'kafka' ]
+    - [ 'contrail-analytics', 'zookeeper' ]
+    - [ 'contrail-analytics', 'keystone' ]
+    - [ 'contrail-analytics', 'haproxy' ]
     - [ 'contrail-control:contrail-discovery', 'contrail-configuration:contrail-discovery' ]
     - [ 'contrail-control:contrail-ifmap', 'contrail-configuration:contrail-ifmap' ]
+    - [ 'contrail-control:contrail-api', 'contrail-configuration:contrail-api' ]
     - [ 'contrail-control', 'keystone' ]
-    - [ 'contrail-analytics:cassandra', 'cassandra:database' ]
-    - [ 'contrail-analytics:contrail-analytics-api', 'contrail-configuration:contrail-analytics-api' ]
-    - [ 'contrail-configuration:contrail-discovery', 'contrail-analytics:contrail-discovery' ]
+    - [ 'neutron-api-contrail', 'contrail-configuration' ]
+    - [ 'neutron-api-contrail', 'keystone' ]
     - [ 'contrail-webui', 'keystone' ]
     - [ 'contrail-webui:contrail_api', 'contrail-configuration:contrail-api' ]
     - [ 'contrail-webui:contrail_discovery', 'contrail-configuration:contrail-discovery' ]
     - [ 'contrail-webui:cassandra', 'cassandra:database' ]
-    - [ 'nova-compute', 'neutron-contrail' ]
+    - [ 'contrail-webui', 'haproxy' ]
+    - [ 'neutron-contrail', 'keystone' ]
     - [ 'neutron-contrail:contrail-discovery', 'contrail-configuration:contrail-discovery' ]
     - [ 'neutron-contrail:contrail-api', 'contrail-configuration:contrail-api' ]
-    - [ 'neutron-contrail', 'keystone' ]
-    - [ 'contrail-configuration', 'ntp' ]
-    - [ 'contrail-control', 'ntp' ]
-    - [ 'contrail-analytics', 'ntp' ]
-    - [ 'contrail-configuration', 'haproxy' ]
-    - [ 'contrail-analytics', 'haproxy' ]
-    - [ 'contrail-webui', 'haproxy' ]
     - [ 'haproxy', 'keepalived' ]
+    - [ 'ceilometer', 'ceilometer-contrail' ]
+    - [ 'ceilometer-contrail', 'contrail-analytics' ]
 {% endif %}
index 178328f..65e065a 100644 (file)
@@ -1,8 +1,12 @@
     ceilometer-agent:
       charm: local:{{ ubuntu.release }}/ceilometer-agent
+      options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if opnfv.storage_dict.ceph is defined %}
     cinder-ceph:
       charm: local:{{ ubuntu.release }}/cinder-ceph
+      options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% endif %}
 {% if os.network.controller == 'nosdn' %}
 {% include 'neutron-ovs.yaml' %}
@@ -15,6 +19,7 @@
     openvswitch-odl:
       charm: local:{{ ubuntu.release }}/openvswitch-odl
       options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if opnfv.spaces_dict.data is defined %}
         os-data-network: {{ opnfv.spaces_dict.data.cidr }}
 {% endif %}
         profile: onos-sfc
 {% endif %}
 {% elif os.network.controller == 'ocl' %}
+    ceilometer-contrail:
+      charm: local:{{ ubuntu.release }}/ceilometer-contrail
+      options:
+        install-sources: ppa:opencontrail/trunk-20160812
     neutron-api-contrail:
       charm: local:{{ ubuntu.release }}/neutron-api-contrail
-      install-sources: ppa:opencontrail/trunk-20160812
+      options:
+        install-sources: ppa:opencontrail/trunk-20160812
     neutron-contrail:
       charm: local:{{ ubuntu.release }}/neutron-contrail
-      install-sources: ppa:opencontrail/trunk-20160812
+      options:
+        install-sources: ppa:opencontrail/trunk-20160812
     keepalived:
       charm: local:{{ ubuntu.release }}/keepalived
       options:
+        router-id: 1
 {% if os.ha.mode == 'ha' %}
         virtual-ip: {{ opnfv.vip.keepalived }}
 {% endif %}
@@ -50,6 +62,8 @@
 {% if os.lxd %}
     lxd:
       charm: local:{{ ubuntu.release }}/lxd
+      options:
+        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% endif %}
 {% if opnfv.storage_dict.scaleio is defined %}
     scaleio-openstack:
index 53dc736..3d03395 100755 (executable)
@@ -12,7 +12,7 @@ function build {
 
 # openstack
 bzr branch lp:~narindergupta/charms/trusty/promise/trunk $distro/promise
-charm pull cs:$distro/mongodb $distro/mongodb
+charm pull cs:trusty/mongodb $distro/mongodb
 charm pull cs:$distro/haproxy $distro/haproxy
 charm pull cs:$distro/ntp $distro/ntp
 
@@ -22,7 +22,7 @@ git clone -b stable/16.07 https://github.com/openstack/charm-aodh.git $distro/ch
 build aodh
 
 git clone -b stable/16.07 https://github.com/openstack/charm-hacluster.git $distro/hacluster
-git clone -b stable/16.07 https://github.com/openstack/charm-ceilometer.git $distro/ceilometer
+#git clone -b stable/16.07 https://github.com/openstack/charm-ceilometer.git $distro/ceilometer
 git clone -b stable/16.07 https://github.com/openstack/charm-ceilometer-agent.git $distro/ceilometer-agent
 git clone -b stable/16.07 https://github.com/openstack/charm-ceph.git $distro/ceph
 git clone -b stable/16.07 https://github.com/openstack/charm-ceph-osd.git $distro/ceph-osd
@@ -63,15 +63,15 @@ git clone -b stable/16.07 https://github.com/openstack/charm-neutron-api.git $di
 #charm pull cs:~openstack-charmers-next/lxd xenial/lxd
 
 # Controller specific charm
-charm pull cs:$distro/apache-kafka $distro/kafka
+charm pull cs:trusty/apache-kafka $distro/kafka
 bzr branch lp:~sdn-charmers/charms/$distro/keepalived/trunk $distro/keepalived
 bzr branch lp:~sdn-charmers/charms/$distro/cassandra/ufw $distro/cassandra
 bzr branch lp:~sdn-charmers/charms/$distro/contrail-analytics/trunk $distro/contrail-analytics
 bzr branch lp:~sdn-charmers/charms/$distro/contrail-configuration/trunk $distro/contrail-configuration
 bzr branch lp:~sdn-charmers/charms/$distro/contrail-control/trunk $distro/contrail-control
 bzr branch lp:~sdn-charmers/charms/$distro/contrail-webui/trunk $distro/contrail-webui
-charm pull cs:$distro/apache-zookeeper $distro/zookeeper
-bzr branch lp:~opnfv-team/charms/$distro/neutron-api-contrail/trunk $distro/neutron-api-contrail
-bzr branch lp:~opnfv-team/charms/$distro/neutron-contrail/trunk $distro/neutron-contrail
-bzr branch lp:~sdn-charmers/charms/$distro/ceilometer/ceilometer-plugin $distro/ceilometer-plugin
+charm pull cs:trusty/apache-zookeeper $distro/zookeeper
+bzr branch lp:~sdn-charmers/charms/trusty/neutron-api-contrail/trunk $distro/neutron-api-contrail
+bzr branch lp:~sdn-charmers/charms/trusty/neutron-contrail/trunk $distro/neutron-contrail
+bzr branch lp:~sdn-charmers/charms/$distro/ceilometer/ceilometer-plugin $distro/ceilometer
 bzr branch lp:~sdn-charmers/charms/$distro/ceilometer-contrail/trunk $distro/ceilometer-contrail
index 3ec606d..369b6a1 100644 (file)
@@ -78,7 +78,7 @@ lab:
         address: 10.10.7.85
         user: ADMIN
         pass: ADMIN
-    floating-ip-range: 10.5.15.6,10.5.15.250,10.5.15.1,10.5.15.0/24
+    floating-ip-range: 10.10.10.6,10.10.10.250,10.10.10.1,10.10.10.0/24
     ext-port: "eth1"
     dns: 8.8.8.8
     osdomainname:
@@ -101,6 +101,6 @@ opnfv:
       vlan:
     - type: public
       bridge: brPublic
-      cidr: 10.10.0.0/28
+      cidr: 10.10.10.0/24
       gateway: 10.10.10.1
       vlan: