Browse code

Allow cinder types to be created without be file

3rd party ci tests have not whitelisted errors:
"Not Whitelisted Volume type with name * could not be found."

These are creating noise. Instead of requiring a backend file
for each vendor, remove the if statement and just create the
necessary type for each defined back-end.

Change-Id: Ic88efa20eb53864e4f3d22d3306841797dcd118d

Ramy Asselin authored on 2014/08/16 08:17:21
Showing 1 changed files
... ...
@@ -470,11 +470,9 @@ function create_volume_types {
470 470
         for be in ${CINDER_ENABLED_BACKENDS//,/ }; do
471 471
             BE_TYPE=${be%%:*}
472 472
             BE_NAME=${be##*:}
473
-            if type configure_cinder_backend_${BE_TYPE} >/dev/null 2>&1; then
474
-                # openstack volume type create --property volume_backend_name="${BE_TYPE}" ${BE_NAME}
475
-                cinder type-create ${BE_NAME} && \
476
-                    cinder type-key ${BE_NAME} set volume_backend_name="${BE_NAME}"
477
-            fi
473
+            # openstack volume type create --property volume_backend_name="${BE_TYPE}" ${BE_NAME}
474
+            cinder type-create ${BE_NAME} && \
475
+                cinder type-key ${BE_NAME} set volume_backend_name="${BE_NAME}"
478 476
         done
479 477
     fi
480 478
 }