Browse code

Merge "Cleanup nova v2.1 API testing options"

Jenkins authored on 2015/10/01 16:14:41
Showing 1 changed files
... ...
@@ -56,13 +56,6 @@ NOVA_CELLS_DB=${NOVA_CELLS_DB:-nova_cell}
56 56
 NOVA_API_DB=${NOVA_API_DB:-nova_api}
57 57
 
58 58
 NOVA_API_PASTE_INI=${NOVA_API_PASTE_INI:-$NOVA_CONF_DIR/api-paste.ini}
59
-# NOVA_API_VERSION valid options
60
-# - default - setup API end points as nova does out of the box
61
-# - v21default - make v21 the default on /v2
62
-#
63
-# NOTE(sdague): this is for transitional testing of the Nova v21 API.
64
-# Expect to remove in L or M.
65
-NOVA_API_VERSION=${NOVA_API_VERSION-default}
66 59
 
67 60
 # NOVA_V2_LEGACY defines whether we force the Nova v2.0 enpoint onto
68 61
 # the Nova v2.0 legacy code base. Remove this option once the Nova
... ...
@@ -314,11 +307,6 @@ function configure_nova {
314 314
         # Get the sample configuration file in place
315 315
         cp $NOVA_DIR/etc/nova/api-paste.ini $NOVA_CONF_DIR
316 316
 
317
-        # For testing v21 is equivalent to v2
318
-        if [[ "$NOVA_API_VERSION" == "v21default" ]]; then
319
-            sed -i s/": openstack_compute_api_v2$"/": openstack_compute_api_v21"/ "$NOVA_API_PASTE_INI"
320
-        fi
321
-
322 317
         # For setting up an environment where v2.0 is running on the
323 318
         # v2.0 legacy code base.
324 319
         if [[ "$NOVA_V2_LEGACY" == "True" ]]; then