From 99d504d245181f73f0bb9663075e1eca9770ff3a Mon Sep 17 00:00:00 2001 From: yong sheng gong Date: Fri, 5 Jan 2018 02:01:20 -0600 Subject: [PATCH] remove tacker horizon during unstack Change-Id: I548905d7de525070c51d279bfd56962291ea2de1 Closes-bug: 1741421 --- devstack/lib/tacker | 5 +++++ devstack/plugin.sh | 2 ++ 2 files changed, 7 insertions(+) diff --git a/devstack/lib/tacker b/devstack/lib/tacker index 7af37d10a..13daafc29 100644 --- a/devstack/lib/tacker +++ b/devstack/lib/tacker @@ -326,6 +326,11 @@ function tacker_horizon_install { restart_apache_server } +function tacker_horizon_uninstall { + sudo rm -f $DEST/horizon/openstack_dashboard/enabled/_80_nfv.py + restart_apache_server +} + function openstack_image_create { image=$1 disk_format=raw diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 09c02b59e..651495e6f 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -50,6 +50,8 @@ if is_service_enabled tacker; then if [[ "$1" == "unstack" ]]; then # Shut down tacker services + echo_summary "Uninstall tacker horizon" + tacker_horizon_uninstall stop_tacker fi