[VTN-43] VTN Manager failed to forward packets occasionally. Created: 29/Sep/14 Updated: 03/May/18 Resolved: 02/Oct/14 |
|
| Status: | Resolved |
| Project: | vtn |
| Component/s: | VTN Manager |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Hideyuki Tai | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 2107 |
| Description |
|
VTN Manager failed to forward packets occasionally. Due to this issue, ping tests of CSIT conducted by Integration Group fails occasionally. https://jenkins.opendaylight.org/integration/job/integration-master-csit-karaf-vtn-only/ The issues has been discussed in the ML. |
| Comments |
| Comment by Hideyuki Tai [ 30/Sep/14 ] |
|
[How to reproduce the bug] The following procedure does NOT always reproduce the issue. Step 1. Run Karaf. Step 2. Install VNT Manager features. feature:install odl-vtn-manager-all odl-adsal-compatibility-all odl-openflowplugin-all Step 3. Run Mininet. sudo mn --controller=remote,ip=HOST --topo tree,2 Step 4. Create a virtual network. I'm attaching the script for it. Or you can get the script from the following URL. Step 5. Try to send ping packets. h1 ping h3 The above ping packets should be forwarded. If you don't face the issue, stop the Mininet and Karaf, and restart the above step 1, 3, and 5. |
| Comment by Hideyuki Tai [ 30/Sep/14 ] |
|
Attachment vtn_test_script.sh.sh has been added with description: Script to create a virtual network. (See comment 1) |
| Comment by Hideyuki Tai [ 30/Sep/14 ] |
|
As Shigeru said in the following mail, it seems that this issue is caused by asynchronous notification of data change event. https://lists.opendaylight.org/pipermail/vtn-dev/2014-September/000639.html It seems that the OpenFlow plugin notifies MD-SAL of events of switches in the correct order. Does it mean that this issue is caused by the OpenFlow plugin or MD-SAL? |
| Comment by Hideyuki Tai [ 30/Sep/14 ] |
|
Hi Ed, It seems to me that VTN Neutron bundle has a bad impact in your setup. Therefore, could you install VTN features as follows instead of odl-vtn-manager-all? feature:install odl-vtn-manager-java-api odl-vtn-manager-northbound It does not install odl-vtn-manager-neutron feature. |
| Comment by Luis Gomez [ 01/Oct/14 ] |
|
So tonight I tested this bug more in detail and it looks like the root cause = BR/Luis |
| Comment by Luis Gomez [ 01/Oct/14 ] |
|
The details of he test: VTN gets the node connector s2-eth2 when node registers: 2014-09-30 08:16:28,835 | INFO | notification-113 | VTNManagerImpl | 218 - org.opendaylight.vtn.manager.implementation - 0.2.0.SNAPSHOT | default: addPort: New port: port=OF|2@OF|00:00:00:00:00:00:00:02, prop=PortProperty[name=s2-eth2,cost=1000,enabled] However adsal switch manager does not show this port: , , }, , , , , }, , , , , }, , This makes VInterface if3 to go DOWN: 2014-09-30 08:16:35,241 | INFO | Thread: default | VTNManagerImpl | 218 - org.opendaylight.vtn.manager.implementation - 0.2.0.SNAPSHOT | default:vBridge-IF:Tenant1.vBridge2.if3: Virtual interface added: VInterface[name=if3,enabled,state=UNKNOWN,entityState=UNKNOWN] 2014-09-30 08:16:35,294 | INFO | Thread: default | VTNManagerImpl | 218 - org.opendaylight.vtn.manager.implementation - 0.2.0.SNAPSHOT | default:vBridge-IF:Tenant1.vBridge2.if3: Port mapping added: PortMap[config=PortMapConfig[node=OF|00:00:00:00:00:00:00:02,port=SwitchPort[name=s2-eth2],vlan=0]] 2014-09-30 08:16:35,294 | INFO | Thread: default | VTNManagerImpl | 218 - org.opendaylight.vtn.manager.implementation - 0.2.0.SNAPSHOT | default:vBridge-IF:Tenant1.vBridge2.if3: Virtual interface changed: VInterface[name=if3,enabled,state=DOWN,entityState=UNKNOWN] And finally ping fails in the test: Ping h2 to h4 :: Ping h2 to h4, verify no packet loss | FAIL | — 10.0.0.4 ping statistics — BR/Luis |
| Comment by Ed Warnicke [ 01/Oct/14 ] |
|
Fix here: https://git.opendaylight.org/gerrit/#/c/11705 So far it has succeeded 8 out of 8 tries for me |
| Comment by Hideyuki Tai [ 01/Oct/14 ] |
|
(In reply to Ed Warnicke from comment #7) Hi Ed, Thank you for submitting the patch. I've tested the patch, and it has succeeded 10 out 10 tries in my setup. |
| Comment by Colin Dixon [ 02/Oct/14 ] |
|
Per Hideyuki's comments, this is fixed for him. |