modified to accomodate the scaleio bundles and charms. 39/21239/2
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 16 Sep 2016 04:57:41 +0000 (23:57 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 16 Sep 2016 05:17:49 +0000 (00:17 -0500)
Change-Id: I1ec22684a67d02c8727cf620cc673aa70cfb0073
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/common/scaleio.tar [new file with mode: 0644]
ci/config_tpl/bundle_tpl/bundle.yaml
ci/config_tpl/bundle_tpl/cinder.yaml
ci/config_tpl/bundle_tpl/phase2-overrides.yaml
ci/config_tpl/bundle_tpl/relations.yaml
ci/config_tpl/bundle_tpl/scaleio.yaml [new file with mode: 0644]
ci/config_tpl/bundle_tpl/subordinate.yaml
ci/config_tpl/deployconfig.yaml
ci/genBundle.py
labconfig/intel/pod9/labconfig.yaml

diff --git a/ci/common/scaleio.tar b/ci/common/scaleio.tar
new file mode 100644 (file)
index 0000000..8cb8d46
Binary files /dev/null and b/ci/common/scaleio.tar differ
index a5aa557..507241a 100644 (file)
@@ -39,7 +39,11 @@ openstack-phase1:
 {% endif %}
 {% include 'mysql.yaml' %}
 {% include 'ceilometer.yaml' %}
+{% if opnfv.storage_dict.scaleio is defined %}
+{% include 'scaleio.yaml' %}
+{% else %}
 {% include 'ceph.yaml' %}
+{% endif %}
 {% include 'cinder.yaml' %}
 {% include 'glance.yaml' %}
 {% include 'opnfv-promise.yaml' %}
index 4c41747..1d70372 100644 (file)
@@ -1,6 +1,10 @@
     cinder:
       charm: "local:{{ ubuntu.release }}/cinder"
+{% if opnfv.storage_dict.scaleio is defined %}
+      num_units: 1
+{% else %}
       num_units: {{ unit_qty() }}
+{% endif %}
       options:
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.cinder }}
         block-device: None
         glance-api-version: 2
       to:
+{% if opnfv.storage_dict.scaleio is defined %}
+        - "nodes=0"
+{% else %}
 {% for unit_id in to_select() %}
         - "lxc:nodes={{ unit_id }}"
 {% endfor %}
+{% endif %}
index ebefeab..d823528 100644 (file)
@@ -27,7 +27,9 @@
 {% endif %}
     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() }}
+{% endif %}
 {% endif %}
     admin-role: {{ os.admin.role }}
     keystone-admin-role: {{ os.admin.role }}
index 4cf2438..7b925f6 100644 (file)
     - [ 'cinder:amqp', 'rabbitmq-server:amqp' ]
     - [ 'cinder:identity-service', 'keystone:identity-service' ]
     - [ 'cinder:cinder-volume-service', 'nova-cloud-controller:cinder-volume-service' ]
+    - [ 'cinder:shared-db', 'mysql:shared-db' ]
+{% if opnfv.storage_dict.scaleio is defined %}
+    - [ 'cinder:storage-backend', 'scaleio-openstack:storage-backend' ]
+    - [ 'scaleio-mdm:scaleio-sds', 'scaleio-sds:scaleio-sds' ]
+#    - [ 'scaleio-mdm:scaleio-sds', 'scaleio-sds-pd2:scaleio-sds' ]
+    - [ 'scaleio-mdm:scaleio-mdm', 'scaleio-sdc:scaleio-mdm' ]
+    - [ 'scaleio-mdm:scaleio-mdm', 'scaleio-gw:scaleio-mdm' ]
+    - [ 'scaleio-openstack:scaleio-gw', 'scaleio-gw:scaleio-gw' ]
+    - [ 'nova-compute:ephemeral-backend', 'scaleio-openstack:ephemeral-backend' ]
+{% else %}
     - [ 'cinder-ceph:storage-backend', 'cinder:storage-backend' ]
     - [ 'ceph:client', 'nova-compute:ceph' ]
-    - [ 'cinder:shared-db', 'mysql:shared-db' ]
     - [ 'ceph:client', 'cinder-ceph:ceph' ]
     - [ 'ceph:client', 'glance:ceph' ]
     - [ 'ceph-osd:mon', 'ceph:osd' ]
     - [ 'ceph-radosgw:mon', 'ceph:radosgw' ]
     - [ 'ceph-radosgw:identity-service', 'keystone:identity-service' ]
+{% endif %}
     - [ 'ceilometer:amqp', 'rabbitmq-server:amqp' ]
     - [ 'ceilometer-agent:ceilometer-service', 'ceilometer:ceilometer-service' ]
     - [ 'ceilometer:identity-service', 'keystone:identity-service' ]
diff --git a/ci/config_tpl/bundle_tpl/scaleio.yaml b/ci/config_tpl/bundle_tpl/scaleio.yaml
new file mode 100644 (file)
index 0000000..a970dd0
--- /dev/null
@@ -0,0 +1,54 @@
+{% if opnfv.storage_dict.scaleio is defined %}
+    scaleio-mdm:
+      charm: "local:{{ ubuntu.release }}/scaleio-mdm"
+      num_units: {{ unit_scaleio_qty() }}
+      options:
+        cluster-mode: 3
+      to:
+{% if os.hyperconverged %}
+{% for unit_id in range(0, 3) %}
+        - "nodes={{ unit_id }}"
+{% endfor %}
+{% else %}
+        - "nodes=0"
+        - "nodes-compute=0"
+        - "nodes-compute=1"
+{% endif %}
+    scaleio-sds:
+      charm: "local:{{ ubuntu.release }}/scaleio-sds"
+      num_units: {{ opnfv.units }}
+      options:
+        protection-domain: 'pd1'
+        device-paths: {{ opnfv.storage_dict.scaleio.disk }}
+      to:
+{% if os.hyperconverged %}
+{% for unit_id in range(0, opnfv.units) %}
+        - "nodes={{ unit_id }}"
+{% endfor %}
+{% else %}
+{% for unit_id in range(0, opnfv.units) %}
+        - "{{ unit_id }}"
+{% endfor %}
+{% endif %}
+    scaleio-sdc:
+      charm: "local:{{ ubuntu.release }}/scaleio-sdc"
+      num_units: {{ opnfv.units }}
+      to:
+{% if os.hyperconverged %}
+{% for unit_id in range(0, opnfv.units) %}
+        - "nodes={{ unit_id }}"
+{% endfor %}
+{% else %}
+{% for unit_id in range(0, opnfv.units) %}
+        - "{{ unit_id }}"
+{% endfor %}
+{% endif %}
+    scaleio-gw:
+      charm: "local:{{ ubuntu.release }}/scaleio-gw"
+      to:
+        - "nodes=0"
+    scaleio-gui:
+      charm: "local:{{ ubuntu.release }}/scaleio-gui"
+      to:
+        - "nodes=0"
+{% endif %}
index fa3d374..48ad33b 100644 (file)
@@ -49,3 +49,9 @@
     lxd:
       charm: local:{{ ubuntu.release }}/lxd
 {% endif %}
+{% if opnfv.storage_dict.scaleio is defined %}
+    scaleio-openstack:
+      charm: local:{{ ubuntu.release }}/scaleio-openstack
+      options:
+        protection-domains: 'pd1'
+{% endif %}
index c190d1d..5b88092 100644 (file)
@@ -3,7 +3,9 @@ opnfv:
   admNetgway: {{ opnfv.spaces_dict.admin.gateway }}
   admNetwork: {{ net_prefix }}2
   admin_password: openstack
-  ceph-disk: {{ opnfv.storage_dict.ceph.disk }}
+{% if opnfv.storage_dict.ceph is defined %}
+   ceph-disk: {{ opnfv.storage_dict.ceph.disk }}
+{% endif %}
 {% if opnfv.spaces_dict.data is defined %}
   dataNetwork: {{ opnfv.spaces_dict.data.cidr }}
 {% endif %}
index 499cd63..55f3f6e 100644 (file)
@@ -81,6 +81,9 @@ def unit_ceph_qty():
         else:
             return 2
 
+def unit_scaleio_qty():
+    """Return size of the scaleio cluster"""
+    return 3
 
 def to_select(qty=False):
     """Return a random list of machines numbers to deploy"""
@@ -206,6 +209,7 @@ template = env.get_template('bundle.yaml')
 env.globals.update(get_password=get_password)
 env.globals.update(unit_qty=unit_qty)
 env.globals.update(unit_ceph_qty=unit_ceph_qty)
+env.globals.update(unit_scaleio_qty=unit_scaleio_qty)
 env.globals.update(to_select=to_select)
 
 # Render the template
index 6217543..8f4afb1 100644 (file)
@@ -123,7 +123,7 @@ opnfv:
     sdncontroller:
     - type: nosdn
     storage:
-    - type: ceph
+    - type: scaleio
       disk: /dev/sdb
     feature: odl_l2
     spaces: