Adding the storage space support in case it is defined. 77/39277/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Mon, 14 Aug 2017 17:15:13 +0000 (12:15 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Mon, 14 Aug 2017 17:15:13 +0000 (12:15 -0500)
Change-Id: Ic394674dd026f834dcee0db566dff7c654a2dba3
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/03-maasdeploy.sh
ci/config_tpl/juju2/bundle_tpl/ceph.yaml

index 60ed085..f79ea5b 100755 (executable)
@@ -319,8 +319,8 @@ setupspacenetwork(){
             'admin')           JUJU_SPACE="internal-api";  DHCP='enabled' ;;
             'data')            JUJU_SPACE="tenant-data";   DHCP='' ;;
             'public')          JUJU_SPACE="public-api";    DHCP='' ;;
-            'storage')         JUJU_SPACE="tenant-stor";   DHCP='' ;;
-            'storagecluster')  JUJU_SPACE="storclus";      DHCP='' ;;
+            'storage')         JUJU_SPACE="storage-cluster";   DHCP='' ;;
+            'storageaccess')  JUJU_SPACE="storage-data";      DHCP='' ;;
             'floating')        JUJU_SPACE="tenant-public"; DHCP='' ;;
             *)                 JUJU_SPACE='default';       DHCP='OFF'; echo_info "      >>> Unknown SPACE" ;;
         esac
index 6b20d98..71a0264 100644 (file)
@@ -4,15 +4,11 @@
       num_units: {{ unit_ceph_qty() }}
 {% if os.service.bindings %}
       bindings:
-{% if opnfv.spaces_dict.public is defined %}
-        public: internal-api
-{% else %}
-        public: internal-api
-{% endif %}
+        "": internal-api
 {% if opnfv.spaces_dict.storage is defined %}
-        cluster: internal-api
+        public: storage-cluster
 {% else %}
-        cluster: internal-api
+        public: internal-api
 {% endif %}
 {% endif %}
       options:
 {% endif %}
 {% if os.service.bindings %}
       bindings:
-{% if opnfv.spaces_dict.public is defined %}
-        public: internal-api
-{% else %}
-        public: internal-api
-{% endif %}
+        "": internal-api
 {% if opnfv.spaces_dict.storage is defined %}
-        cluster: internal-api
+        public: storage-cluster
+        cluster: storage-cluster
 {% else %}
+        public: internal-api
         cluster: internal-api
 {% endif %}
 {% endif %}
       num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
 {% if os.service.bindings %}
       bindings:
+        "": internal-api
         internal: internal-api
         admin: internal-api
 {% if opnfv.spaces_dict.public is defined %}