From e509b30e5e56bc541af5eb0fbaf431f64a593979 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Sun, 27 Jan 2019 09:00:38 +0200 Subject: [PATCH] Devstack: Fix failed of ml2 directory creation Create an empty ml2 config, becasue the neutron code might not exist yet Change-Id: Ifa4b38c6d652765b33b3b6c10c680f5eceabdf28 --- devstack/plugin.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 9b1ec4d300..2bb7e2cd61 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -134,14 +134,12 @@ if [[ "$1" == "stack" && ("$2" == "install" || "$2" == "post-config") ]]; then if is_service_enabled q-fwaas-v2; then # make sure ml2 config exists for FWaaS-v2 if [ ! -f "/etc/neutron/plugins/ml2/ml2_conf.ini" ]; then - if [ -f "$DEST/neutron/etc/neutron/plugins/ml2/ml2_conf.ini.sample" ]; then - if [[ ! -f "/etc/neutron" ]]; then - # Create /etc/neutron with the right ownership - sudo install -d -o $STACK_USER $NEUTRON_CONF_DIR - fi - mkdir -p /etc/neutron/plugins/ml2 - cp $DEST/neutron/etc/neutron/plugins/ml2/ml2_conf.ini.sample /etc/neutron/plugins/ml2/ml2_conf.ini + if [[ ! -f "/etc/neutron" ]]; then + # Create /etc/neutron with the right ownership + sudo install -d -o $STACK_USER $NEUTRON_CONF_DIR fi + mkdir -p /etc/neutron/plugins/ml2 + touch /etc/neutron/plugins/ml2/ml2_conf.ini fi fi fi