enabling heat cluster for experiment. 93/22793/3
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 7 Oct 2016 13:28:53 +0000 (08:28 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 7 Oct 2016 13:44:08 +0000 (08:44 -0500)
Change-Id: Id8192abb141596a2b6b5144447985f02d74b513f
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
15 files changed:
ci/config_tpl/bundle_tpl/ceph.yaml
ci/config_tpl/bundle_tpl/cinder.yaml
ci/config_tpl/bundle_tpl/glance.yaml
ci/config_tpl/bundle_tpl/haclusters.yaml
ci/config_tpl/bundle_tpl/harelations.yaml
ci/config_tpl/bundle_tpl/heat.yaml
ci/config_tpl/bundle_tpl/keystone.yaml
ci/config_tpl/bundle_tpl/mysql.yaml
ci/config_tpl/bundle_tpl/neutron-api.yaml
ci/config_tpl/bundle_tpl/nova-cloud-controller.yaml
ci/config_tpl/bundle_tpl/nova-compute.yaml
ci/config_tpl/bundle_tpl/openstack-dashboard.yaml
ci/config_tpl/bundle_tpl/phase2-overrides.yaml
ci/config_tpl/bundle_tpl/rabbitmq.yaml
ci/config_tpl/bundle_tpl/subordinate.yaml

index faddbc3..53fa5df 100644 (file)
@@ -6,6 +6,9 @@
         monitor-count: {{ unit_ceph_qty() }}
         fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if opnfv.spaces_dict.storage is defined %}
         #ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
 {% endif %}
@@ -35,6 +38,9 @@
       options:
         osd-devices: {{ opnfv.storage_dict.ceph.disk }}
         osd-reformat: 'yes'
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
       to:
 {% if os.hyperconverged %}
 {% for unit_id in range(0, opnfv.units) %}
@@ -58,6 +64,9 @@
         region: {{ os.region }}
         use-embedded-webserver: true
         operator-roles: "Member,admin"
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if opnfv.storage_dict.ceph is defined %}
         ceph-osd-replication-count: {{ unit_ceph_qty() }}
 {% endif %}
index bf3fb04..dee6be0 100644 (file)
@@ -8,6 +8,14 @@
       options:
         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         region: {{ os.region }}
+        block-device: None
+        glance-api-version: 2
+{% if os.beta.public_api %}
+        use-internal-endpoints: true
+{% endif %}
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if os.api.worker_multiplier %}
         worker-multiplier: {{ os.api.worker_multiplier }}
 {% endif %}
@@ -20,8 +28,6 @@
 {% if os.beta.public_api %}
         os-public-hostname: api.{{ opnfv.domain }}
 {% endif %}
-        block-device: None
-        glance-api-version: 2
       to:
 {% if opnfv.storage_dict.scaleio is defined %}
         - "nodes=0"
index 6c88446..7ae7fcc 100644 (file)
@@ -4,6 +4,12 @@
       options:
         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         region: {{ os.region }}
+{% if os.beta.public_api %}
+        use-internal-endpoints: true
+{% endif %}
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if opnfv.storage_dict.ceph is defined %}
         ceph-osd-replication-count: {{ unit_ceph_qty() }}
 {% endif %}
index fc42d38..59493d5 100644 (file)
@@ -4,50 +4,80 @@
       options:
         corosync_transport: unicast
         cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
     hacluster-cinder:
       charm: "local:{{ ubuntu.release }}/hacluster"
       options:
         corosync_transport: unicast
         cluster_count: 3
-#    hacluster-heat:
-#      charm: "local:{{ ubuntu.release }}/hacluster"
-#      options:
-#        corosync_transport: unicast
-#        cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
+    hacluster-heat:
+      charm: "local:{{ ubuntu.release }}/hacluster"
+      options:
+        corosync_transport: unicast
+        cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
     hacluster-horizon:
       charm: "local:{{ ubuntu.release }}/hacluster"
       options:
         corosync_transport: unicast
         cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
     hacluster-nova:
       charm: "local:{{ ubuntu.release }}/hacluster"
       options:
         corosync_transport: unicast
         cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
     hacluster-neutron:
       charm: "local:{{ ubuntu.release }}/hacluster"
       options:
         corosync_transport: unicast
         cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
     hacluster-glance:
       charm: "local:{{ ubuntu.release }}/hacluster"
       options:
         corosync_transport: unicast
         cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
     hacluster-ceilometer:
       charm: "local:{{ ubuntu.release }}/hacluster"
       options:
         corosync_transport: unicast
         cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
     hacluster-mysql:
       charm: "local:{{ ubuntu.release }}/hacluster"
       options:
         corosync_transport: unicast
         cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if os.beta.hacluster_ceph_radosgw %}
     hacluster-ceph-radosgw:
       charm: "local:{{ ubuntu.release }}/hacluster"
       options:
         corosync_transport: unicast
         cluster_count: 3
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% endif %}
index d4c4c06..e7bac9a 100644 (file)
@@ -1,7 +1,7 @@
 {% if os.ha.mode == 'ha' %}
     - [ 'mysql:ha', 'hacluster-mysql:ha' ]
     - [ 'cinder:ha', 'hacluster-cinder:ha' ]
-#    - [ 'heat:ha', 'hacluster-heat:ha' ]
+    - [ 'heat:ha', 'hacluster-heat:ha' ]
     - [ 'glance:ha', 'hacluster-glance:ha' ]
     - [ 'keystone:ha', 'hacluster-keystone:ha' ]
     - [ 'neutron-api:ha', 'hacluster-neutron:ha' ]
index 58d039d..929981e 100644 (file)
@@ -1,20 +1,23 @@
     heat:
       charm: "local:{{ ubuntu.release }}/heat"
-#      num_units: {{ unit_qty() }}
+      num_units: {{ unit_qty() }}
       options:
         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         region: {{ os.region }}
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if os.api.worker_multiplier %}
         worker-multiplier: {{ os.api.worker_multiplier }}
 {% endif %}
 {% if os.ha.mode == 'ha' %}
-#        vip: {{ opnfv.vip.heat }}
+        vip: {{ opnfv.vip.heat }}
 {% endif %}
 {% if os.beta.public_api %}
 #        os-public-hostname: api.{{ opnfv.domain }}
 {% endif %}
       to:
 {% for unit_id in to_select() %}
-        - "lxc:nodes=0"
+        - "lxc:nodes={{ unit_id }}"
 {% endfor %}
 {# Empty block to avoid bad block trim #}
index d8c778c..22d422c 100644 (file)
@@ -4,6 +4,11 @@
       options:
         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         region: {{ os.region }}
+        admin-role: {{ os.admin.role }}
+        keystone-admin-role: {{ os.admin.role }}
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if os.api.worker_multiplier %}
         worker-multiplier: {{ os.api.worker_multiplier }}
 {% endif %}
index afa4519..ab2c493 100644 (file)
@@ -10,6 +10,9 @@
         max-connections: 20000
         root-password: {{ get_password('mysql_root') }}
         sst-password: {{ get_password('mysql_sst') }}
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.mysql }}
 {% endif %}
index 0ae0a97..f7523e7 100644 (file)
@@ -5,6 +5,12 @@
         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         region: {{ os.region }}
         neutron-security-groups: true
+{% if os.beta.public_api %}
+        use-internal-endpoints: true
+{% endif %}
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if os.api.worker_multiplier %}
         worker-multiplier: {{ os.api.worker_multiplier }}
 {% endif %}
index 38aa7d3..c3f809b 100644 (file)
@@ -7,6 +7,12 @@
         #console-access-protocol: novnc
         neutron-external-network: ext-net
         service-guard: true
+{% if os.beta.public_api %}
+        use-internal-endpoints: true
+{% endif %}
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if os.api.worker_multiplier %}
         worker-multiplier: {{ os.api.worker_multiplier }}
 {% endif %}
index 456ac41..d331332 100644 (file)
         enable-live-migration: true
         enable-resize: true
         migration-auth-type: ssh
+{% if os.beta.public_api %}
+        use-internal-endpoints: true
+{% endif %}
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if opnfv.storage_dict.ceph is defined %}
         ceph-osd-replication-count: {{ unit_ceph_qty() }}
 {% endif %}
index db83d5b..43d8ef2 100644 (file)
@@ -5,6 +5,9 @@
         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
         secret: admin
         webroot: /
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.dashboard }}
 {% endif %}
index 12b8905..a8dbd40 100644 (file)
@@ -2,7 +2,7 @@
     #ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
 {% endif %}
 {% if os.network.ipv6 %}
-    prefer-ipv6: {{ os.network.ipv6 }}
+    #prefer-ipv6: {{ os.network.ipv6 }}
 {% endif %}
 {% if os.ha.mode == 'ha' %}
 {% if os.api.haproxy_timeout %}
@@ -34,8 +34,8 @@
     #ceph-osd-replication-count: {{ unit_ceph_qty() }}
 {% endif %}
 {% endif %}
-    admin-role: {{ os.admin.role }}
-    keystone-admin-role: {{ os.admin.role }}
+    #admin-role: {{ os.admin.role }}
+    #keystone-admin-role: {{ os.admin.role }}
 {% if os.beta.public_api %}
-    use-internal-endpoints: true
+    #use-internal-endpoints: true
 {% endif %}
index 17d764d..f7c27c1 100644 (file)
@@ -5,6 +5,9 @@
 {% if opnfv.storage_dict.ceph is defined %}
         ceph-osd-replication-count: {{ unit_ceph_qty() }}
 {% endif %}
+{% if os.network.ipv6 %}
+        prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.rabbitmq }}
         min-cluster-size: {{ unit_qty() }}
index 3f043dc..4107d80 100644 (file)
@@ -2,6 +2,9 @@
       charm: local:{{ ubuntu.release }}/ceilometer-agent
       options:
         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
+{% if os.beta.public_api %}
+        use-internal-endpoints: true
+{% endif %}
 {% if opnfv.storage_dict.ceph is defined %}
     cinder-ceph:
       charm: local:{{ ubuntu.release }}/cinder-ceph