From d5f6f2ab7a34ee04877fbaf80b1571d42799a68c Mon Sep 17 00:00:00 2001 From: Jens Harbott Date: Mon, 11 Nov 2019 09:48:59 +0000 Subject: [PATCH] Delete removed dashboard panel when upgrading The old v1 dashboard panel has been removed, when upgrading from an older version we need to remove the symbolic link for it in order to avoid horizon from failing. Change-Id: I383884aa100fd983e1087d7458396f8053414d55 --- devstack/upgrade/upgrade.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devstack/upgrade/upgrade.sh b/devstack/upgrade/upgrade.sh index c40c795bd..8a916d74e 100755 --- a/devstack/upgrade/upgrade.sh +++ b/devstack/upgrade/upgrade.sh @@ -49,6 +49,11 @@ set -o xtrace # Save current config files for posterity [[ -d $SAVE_DIR/etc.designate ]] || cp -pr $DESIGNATE_CONF_DIR $SAVE_DIR/etc.designate +# Hack: uninstall link to removed dashboard panel in order to avoid horizon from failing +if [ -L $DEST/horizon/openstack_dashboard/local/enabled/_1720_project_dns_panel.py ]; then + rm $DEST/horizon/openstack_dashboard/local/enabled/_1720_project_dns_panel.py +fi + # install_designate() if is_ubuntu; then install_package libcap2-bin