diff --git a/devstack/plugin.sh b/devstack/plugin.sh index d8b03b2cb..52d65de45 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -7,9 +7,9 @@ function neutron_lbaas_install { function neutron_agent_lbaas_install_agent_packages { if is_ubuntu; then - if [[ ${OFFLINE} == false ]]; then + if [[ ${OFFLINE} == False ]]; then BACKPORT="deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse" - BACKPORT_EXISTS=$(grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep "${BACKPORT}") + BACKPORT_EXISTS=$(grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep "${BACKPORT}") || true if [[ -z "${BACKPORT_EXISTS}" ]]; then sudo add-apt-repository "${BACKPORT}" -y fi @@ -128,6 +128,7 @@ if is_service_enabled $LBAAS_ANY; then if [[ "$1" == "stack" && "$2" == "install" ]]; then # Perform installation of service source echo_summary "Installing neutron-lbaas" + neutron_agent_lbaas_install_agent_packages neutron_lbaas_install elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then diff --git a/neutron_lbaas/tests/contrib/gate_hook.sh b/neutron_lbaas/tests/contrib/gate_hook.sh index e0b3e9727..2ff1cd412 100755 --- a/neutron_lbaas/tests/contrib/gate_hook.sh +++ b/neutron_lbaas/tests/contrib/gate_hook.sh @@ -54,12 +54,9 @@ if [ "$testenv" != "apiv1" ]; then fi if [ "$lbaasdriver" = "namespace" ]; then - cat > $DEVSTACK_PATH/local.conf <