Remove /etc/fstab Swift references during cleanup-host
During cleanup-host, we need remove swift references from fstab. Change-Id: I18e9a84b0664eb834cf397bcf6d2406abcab47a7 Closes-Bug: #1689285
This commit is contained in:
parent
62c5ba1e94
commit
4bb722b440
@ -2,6 +2,7 @@
|
||||
- name: Destroying Kolla host configuration
|
||||
command: >
|
||||
env enable_haproxy={{ enable_haproxy }}
|
||||
enable_swift={{ enable_swift }}
|
||||
kolla_internal_vip_address={{ kolla_internal_vip_address }}
|
||||
kolla_external_vip_address={{ kolla_external_vip_address }}
|
||||
/tmp/kolla-cleanup/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
|
||||
|
Loading…
Reference in New Issue
Block a user