From 3240e47c77172eef852a187ce3900112f89e1785 Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Sun, 3 Sep 2017 17:25:18 -0500 Subject: modified to include rados gateway with vip. Change-Id: I5828c3b37e71da04515867f7e7d2b5bd10e9f9b1 Signed-off-by: Narinder Gupta --- ci/config_tpl/juju2/bundle_tpl/ceph.yaml | 7 +++++-- ci/config_tpl/juju2/bundle_tpl/haclusters.yaml | 12 ++++++------ ci/config_tpl/juju2/bundle_tpl/harelations.yaml | 4 +--- ci/config_tpl/juju2/bundle_tpl/heat.yaml | 8 +++++--- ci/config_tpl/juju2/bundle_tpl/mysql.yaml | 2 +- 5 files changed, 18 insertions(+), 15 deletions(-) (limited to 'ci/config_tpl/juju2/bundle_tpl') diff --git a/ci/config_tpl/juju2/bundle_tpl/ceph.yaml b/ci/config_tpl/juju2/bundle_tpl/ceph.yaml index 7fa9a8a0..0568b38a 100644 --- a/ci/config_tpl/juju2/bundle_tpl/ceph.yaml +++ b/ci/config_tpl/juju2/bundle_tpl/ceph.yaml @@ -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: @@ -98,9 +98,12 @@ {% 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 %} diff --git a/ci/config_tpl/juju2/bundle_tpl/haclusters.yaml b/ci/config_tpl/juju2/bundle_tpl/haclusters.yaml index 3b5f1844..091fa7e0 100644 --- a/ci/config_tpl/juju2/bundle_tpl/haclusters.yaml +++ b/ci/config_tpl/juju2/bundle_tpl/haclusters.yaml @@ -16,13 +16,13 @@ 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: diff --git a/ci/config_tpl/juju2/bundle_tpl/harelations.yaml b/ci/config_tpl/juju2/bundle_tpl/harelations.yaml index 212516c5..8a4a2474 100644 --- a/ci/config_tpl/juju2/bundle_tpl/harelations.yaml +++ b/ci/config_tpl/juju2/bundle_tpl/harelations.yaml @@ -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 %} diff --git a/ci/config_tpl/juju2/bundle_tpl/heat.yaml b/ci/config_tpl/juju2/bundle_tpl/heat.yaml index 175283ce..6e26ac7f 100644 --- a/ci/config_tpl/juju2/bundle_tpl/heat.yaml +++ b/ci/config_tpl/juju2/bundle_tpl/heat.yaml @@ -1,6 +1,6 @@ heat: charm: "./{{ ubuntu.release }}/heat" - num_units: 1 + num_units: {{ unit_qty() }} {% if os.service.bindings %} bindings: "": *oam-space @@ -17,8 +17,10 @@ {% 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 #} diff --git a/ci/config_tpl/juju2/bundle_tpl/mysql.yaml b/ci/config_tpl/juju2/bundle_tpl/mysql.yaml index 87f6346a..f7ecc708 100644 --- a/ci/config_tpl/juju2/bundle_tpl/mysql.yaml +++ b/ci/config_tpl/juju2/bundle_tpl/mysql.yaml @@ -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 -- cgit 1.2.3-korg