]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
More graceful ovs-agent restart
authorJian Wen <wenjian@letv.com>
Wed, 11 Nov 2015 03:32:20 +0000 (11:32 +0800)
committerKevin Benton <blak111@gmail.com>
Wed, 11 Nov 2015 16:11:01 +0000 (08:11 -0800)
commit0c8121ee68085d67a7b865b5b25c4b3880defc89
treeb8966d1375029a855e29680b9a8f2a3066020e09
parent87ce4868caea9b7f1dd79f575004ee152ffa7eb0
More graceful ovs-agent restart

When the neutron server is down/busy the agent is not able to get any
port info. After the agent restarts, it will not install any new flow.
Cleaning the existing flows will break all networking until the agent
succeeds to sync with the neturon server.

This patch ensures the agent cleans the stale flows only after it
succeeds to sync with the neturon server.

Change-Id: I763fc06a73b6d2f010da65e74241182636dda44d
Closes-bug: #1515075
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py