aboutsummaryrefslogtreecommitdiff
path: root/tools/cleanup-host
diff options
context:
space:
mode:
authorjeckxie <xiexiaozhe@inspur.com>2017-04-14 10:16:45 +0800
committerjeckxie <xiexiaozhe@inspur.com>2017-05-08 19:24:23 +0800
commit4bb722b4404eeb48e30e8730e31fc3447d14b8b2 (patch)
tree650c1277bb61bc55aa3f2fd44275e4c571bc4c2b /tools/cleanup-host
parent62c5ba1e94df57e861b842ba17698b21c366f197 (diff)
downloadkolla-ansible-4bb722b4404eeb48e30e8730e31fc3447d14b8b2.tar.gz
kolla-ansible-4bb722b4404eeb48e30e8730e31fc3447d14b8b2.zip
Remove /etc/fstab Swift references during cleanup-host
During cleanup-host, we need remove swift references from fstab. Change-Id: I18e9a84b0664eb834cf397bcf6d2406abcab47a7 Closes-Bug: #1689285
Diffstat (limited to 'tools/cleanup-host')
-rwxr-xr-xtools/cleanup-host6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/cleanup-host b/tools/cleanup-host
index 9800b7083..cc2aa322a 100755
--- a/tools/cleanup-host
+++ b/tools/cleanup-host
@@ -45,6 +45,12 @@ done
echo "Removing ceph references from fstab..."
sudo sed -i '/\/var\/lib\/ceph\/osd\//d' /etc/fstab
+if [[ "$enable_swift" == "yes" ]]; then
+ echo "Removing swift references from fstab..."
+ cat /etc/fstab | grep "/srv/node/d*" | xargs umount
+ sed -i '/\/srv\/node\//d' /etc/fstab
+fi
+
echo "Getting folders name..."
FOLDER_PATH="/etc/kolla/"
for dir in $FOLDER_PATH*; do