[NETVIRT-1381] Stale entry in default flow table 46 for NON NAPT switch, where table 26 pointing to tunnel Created: 19/Jul/18  Updated: 27/Nov/19

Status: Confirmed
Project: netvirt
Component/s: natservice
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Srinivas Balajinaidu Assignee: Chetan Arakere Gowdru
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File karaf.rar     File karaf.rar    

 Description   

Bug Recreate:

Login to the ODL VM
Open the file ../../etc/opendaylight/datastore/initial/config/netvirt-natservice-config.xml
With default value 5 , verify the rate limit in the table 46
Change the default value to 0 (zero)
Restart the ODL
Verify zero rate limit in CSS for table 46 that is all the packets needs to be punted to the controller
Change the default value to the positive number [20] and repeat it with higher numbers
Restart the ODL
Verify the changed value in CSS for table 46 and punt packets
Verify the packet increment in the learnt flow
Verify only one packet should be punted

NAPT SWITCH:

stack@pike-compute-1:/opt/stack/devstack$ curl -u admin:admin GET http://192.168.100.201:8181/restconf/config/odl-nat:napt-switches | python -mjson.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 -::- -::- -::- 0curl: (6) Could not resolve host: GET
100 135 0 135 0 0 13324 0 -::- -::- -::- 13324
{
"napt-switches": {
"router-to-napt-switch": [

{ "primary-switch-id": 90980215257925, "router-name": "431a4f07-dd56-45a6-87cc-dcc54d8693c1" }

]
}
}
stack@pike-compute-1:/opt/stack/devstack$ dpnid
dpnid is 90980215257925
stack@pike-compute-1:/opt/stack/devstack$ flows table=26
cookie=0x8000006, duration=2101.545s, table=26, n_packets=0, n_bytes=0, priority=5,ip,metadata=0x30d44/0xfffffe actions=goto_table:46
stack@pike-compute-1:/opt/stack/devstack$
stack@pike-compute-1:/opt/stack/devstack$ flows table=46
cookie=0x81286ab, duration=2105.707s, table=46, n_packets=0, n_bytes=0, priority=5,udp,metadata=0x30d44/0xfffffe actions=CONTROLLER:65535,learn(table=46,hard_timeout=30,priority=7,cookie=0x81286ab,eth_type=0x800,nw_proto=17,NXM_OF_IP_SRC[],NXM_OF_IP_DST[],NXM_OF_UDP_SRC[],NXM_OF_UDP_DST[],OXM_OF_METADATA[1..23])
cookie=0x8000008, duration=2105.707s, table=46, n_packets=0, n_bytes=0, priority=0,icmp,metadata=0x30d44/0xfffffe actions=drop
cookie=0x81286ab, duration=2105.707s, table=46, n_packets=0, n_bytes=0, priority=5,tcp,metadata=0x30d44/0xfffffe actions=CONTROLLER:65535,learn(table=46,hard_timeout=30,priority=7,cookie=0x81286ab,eth_type=0x800,nw_proto=6,NXM_OF_IP_SRC[],NXM_OF_IP_DST[],NXM_OF_TCP_SRC[],NXM_OF_TCP_DST[],OXM_OF_METADATA[1..23])
stack@pike-compute-1:/opt/stack/devstack$

NON NAPT SWITCH']

stack@pike-controller:~$ flows table=26
cookie=0x8000006, duration=1536.665s, table=26, n_packets=0, n_bytes=0, priority=5,ip,metadata=0x30d44/0xfffffe actions=set_field:0x11173->tun_id,group:225000
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$
stack@pike-controller:~$ flows table=46
cookie=0x81286ab, duration=1647.677s, table=46, n_packets=0, n_bytes=0, priority=5,tcp,metadata=0x30d44/0xfffffe actions=CONTROLLER:65535,learn(table=46,hard_timeout=20,priority=7,cookie=0x81286ab,eth_type=0x800,nw_proto=6,NXM_OF_IP_SRC[],NXM_OF_IP_DST[],NXM_OF_TCP_SRC[],NXM_OF_TCP_DST[],OXM_OF_METADATA[1..23])
cookie=0x81286ab, duration=1647.677s, table=46, n_packets=0, n_bytes=0, priority=5,udp,metadata=0x30d44/0xfffffe actions=CONTROLLER:65535,learn(table=46,hard_timeout=20,priority=7,cookie=0x81286ab,eth_type=0x800,nw_proto=17,NXM_OF_IP_SRC[],NXM_OF_IP_DST[],NXM_OF_UDP_SRC[],NXM_OF_UDP_DST[],OXM_OF_METADATA[1..23])
cookie=0x8000008, duration=1647.677s, table=46, n_packets=0, n_bytes=0, priority=0,icmp,metadata=0x30d44/0xfffffe actions=drop

Karaf logs are attached



 Comments   
Comment by Tom Pantelis [ 19/Jul/18 ]

I don't know what "hardtime out" refers to. Either way this is not a controller issue so please re-open or move to the appropriate project - probably either netvirt, openflowplugin or ovsdb.

Comment by Tom Pantelis [ 19/Jul/18 ]

I see this was already moved to netvirt.

Comment by Srinivas Balajinaidu [ 23/Jul/18 ]

attached latest karaf logs

Generated at Wed Feb 07 20:23:55 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.