Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
7db277b1
Commit
7db277b1
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "move ovs cleanup to tools/cleanup-host"
parents
8d508040
f0aa137a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/cleanup-containers
+0
-5
0 additions, 5 deletions
tools/cleanup-containers
tools/cleanup-host
+6
-0
6 additions, 0 deletions
tools/cleanup-host
with
6 additions
and
5 deletions
tools/cleanup-containers
+
0
−
5
View file @
7db277b1
...
...
@@ -16,11 +16,6 @@ else
egrep
-v
'(^\s*$)'
|
sort
|
uniq
)
fi
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
echo
"Stopping containers..."
(
docker stop
-t
2
${
containers_to_kill
}
2>&1
)
>
/dev/null
...
...
This diff is collapsed.
Click to expand it.
tools/cleanup-host
+
6
−
0
View file @
7db277b1
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment