From 494f7cdf35d025f73b4cce9a3bde7b433183b1d8 Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Fri, 29 May 2015 08:33:03 +0000 Subject: [PATCH] Use openstack cli for cinder type creation This command was commented out so assumedly there used to be a bug. Switch to OpenStackClient as the cinder CLI doesn't handle v3 auth correctly. Implements: bp keystonev3 Change-Id: I1acdc04cf04b7056701bdded31ef2a015de5bce3 --- lib/cinder | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/cinder b/lib/cinder index e51cd8ba1b..eb32b719c8 100644 --- a/lib/cinder +++ b/lib/cinder @@ -480,13 +480,10 @@ function stop_cinder { function create_volume_types { # Create volume types 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 - be_type=${be%%:*} be_name=${be##*:} - # 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}" + openstack volume type create --property volume_backend_name="${be_name}" ${be_name} done fi }