aboutsummaryrefslogtreecommitdiff
path: root/tools/cleanup-host
diff options
context:
space:
mode:
authorSean Mooney <sean.k.mooney@intel.com>2016-09-12 20:34:59 +0100
committerSean Mooney <sean.k.mooney@intel.com>2016-09-12 20:46:56 +0100
commitf0aa137a1d4b3009fd0aa6dc4d1a1cd23fa72f89 (patch)
treeabadf5c0a0232103e935efea30746a3f17baab00 /tools/cleanup-host
parent6417595b9f822c44a86bf1ac905f9ac19344000d (diff)
downloadkolla-ansible-f0aa137a1d4b3009fd0aa6dc4d1a1cd23fa72f89.tar.gz
kolla-ansible-f0aa137a1d4b3009fd0aa6dc4d1a1cd23fa72f89.zip
move ovs cleanup to tools/cleanup-host
- One of the usecase supported by tools/cleanup-containers was the ablity to remove container with a regex so that you could redepoloy just that single componet. - By cleaning up ovs in cleanup-containers that is nolonger possible. - This change move the cleanup of ovs from, tools/cleanup-contianers to tools/cleanup-hosts TrivialFix Change-Id: If2001130f4a2400555ce4d9ac5ee506482e4c25e
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 c50a3a287..59d463b22 100755
--- a/tools/cleanup-host
+++ b/tools/cleanup-host
@@ -27,6 +27,11 @@ ip -o link show | awk -F': ' '/vxlan/{print $2}' | while read -r ifname ; do
ip link delete $ifname type vxlan
done
+echo "Removing ovs bridge..."
+(docker exec -u root neutron_openvswitch_agent neutron-ovs-cleanup \
+ --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini \
+ --ovs_all_ports) > /dev/null
+
# Keepalived leaves VIP on the host in case of accidental removal.
# This snippet removes VIPs.
if [[ "$enable_haproxy" == "yes" ]]; then
@@ -57,3 +62,4 @@ for dir in $FOLDER_PATH*; do
rm -rfv $dir
fi
done
+