Browse Source

Fix devstack plugin clean-up

Currently calling clean.sh leads to NEUTRON_LBAAS_DASHBOARD_ENABLE_FILE
being deleted. The problem is that this variable contains path to a
file in neutron-lbaas-dashboard directory, not its copy in Horizon
directory. This patch fixes this by deleting proper files.

Change-Id: I9fcb96e4a0928a2b6a9da3e70dbb0e185dff7108
changes/78/446178/1
Elena Ezhova 5 years ago
parent
commit
0d25bbd63b
  1. 4
      devstack/plugin.sh
  2. 4
      devstack/settings

4
devstack/plugin.sh

@ -3,7 +3,7 @@ function neutron_lbaas_dashboard_install {
}
function neutron_lbaas_dashboard_configure {
cp $NEUTRON_LBAAS_DASHBOARD_ENABLE_FILE \
cp $NEUTRON_LBAAS_DASHBOARD_ENABLE_FILE_PATH \
$HORIZON_DIR/openstack_dashboard/local/enabled/
}
@ -31,5 +31,5 @@ if [[ "$1" == "clean" ]]; then
# Remember clean.sh first calls unstack.sh
# Remove lbaas-dashboard enabled file and pyc
rm -f ${NEUTRON_LBAAS_DASHBOARD_ENABLE_FILE}*
rm -f "$HORIZON_DIR"/openstack_dashboard/local/enabled/"$NEUTRON_LBAAS_DASHBOARD_ENABLE_FILE_NAME"*
fi

4
devstack/settings

@ -1,3 +1,5 @@
NEUTRON_LBAAS_DASHBOARD_DIR=$DEST/neutron-lbaas-dashboard
NEUTRON_LBAAS_DASHBOARD_ENABLE_FILE=$NEUTRON_LBAAS_DASHBOARD_DIR/neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py
NEUTRON_LBAAS_DASHBOARD_ENABLE_FILE_NAME=_1481_project_ng_loadbalancersv2_panel.py
NEUTRON_LBAAS_DASHBOARD_ENABLE_FILE_PATH=$NEUTRON_LBAAS_DASHBOARD_DIR/neutron_lbaas_dashboard/enabled/$NEUTRON_LBAAS_DASHBOARD_ENABLE_FILE_NAME
Loading…
Cancel
Save