Merge "Use openstack cli for cinder type creation"
This commit is contained in:
commit
32a3e322b4
@ -482,13 +482,10 @@ function stop_cinder {
|
|||||||
function create_volume_types {
|
function create_volume_types {
|
||||||
# Create volume types
|
# Create volume types
|
||||||
if is_service_enabled c-api && [[ -n "$CINDER_ENABLED_BACKENDS" ]]; then
|
if is_service_enabled c-api && [[ -n "$CINDER_ENABLED_BACKENDS" ]]; then
|
||||||
local be be_name be_type
|
local be be_name
|
||||||
for be in ${CINDER_ENABLED_BACKENDS//,/ }; do
|
for be in ${CINDER_ENABLED_BACKENDS//,/ }; do
|
||||||
be_type=${be%%:*}
|
|
||||||
be_name=${be##*:}
|
be_name=${be##*:}
|
||||||
# openstack volume type create --property volume_backend_name="${be_type}" ${be_name}
|
openstack volume type create --property volume_backend_name="${be_name}" ${be_name}
|
||||||
cinder type-create ${be_name} && \
|
|
||||||
cinder type-key ${be_name} set volume_backend_name="${be_name}"
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user