Browse code

Remove NOVA_V2_LEGACY option

There are two implementation code for similar API in Nova repository.
One is newer: v2.1 API, another is legacy: v2 API. v2.1 API has been
used as the default API since Liberty and legacy v2 API has been marked
as deprecated. We have used and tested v2.1 API so well and now is
nice time to remove legacy API code based on the consensus of the
design summit of Austin.
This patch removes NOVA_V2_LEGACY which set up legacy API code.

NOTE: The gate job which uses this NOVA_V2_LEGACY option has been
removed already since Iac81b7d569b76b99e9d86eaa5001ae7f9b78cdfe.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: I0e16b7ce608d7eeb3a35fd77e66531dfc8c142ef

Ken'ichi Ohmichi authored on 2016/05/01 23:22:34
Showing 1 changed files
... ...
@@ -59,11 +59,6 @@ NOVA_API_DB=${NOVA_API_DB:-nova_api}
59 59
 
60 60
 NOVA_API_PASTE_INI=${NOVA_API_PASTE_INI:-$NOVA_CONF_DIR/api-paste.ini}
61 61
 
62
-# NOVA_V2_LEGACY defines whether we force the Nova v2.0 enpoint onto
63
-# the Nova v2.0 legacy code base. Remove this option once the Nova
64
-# v2.0 legacy codebase is removed.
65
-NOVA_V2_LEGACY=$(trueorfalse False NOVA_V2_LEGACY)
66
-
67 62
 if is_suse; then
68 63
     NOVA_WSGI_DIR=${NOVA_WSGI_DIR:-/srv/www/htdocs/nova}
69 64
 else
... ...
@@ -311,13 +306,6 @@ function configure_nova {
311 311
     if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
312 312
         # Get the sample configuration file in place
313 313
         cp $NOVA_DIR/etc/nova/api-paste.ini $NOVA_CONF_DIR
314
-
315
-        # For setting up an environment where v2.0 is running on the
316
-        # v2.0 legacy code base.
317
-        if [[ "$NOVA_V2_LEGACY" == "True" ]]; then
318
-            sed -i s@"^/v2: openstack_compute_api_v21_legacy_v2_compatible$"@"/v2: openstack_compute_api_legacy_v2"@ \
319
-                "$NOVA_API_PASTE_INI"
320
-        fi
321 314
     fi
322 315
 
323 316
     if is_service_enabled n-cpu; then