From 7e5fb63b71364637eaa81a0f978af76fe3df2c97 Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Thu, 16 Jul 2015 10:40:43 +1000 Subject: [PATCH] Always use volume v1 API for type create. OpenStackClient doesn't currently support volume type create on the V2 API. Make sure that all requests use the V1 api until this has been fixed in OpenStackClient. Change-Id: I2fa133d30753e188d383d3de78c0022a3625cb34 Closes-Bug: #1475062 --- lib/cinder | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cinder b/lib/cinder index a9a9f0d298..e5ed2db1a3 100644 --- a/lib/cinder +++ b/lib/cinder @@ -485,7 +485,9 @@ function create_volume_types { local be be_name for be in ${CINDER_ENABLED_BACKENDS//,/ }; do be_name=${be##*:} - openstack volume type create --property volume_backend_name="${be_name}" ${be_name} + # FIXME(jamielennox): Remove --os-volume-api-version pinning when + # osc supports volume type create on v2 api. bug #1475060 + openstack volume type create --os-volume-api-version 1 --property volume_backend_name="${be_name}" ${be_name} done fi }