modified to include rados gateway with vip. 45/40945/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Sun, 3 Sep 2017 22:25:18 +0000 (17:25 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Sun, 3 Sep 2017 22:25:18 +0000 (17:25 -0500)
Change-Id: I5828c3b37e71da04515867f7e7d2b5bd10e9f9b1
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/clean.sh
ci/config_tpl/juju2/bundle_tpl/ceph.yaml
ci/config_tpl/juju2/bundle_tpl/haclusters.yaml
ci/config_tpl/juju2/bundle_tpl/harelations.yaml
ci/config_tpl/juju2/bundle_tpl/heat.yaml
ci/config_tpl/juju2/bundle_tpl/mysql.yaml
ci/config_tpl/juju2/deployconfig.yaml
ci/default_deployment_config.yaml

index feecd70..5005b59 100755 (executable)
@@ -25,12 +25,12 @@ if [[ "$jujuver" > "2" ]]; then
     controllername=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml`
     cloudname=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml`
     juju destroy-controller $controllername --destroy-all-models -y || true
-    juju kill-controller $controllername --timeout 10s -y || true
+#    juju kill-controller $controllername --timeout 10s -y || true
     rm -rf precise
     rm -rf trusty
     rm -rf xenial
     rm -rf ~/joid_config/admin-openrc
-    sleep 30
+    sleep 10
     sudo sysctl -w vm.drop_caches=3
 elif [ -d $HOME/.juju/environments ]; then
     echo " " > status.txt
index 7fa9a8a..0568b38 100644 (file)
@@ -79,7 +79,7 @@
 {% endif %}
     ceph-radosgw:
       charm: "./{{ ubuntu.release }}/ceph-radosgw"
-      num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
+      num_units: {{ unit_qty() }}
 {% if os.service.bindings %}
       constraints: *ceph-access-constr
       bindings:
 {% endif %}
 {% if opnfv.storage_dict.ceph is defined %}
         ceph-osd-replication-count: {{ unit_ceph_qty() }}
+{% endif %}
+{% if os.ha.mode == 'ha' %}
+        vip: {{ opnfv.vip.radosgw }}
 {% endif %}
       to:
-{% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
+{% for unit_id in to_select(unit_qty()) %}
         - "lxd:nodes/{{ unit_id }}"
 {% endfor %}
 {% endif %}
index 3b5f184..091fa7e 100644 (file)
         prefer-ipv6: {{ os.network.ipv6 }}
 {% endif %}
 {% if os.network.controller != 'ocl' %}
-#    hacluster-heat:
-#      charm: "./{{ ubuntu.release }}/hacluster"
-#      options:
-#        corosync_transport: unicast
-#        cluster_count: 3
+    hacluster-heat:
+      charm: "./{{ ubuntu.release }}/hacluster"
+      options:
+        corosync_transport: unicast
+        cluster_count: 3
 {% if os.network.ipv6 %}
-#        prefer-ipv6: {{ os.network.ipv6 }}
+        prefer-ipv6: {{ os.network.ipv6 }}
 {% endif %}
 {% endif %}
     hacluster-horizon:
index 212516c..8a4a247 100644 (file)
@@ -1,6 +1,6 @@
 {% if os.ha.mode == 'ha' %}
 {% if os.network.controller != 'ocl' %}
-#    - [ 'heat:ha', 'hacluster-heat:ha' ]
+    - [ 'heat:ha', 'hacluster-heat:ha' ]
     - [ 'ceilometer:ha', 'hacluster-ceilometer:ha' ]
 {% endif %}
     - [ 'mysql:ha', 'hacluster-mysql:ha' ]
@@ -10,7 +10,5 @@
     - [ 'neutron-api:ha', 'hacluster-neutron:ha' ]
     - [ 'nova-cloud-controller:ha', 'hacluster-nova:ha' ]
     - [ 'openstack-dashboard:ha', 'hacluster-horizon:ha' ]
-{% if os.beta.hacluster_ceph_radosgw %}
     - [ 'ceph-radosgw:ha', 'hacluster-ceph-radosgw:ha' ]
 {% endif %}
-{% endif %}
index 175283c..6e26ac7 100644 (file)
@@ -1,6 +1,6 @@
     heat:
       charm: "./{{ ubuntu.release }}/heat"
-      num_units: 1
+      num_units: {{ unit_qty() }}
 {% if os.service.bindings %}
       bindings:
         "": *oam-space
 {% endif %}
         worker-multiplier: *worker-multiplier
 {% if os.ha.mode == 'ha' %}
-#        vip: {{ opnfv.vip.heat }}
+        vip: {{ opnfv.vip.heat }}
 {% endif %}
       to:
-        - "lxd:nodes/0"
+{% for unit_id in to_select() %}
+        - "lxd:nodes/{{ unit_id }}"
+{% endfor %}
 {# Empty block to avoid bad block trim #}
index 87f6346..f7ecc70 100644 (file)
@@ -9,7 +9,7 @@
 {% endif %}
       options:
         innodb-buffer-pool-size: 256M
-        max-connections: 2000
+        max-connections: 4000
         #use-https: "yes"
         #https-service-endpoints: "True"
         #performance-schema: true
index 9accba0..f94154c 100644 (file)
@@ -46,23 +46,25 @@ opnfv:
   units: {{ lab.racks[0].nodes|count }}
   vip:
 {% if opnfv.spaces_dict.public is defined %}
-    ceilometer: {{ netpublic_prefix }}24 {{ net_prefix }}24
-    cinder: {{ netpublic_prefix }}29 {{ net_prefix }}29
     dashboard: {{ netpublic_prefix }}21 {{ net_prefix }}21
     glance: {{ netpublic_prefix }}22 {{ net_prefix }}22
-    heat: {{ netpublic_prefix }}28 {{ net_prefix }}28
     keystone: {{ netpublic_prefix }}23 {{ net_prefix }}23
+    ceilometer: {{ netpublic_prefix }}24 {{ net_prefix }}24
     mysql: {{ net_prefix }}25
-    neutron: {{ netpublic_prefix }}27 {{ net_prefix }}27
     nova: {{ netpublic_prefix }}26 {{ net_prefix }}26
+    neutron: {{ netpublic_prefix }}27 {{ net_prefix }}27
+    heat: {{ netpublic_prefix }}28 {{ net_prefix }}28
+    cinder: {{ netpublic_prefix }}29 {{ net_prefix }}29
+    radosgw: {{ netpublic_prefix }}30 {{ net_prefix }}30
 {% else %}
-    ceilometer: {{ net_prefix }}24
-    cinder: {{ net_prefix }}29
     dashboard: {{ net_prefix }}21
     glance: {{ net_prefix }}22
-    heat: {{ net_prefix }}28
     keystone: {{ net_prefix }}23
+    ceilometer: {{ net_prefix }}24
     mysql: {{ net_prefix }}25
-    neutron: {{ net_prefix }}27
     nova: {{ net_prefix }}26
+    neutron: {{ net_prefix }}27
+    heat: {{ net_prefix }}28
+    cinder: {{ net_prefix }}29
+    radosgw: {{ net_prefix }}30
 {% endif %}
index 6d66ba7..0ea2a43 100644 (file)
@@ -27,7 +27,7 @@ os:
         ipv6: False
         l2_population: False
     beta:
-        hacluster_ceph_radosgw: False
+        hacluster_ceph_radosgw: True
         huge_pages: False
         cpu_pin: False
         cpu_pin_set: all