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
This commit is contained in:
parent
735f4d340f
commit
57f8b52326
@ -470,11 +470,9 @@ function create_volume_types {
|
||||
for be in ${CINDER_ENABLED_BACKENDS//,/ }; do
|
||||
BE_TYPE=${be%%:*}
|
||||
BE_NAME=${be##*:}
|
||||
if type configure_cinder_backend_${BE_TYPE} >/dev/null 2>&1; then
|
||||
# openstack volume type create --property volume_backend_name="${BE_TYPE}" ${BE_NAME}
|
||||
cinder type-create ${BE_NAME} && \
|
||||
cinder type-key ${BE_NAME} set volume_backend_name="${BE_NAME}"
|
||||
fi
|
||||
# openstack volume type create --property volume_backend_name="${BE_TYPE}" ${BE_NAME}
|
||||
cinder type-create ${BE_NAME} && \
|
||||
cinder type-key ${BE_NAME} set volume_backend_name="${BE_NAME}"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user