Browse code

Remove Cinder API version cap

Cinder API was pinned to v1 due to openstackclient missing some of the
v2 commands, as reported in osc bug 1475060. That bug has since been
marked invalid, but its intent was covered by the blueprint:

https://blueprints.launchpad.net/python-openstackclient/+spec/volume-v2

This removes the pinning to the v1 API now that osc supports v2. Also
removing the enablement of v1 as it was deprecated three releases ago
and we would like to get more coverage on v2.

Change-Id: Ia4d97734738d026c8721791669110778ff5eb6e5

Sean McGinnis authored on 2015/12/12 04:51:24
Showing 1 changed files
... ...
@@ -270,10 +270,6 @@ function configure_cinder {
270 270
     iniset $CINDER_CONF DEFAULT state_path $CINDER_STATE_PATH
271 271
     iniset $CINDER_CONF oslo_concurrency lock_path $CINDER_STATE_PATH
272 272
     iniset $CINDER_CONF DEFAULT periodic_interval $CINDER_PERIODIC_INTERVAL
273
-    # NOTE(thingee): Cinder V1 API is deprecated and defaults to off as of
274
-    # Juno. Keep it enabled so we can continue testing while it's still
275
-    # supported.
276
-    iniset $CINDER_CONF DEFAULT enable_v1_api true
277 273
 
278 274
     iniset $CINDER_CONF DEFAULT os_region_name "$REGION_NAME"
279 275
 
... ...
@@ -550,9 +546,7 @@ function create_volume_types {
550 550
         local be be_name
551 551
         for be in ${CINDER_ENABLED_BACKENDS//,/ }; do
552 552
             be_name=${be##*:}
553
-            # FIXME(jamielennox): Remove --os-volume-api-version pinning when
554
-            # osc supports volume type create on v2 api. bug #1475060
555
-            openstack volume type create --os-volume-api-version 1 --property volume_backend_name="${be_name}" ${be_name}
553
+            openstack volume type create --property volume_backend_name="${be_name}" ${be_name}
556 554
         done
557 555
     fi
558 556
 }