Commit ce975e11 authored by David Johnson's avatar David Johnson

Add some openvswitch agent debugging.

parent 2d6dab31
......@@ -280,13 +280,13 @@ if [ $OSVERSION -gt $OSLIBERTY ]; then
i=`expr $i - 1`
# Sleep to let the agent settle further.
sleep 5
sleep 8
# Restart the ovs agent one more time; something in its first-time
# startup doesn't catch the reserved/preserved cookies, and ends up
# wiping our flows.
service_restart neutron-openvswitch-agent
# Let the agent settle again...
sleep 5
sleep 16
if [ -f /var/lib/neutron/ovs-default-flows.reserved_cookie -a -f /etc/neutron/ovs-default-flows/br-ex ]; then
cookie=`cat /var/lib/neutron/ovs-default-flows.reserved_cookie`
for fl in `cat /etc/neutron/ovs-default-flows/br-ex`; do
......@@ -294,6 +294,8 @@ if [ $OSVERSION -gt $OSLIBERTY ]; then
ovs-ofctl add-flow br-ex "cookie=$cookie,$fl"
mv /etc/neutron/ovs-default-flows/br-ex.tmp /etc/neutron/ovs-default-flows/br-ex
echo "br-ex flows:"
ovs-ofctl dump-flows br-ex
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment