[OVSDB-197] Network delete doesnot removed the Vxlan tunnel entries on ovs switch Created: 27/Aug/15 Updated: 03/May/18 Resolved: 15/Sep/15 |
|
| Status: | Resolved |
| Project: | ovsdb |
| Component/s: | openstack.net-virt |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vasanthan Balasubramaniyan | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 4206 | ||||||||
| Description |
|
Build#: Lithium-SR1 Build local.conf snip Problem: Following flow entries created for specific tunnel. openflow@os-compute1:~/devstack$ sudo ovs-ofctl -O OpenFlow13 dump-flows br-int | grep 439 2.After deleting the Network,Expected to delete this tunnel entries from flow table. |
| Comments |
| Comment by Ravi Shankar S [ 01/Sep/15 ] |
|
The issue in the bug is when a network is created, flows are configured in the openvswitch for a particular tunnel ID. When the same network is deleted, these flows are not deleted. Observation: 1. When the network is to be deleted, the network:dhcp neutron port is not present (getTenantNetwork did not find neutronPort) in OVSDB. Because of this the local and tunnel rules were not deleted. getTenantNetwork for OvsdbTerminationPointAugmentation{getInterfaceExternalIds=[InterfaceExternalIds{getExternalIdKey=iface-id, getExternalIdValue=27581e57-ca33-40fa-aced-ef0aa7b56629, augmentations={}}, InterfaceExternalIds{getExternalIdKey=iface-status, getExternalIdValue=active, augmentations={}}, InterfaceExternalIds{getExternalIdKey=attached-mac, getExternalIdValue=fa:16:3e:84:24:a3, augmentations={}}], getInterfaceType=class org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeInternal, getInterfaceUuid=Uuid [_value=2238f5b3-f004-452d-94ec-d7268409c5c0], getName=tap27581e57-ca, getOfport=11, getPortUuid=Uuid [_value=a8c26072-08b3-4125-9872-2c76e2abca96]} 2. When a network is created a subnet and a DHCP interface (network:dhcp) is also created. Work Around: a. In the above case if I delete the subnet, I could also see a Null pointer exception which corresponds to the java.lang.NullPointerException |
| Comment by Ravi Shankar S [ 02/Sep/15 ] |
|
The workaround for this issue is disable the dhcp in the subnet. Then go ahead and delete the network. The local and tunnel rules were deleted properly. |
| Comment by Vasanthan Balasubramaniyan [ 03/Sep/15 ] |
|
As a workaround, Only below stale tunnel OF entries retained, cookie=0x0, duration=160.332s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x406 actions=drop Without Disable DHCP,if we delete the Network,It will retained the 6 OF stale entries related to same tunnel. |
| Comment by Aswin Suryanarayanan [ 09/Sep/15 ] |
|
For a DHCP port, the same port shall be returned without checking the subnet cache in getDHCPServerPort. This can prevent the null pointer exception caused by the reference to subnet cache in case of a DHCP port delete |
| Comment by Ravi Shankar S [ 15/Sep/15 ] |
|
The |