Skip to content
Snippets Groups Projects
Commit cf2ff03d authored by luyao's avatar luyao Committed by Yao Lu
Browse files

TrivialFix: Delete virtual bridge artifacts when cleaning hosts


After cleaning hosts by using tools/cleanup_host, some of the ovs bridge
devices such as ovs-system still exist. This will result in
{{neutron_external_interface}} not working properly because it had been
added to the ovs-system bridge. The solution is calling
neutron-ovs-cleanup script in neutron_openvswitch_agent container before
removing it.

TrivialFix

Change-Id: Ib3b096d842f2210b8bd223892a3492ef2fcf7c52
Signed-off-by: default avatarluyao <lu.yao135@zte.com.cn>
parent 755d5172
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,11 @@ else ...@@ -16,6 +16,11 @@ else
egrep -v '(^\s*$)' | sort | uniq) egrep -v '(^\s*$)' | sort | uniq)
fi 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..." echo "Stopping containers..."
(docker stop -t 2 ${containers_to_kill} 2>&1) > /dev/null (docker stop -t 2 ${containers_to_kill} 2>&1) > /dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment