diff options
| author | MinSun <minsu@cisco.com> | 2018-07-05 10:16:59 +0800 |
|---|---|---|
| committer | MinSun <minsu@cisco.com> | 2018-07-05 10:16:59 +0800 |
| commit | f692b4c9ac81e409a90a4cb49dc6fa52e5f2752c (patch) | |
| tree | 6c7080cc9dd1470f9a9dd0a39e5f1604d2373f15 /tools/cleanup-host | |
| parent | fd3f54faedcfa4069eccf93e3933d28e6d683a7f (diff) | |
| download | kolla-ansible-f692b4c9ac81e409a90a4cb49dc6fa52e5f2752c.tar.gz kolla-ansible-f692b4c9ac81e409a90a4cb49dc6fa52e5f2752c.zip | |
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
Diffstat (limited to 'tools/cleanup-host')
| -rwxr-xr-x | tools/cleanup-host | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
