Skip to content

Commit 7e5fb63

Browse files
author
Jamie Lennox
committed
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
1 parent 32a3e32 commit 7e5fb63

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/cinder

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,9 @@ function create_volume_types {
485485
local be be_name
486486
for be in ${CINDER_ENABLED_BACKENDS//,/ }; do
487487
be_name=${be##*:}
488-
openstack volume type create --property volume_backend_name="${be_name}" ${be_name}
488+
# FIXME(jamielennox): Remove --os-volume-api-version pinning when
489+
# osc supports volume type create on v2 api. bug #1475060
490+
openstack volume type create --os-volume-api-version 1 --property volume_backend_name="${be_name}" ${be_name}
489491
done
490492
fi
491493
}

0 commit comments

Comments
 (0)