]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Stale VXLAN and GRE tunnel port/flow deletion
authorRomil Gupta <romilg@hp.com>
Thu, 20 Nov 2014 19:32:07 +0000 (11:32 -0800)
committerRomil Gupta <romilg@hp.com>
Wed, 11 Feb 2015 08:24:37 +0000 (00:24 -0800)
commit67c4c6d809e4c9e112d9fb848b5bdce9d5cd04ac
tree2b4c8f3caa64b85d94c1adbc12fed88b505e7b8d
parentec3f7562e05dd0d924f500006949648435505bdb
Stale VXLAN and GRE tunnel port/flow deletion

Description:
Stale GRE and VXLAN tunnel endpoints persists in neutron db this should be
deleted from the database. Also, if local_ip of L2 agent changes the
stale tunnel ports and flows persists on br-tun on other Compute Nodes and
Network Nodes for that remote ip this should also be removed.

Implementation

Plugin changes:
The plugin side changes are covered in following patch-set
https://review.openstack.org/#/c/121000/.

Agent changes:
Added tunnel_delete rpc for removing stale ports and flows from br-tun.
tunnel_sync rpc signature upgrade to obtain 'host'.
Added testcases for TunnelRpcCallbackMixin().

This patch-set agent deals with agent side changes.

Closes-Bug: #1179223
Closes-Bug: #1381071
Closes-Bug: #1276629

Co-Authored-By: Aman Kumar <amank@hp.com>
Co-Authored-By: phanipawan <ppawan@hp.com>
Change-Id: I291992ffde5c3ab7152f0d7462deca2e4ac1ba3f
12 files changed:
neutron/agent/rpc.py
neutron/plugins/ml2/drivers/type_tunnel.py
neutron/plugins/ml2/rpc.py
neutron/plugins/ofagent/agent/ofa_neutron_agent.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/hyperv/test_hyperv_rpcapi.py
neutron/tests/unit/ml2/test_rpcapi.py
neutron/tests/unit/ml2/test_type_gre.py
neutron/tests/unit/ml2/test_type_tunnel.py
neutron/tests/unit/ml2/test_type_vxlan.py
neutron/tests/unit/ofagent/test_ofa_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py