From f692b4c9ac81e409a90a4cb49dc6fa52e5f2752c Mon Sep 17 00:00:00 2001 From: MinSun Date: Thu, 5 Jul 2018 10:16:59 +0800 Subject: Make nova nova_instance_datadir_volume configurable. User can use custom directory for nova instance. For example using a shared file system as backend. Change-Id: I11fe4891719a2e2a34888d8b798df5602e294e4f --- tools/cleanup-host | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/cleanup-host') diff --git a/tools/cleanup-host b/tools/cleanup-host index d9ea76808..10a952a1b 100755 --- a/tools/cleanup-host +++ b/tools/cleanup-host @@ -56,6 +56,11 @@ if [[ "$glance_file_datadir_volume" != "glance" && -d "$glance_file_datadir_volu rm -rfv $glance_file_datadir_volume fi +if [[ "$nova_instance_datadir_volume" != "nova_compute" && -d "$nova_instance_datadir_volume" ]]; then + echo "Removing nova_compute volume if it is customzied" + rm -rfv $nova_instance_datadir_volume +fi + FOLDER_PATH="/etc/kolla/" if [[ -e "$FOLDER_PATH/ovsdpdk-db/ovs-dpdkctl.sh" ]]; then -- cgit v1.2.3