Browse code

Merge "Remove configuration parameter EXTRA_OPTS"

Jenkins authored on 2014/07/28 06:45:41
Showing 2 changed files
... ...
@@ -480,18 +480,6 @@ function create_nova_conf {
480 480
         iniset $NOVA_CONF DEFAULT notification_driver "messaging"
481 481
     fi
482 482
 
483
-    # Provide some transition from ``EXTRA_FLAGS`` to ``EXTRA_OPTS``
484
-    if [[ -z "$EXTRA_OPTS" && -n "$EXTRA_FLAGS" ]]; then
485
-        EXTRA_OPTS=$EXTRA_FLAGS
486
-    fi
487
-
488
-    # Define extra nova conf flags by defining the array ``EXTRA_OPTS``.
489
-    # For Example: ``EXTRA_OPTS=(foo=true bar=2)``
490
-    for I in "${EXTRA_OPTS[@]}"; do
491
-        # Replace the first '=' with ' ' for iniset syntax
492
-        iniset $NOVA_CONF DEFAULT ${I/=/ }
493
-    done
494
-
495 483
     # All nova-compute workers need to know the vnc configuration options
496 484
     # These settings don't hurt anything if n-xvnc and n-novnc are disabled
497 485
     if is_service_enabled n-cpu; then
... ...
@@ -1392,24 +1392,6 @@ if [[ -n "$DEPRECATED_TEXT" ]]; then
1392 1392
     echo_summary "WARNING: $DEPRECATED_TEXT"
1393 1393
 fi
1394 1394
 
1395
-# TODO(dtroyer): Remove EXTRA_OPTS after stable/icehouse branch is cut
1396
-# Specific warning for deprecated configs
1397
-if [[ -n "$EXTRA_OPTS" ]]; then
1398
-    echo ""
1399
-    echo_summary "WARNING: EXTRA_OPTS is used"
1400
-    echo "You are using EXTRA_OPTS to pass configuration into nova.conf."
1401
-    echo "Please convert that configuration in localrc to a nova.conf section in local.conf:"
1402
-    echo "EXTRA_OPTS will be removed early in the Juno development cycle"
1403
-    echo "
1404
-[[post-config|\$NOVA_CONF]]
1405
-[DEFAULT]
1406
-"
1407
-    for I in "${EXTRA_OPTS[@]}"; do
1408
-        # Replace the first '=' with ' ' for iniset syntax
1409
-        echo ${I}
1410
-    done
1411
-fi
1412
-
1413 1395
 # TODO(dtroyer): Remove Q_AGENT_EXTRA_AGENT_OPTS after stable/juno branch is cut
1414 1396
 if [[ -n "$Q_AGENT_EXTRA_AGENT_OPTS" ]]; then
1415 1397
     echo ""