modified to setup contraints on single bindin space charms. 65/39465/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Thu, 17 Aug 2017 03:25:33 +0000 (22:25 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Thu, 17 Aug 2017 03:25:33 +0000 (22:25 -0500)
Change-Id: Ied886a0865a637ac206a831c7ce98933c600e5e7
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/config_tpl/juju2/bundle_tpl/ceilometer.yaml
ci/config_tpl/juju2/bundle_tpl/ceph.yaml
ci/config_tpl/juju2/bundle_tpl/cinder.yaml
ci/config_tpl/juju2/bundle_tpl/glance.yaml
ci/config_tpl/juju2/bundle_tpl/openstack-dashboard.yaml
ci/config_tpl/juju2/bundle_tpl/spaces.yaml

index b34bec2..de6a121 100644 (file)
@@ -1,6 +1,7 @@
     mongodb:
       charm: ./{{ ubuntu.release }}/mongodb
       num_units: 1
+      constraints: *oam-space-constr
 {% if os.service.bindings %}
       bindings:
         "": *internal-space
index 0e1133a..cdbe486 100644 (file)
@@ -83,6 +83,7 @@
       charm: "./{{ ubuntu.release }}/ceph-radosgw"
       num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
 {% if os.service.bindings %}
+      constraints: *ceph-access-constr
       bindings:
         "": *oam-space
         public: *public-space
index 027fc04..0313f07 100644 (file)
@@ -6,6 +6,7 @@
       num_units: {{ unit_qty() }}
 {% endif %}
 {% if os.service.bindings %}
+      constraints: *ceph-access-constr
       bindings:
         "": *oam-space
         public: *public-space
index 198cefb..fe991f0 100644 (file)
@@ -2,6 +2,7 @@
       charm: "./{{ ubuntu.release }}/glance"
       num_units: {{ unit_qty() }}
 {% if os.service.bindings %}
+     constraints: *ceph-access-constr
       bindings:
         "": *oam-space
         public: *public-space
index 5e240e2..9132096 100644 (file)
@@ -2,6 +2,7 @@
       charm: "./{{ ubuntu.release }}/openstack-dashboard"
       num_units: {{ unit_qty() }}
 {% if os.service.bindings %}
+      constraints: *oam-space-constr
       bindings:
         "": *public-space
         shared-db: *internal-space
index 73096ef..acf2204 100644 (file)
 
     # CEPH configuration
     # CEPH access network
-    ceph-public-space:   &ceph-public-space   internal-api
+{% if opnfv.spaces_dict.storageaccess is defined %}
+    ceph-public-space:   &ceph-public-space  storage-access-space
+    ceph-access-constr:  &ceph-access-constr  spaces=storage-access-space
+{% else %}
+    ceph-public-space:   &ceph-public-space  internal-api
+    ceph-access-constr:  &ceph-access-constr  spaces=internal-api
+{% endif %}
 
     # CEPH replication network
 {% if opnfv.spaces_dict.storage is defined %}
@@ -54,8 +60,7 @@
 {% endif %}
 
     # Workaround for 'only one default binding supported'
-    oam-space-constr:    &oam-space-constr    spaces=oam-space
-    ceph-access-constr:  &ceph-access-constr  spaces=ceph-access-space
+    oam-space-constr:    &oam-space-constr    spaces=internal-api
 
     # CEPH OSD and journal devices; temporary workaround for #1674148
 {% if os.lxd %}