Merge "Fix Neutron enabled check"

This commit is contained in:
Jenkins 2014-02-28 07:33:34 +00:00 committed by Gerrit Code Review
commit f07a209ce0
3 changed files with 84 additions and 83 deletions

View File

@ -27,12 +27,12 @@ TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
# Import common functions # Import common functions
source $TOP_DIR/functions source $TOP_DIR/functions
# Import project functions
source $TOP_DIR/lib/neutron
# Import configuration # Import configuration
source $TOP_DIR/openrc source $TOP_DIR/openrc
# Import project functions
source $TOP_DIR/lib/neutron
# Import exercise configuration # Import exercise configuration
source $TOP_DIR/exerciserc source $TOP_DIR/exerciserc

View File

@ -27,12 +27,13 @@ TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
# Import common functions # Import common functions
source $TOP_DIR/functions source $TOP_DIR/functions
# Import project functions
source $TOP_DIR/lib/cinder
# Import configuration # Import configuration
source $TOP_DIR/openrc source $TOP_DIR/openrc
# Import project functions
source $TOP_DIR/lib/cinder
source $TOP_DIR/lib/neutron
# Import exercise configuration # Import exercise configuration
source $TOP_DIR/exerciserc source $TOP_DIR/exerciserc

View File

@ -59,10 +59,6 @@
# LinuxBridge plugin, please see the top level README file under the # LinuxBridge plugin, please see the top level README file under the
# Neutron section. # Neutron section.
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set +o xtrace
# Neutron Network Configuration # Neutron Network Configuration
# ----------------------------- # -----------------------------
@ -127,7 +123,7 @@ Q_L3_ROUTER_PER_TENANT=${Q_L3_ROUTER_PER_TENANT:-False}
# See _configure_neutron_common() for details about setting it up # See _configure_neutron_common() for details about setting it up
declare -a Q_PLUGIN_EXTRA_CONF_FILES declare -a Q_PLUGIN_EXTRA_CONF_FILES
if is_service_enabled neutron; then
Q_RR_CONF_FILE=$NEUTRON_CONF_DIR/rootwrap.conf Q_RR_CONF_FILE=$NEUTRON_CONF_DIR/rootwrap.conf
if [[ "$Q_USE_ROOTWRAP" == "False" ]]; then if [[ "$Q_USE_ROOTWRAP" == "False" ]]; then
Q_RR_COMMAND="sudo" Q_RR_COMMAND="sudo"
@ -201,7 +197,6 @@ if is_service_enabled neutron; then
# #
# Example: ``OVS_ENABLE_TUNNELING=True`` # Example: ``OVS_ENABLE_TUNNELING=True``
OVS_ENABLE_TUNNELING=${OVS_ENABLE_TUNNELING:-$ENABLE_TENANT_TUNNELS} OVS_ENABLE_TUNNELING=${OVS_ENABLE_TUNNELING:-$ENABLE_TENANT_TUNNELS}
fi
# Neutron plugin specific functions # Neutron plugin specific functions
# --------------------------------- # ---------------------------------
@ -241,6 +236,11 @@ fi
TEMPEST_SERVICES+=,neutron TEMPEST_SERVICES+=,neutron
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set +o xtrace
# Functions # Functions
# --------- # ---------