From 843764e7102e07ca535b5fb0d94c0e8a02195be4 Mon Sep 17 00:00:00 2001 From: Adam Israel Date: Tue, 11 Jun 2019 10:28:43 -0400 Subject: [PATCH] Fix uninstall bug that leaves Juju controller running During uninstall, the Juju controller was not being destroyed when there are active models. The `juju destroy-controller` command requires the additional flag `--destroy-all-models`. Change-Id: Ie5e3590027907ada08c6e6b2951a6f1ef64d41bf Signed-off-by: Adam Israel --- installers/full_install_osm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 40cbfdad..96ffdbe0 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -180,7 +180,7 @@ EONG remove_network $OSM_STACK_NAME echo "Removing $OSM_DOCKER_WORK_DIR" $WORKDIR_SUDO rm -rf $OSM_DOCKER_WORK_DIR - sg lxd -c "juju destroy-controller --yes $OSM_STACK_NAME" + sg lxd -c "juju destroy-controller --destroy-all-models --yes $OSM_STACK_NAME" fi echo "Some docker images will be kept in case they are used by other docker stacks" echo "To remove them, just run 'docker image prune' in a terminal" -- 2.25.1