[VPNSERVICE-39] Datapath not working for single ELAN in single DPN when binding VLAN interface as Trunk to ELAN port Created: 02/Feb/16  Updated: 30/Oct/17  Resolved: 08/Feb/16

Status: Verified
Project: vpnservice
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: VINAY S Assignee: P Govinda Rajulu
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File log - Copy.rar    
Severity: minor
External issue ID: 5184

 Description   

Datapath not working for single ELAN in single DPN when binding VLAN interface as Trunk to ELAN port

Binding trunk to ELAN port not working .

{
"interface": [

{ "enabled": "true", "description": "Vlan Interface s1-eth1", "name": "s1-eth1", "l2vlan-mode":"trunk", "odl-interface:parent-interface": "s1-eth1", "type": "iana-if-type:l2vlan" }

,

{ "enabled": "true", "description": "Vlan Interface s1-eth2", "name": "s1-eth2", "l2vlan-mode":"trunk", "odl-interface:parent-interface": "s1-eth2", "type": "iana-if-type:l2vlan" }

]
}

{
"elan-instance": [

{ "elan-instance-name": "elan1", "mac-timeout": "100", "description": "ELAN INSTANCE 1" }

]
}

{
"elan-interface": [

{ "elan-instance-name": "elan1", "description": "string1", "name": "s1-eth1" }

,

{ "elan-instance-name": "elan1", "description": "string1", "name": "s1-eth2" }

]
}

opendaylight-user@root>java.lang.NullPointerException
at org.opendaylight.vpnservice.interfacemgr.servicebindings.flowbased.ut
ilities.FlowBasedServicesUtils.getMatchInfoForVlanPortAtIngressTable(FlowBasedSe
rvicesUtils.java:80)
at org.opendaylight.vpnservice.interfacemgr.servicebindings.flowbased.co
nfighelpers.FlowBasedServicesConfigBindHelper.bindService(FlowBasedServicesConfi
gBindHelper.java:81)
at org.opendaylight.vpnservice.interfacemgr.servicebindings.flowbased.li
steners.FlowBasedServicesConfigListener$RendererConfigAddWorker.call(FlowBasedSe
rvicesConfigListener.java:88)
at org.opendaylight.vpnservice.interfacemgr.servicebindings.flowbased.li
steners.FlowBasedServicesConfigListener$RendererConfigAddWorker.call(FlowBasedSe
rvicesConfigListener.java:76)
at org.opendaylight.vpnservice.datastoreutils.DataStoreJobCoordinator$Ma
inTask.run(DataStoreJobCoordinator.java:238)
at java.util.concurrent.ForkJoinTask$AdaptedRunnable.exec(ForkJoinTask.j
ava:1265)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:334)
at java.util.concurrent.ForkJoinWorkerThread.execTask(ForkJoinWorkerThre
ad.java:604)
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:784)
at java.util.concurrent.ForkJoinPool.work(ForkJoinPool.java:646)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.ja
va:398)
java.lang.NullPointerException
at org.opendaylight.vpnservice.interfacemgr.servicebindings.flowbased.ut
ilities.FlowBasedServicesUtils.getMatchInfoForVlanPortAtIngressTable(FlowBasedSe
rvicesUtils.java:80)
at org.opendaylight.vpnservice.interfacemgr.servicebindings.flowbased.co
nfighelpers.FlowBasedServicesConfigBindHelper.bindService(FlowBasedServicesConfi
gBindHelper.java:81)
at org.opendaylight.vpnservice.interfacemgr.servicebindings.flowbased.li
steners.FlowBasedServicesConfigListener$RendererConfigAddWorker.call(FlowBasedSe
rvicesConfigListener.java:88)
at org.opendaylight.vpnservice.interfacemgr.servicebindings.flowbased.li
steners.FlowBasedServicesConfigListener$RendererConfigAddWorker.call(FlowBasedSe
rvicesConfigListener.java:76)
at org.opendaylight.vpnservice.datastoreutils.DataStoreJobCoordinator$Ma
inTask.run(DataStoreJobCoordinator.java:238)
at java.util.concurrent.ForkJoinTask$AdaptedRunnable.exec(ForkJoinTask.j
ava:1265)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:334)
at java.util.concurrent.ForkJoinWorkerThread.execTask(ForkJoinWorkerThre
ad.java:604)
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:784)
at java.util.concurrent.ForkJoinPool.work(ForkJoinPool.java:646)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.ja
va:398)

http://localhost:8181/restconf/operational/ietf-interfaces:interfaces-state/
Response Body
{
"interfaces-state": {
"interface": [

{ "name": "s1-eth1", "phys-address": "92:E6:CC:3B:38:B7", "lower-layer-if": [ "openflow:1:1" ], "admin-status": "up", "oper-status": "up", "if-index": 1 }

,

{ "name": "s1-eth2", "phys-address": "2A:49:E7:CD:EC:7C", "lower-layer-if": [ "openflow:1:2" ], "admin-status": "up", "oper-status": "up", "if-index": 3 }

,

{ "name": "s1", "phys-address": "FA:71:4E:11:6D:4E", "lower-layer-if": [ "openflow:1:LOCAL" ], "admin-status": "up", "oper-status": "up", "if-index": 2 }

]
}
}

http://localhost:8181/restconf/operational/elan:elan-dpn-interfaces/

{
"elan-dpn-interfaces": {
"elan-dpn-interfaces-list": [
{
"elan-instance-name": "elan1",
"dpn-interfaces": [

{ "dp-id": 1, "interfaces": [ "s1-eth1", "s1-eth2" ] }

]
}
]
}
}

http://localhost:8181/restconf/operational/elan:elan-interfaces/
Response Body
{
"errors": {
"error": [

{ "error-type": "application", "error-tag": "data-missing", "error-message": "Request could not be completed because the relevant data model content does not exist " }

]
}
}

http://localhost:8181/restconf/operational/elan:elan-tag-name-map/

{
"elan-tag-name-map": {
"elan-tag-name": [

{ "elan-tag": 5000, "name": "elan1" }

]
}
}



 Comments   
Comment by VINAY S [ 02/Feb/16 ]

Attachment log - Copy.rar has been added with description: logs

Comment by VINAY S [ 02/Feb/16 ]

mininet> sh ovs-ofctl -O OpenFlow13 dump-flows s1
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x6800000, duration=132.440s, table=0, n_packets=0, n_bytes=0, priority=50,udp,tp_src=68,tp_dst=67 actions=write_actions(CONTROLLER:65535)
cookie=0x1030000, duration=132.441s, table=20, n_packets=0, n_bytes=0, priority=0 actions=goto_table:80
cookie=0x8000003, duration=132.441s, table=21, n_packets=0, n_bytes=0, priority=0 actions=goto_table:80
cookie=0x8050000, duration=132.440s, table=50, n_packets=0, n_bytes=0, priority=0 actions=CONTROLLER:65535,goto_table:51
cookie=0x8030000, duration=132.145s, table=51, n_packets=0, n_bytes=0, priority=0 actions=goto_table:52
cookie=0x8701388, duration=17.677s, table=52, n_packets=0, n_bytes=0, priority=5,metadata=0x1388000000/0xffff000000 actions=write_actions(group:209999)
cookie=0x8800003, duration=17.666s, table=55, n_packets=0, n_bytes=0, priority=10,tun_id=0x3,metadata=0x30000000000/0x1fffff0000000000 actions=drop
cookie=0x8800001, duration=7.631s, table=55, n_packets=0, n_bytes=0, priority=10,tun_id=0x1,metadata=0x10000000000/0x1fffff0000000000 actions=drop
cookie=0x8800003, duration=17.671s, table=55, n_packets=0, n_bytes=0, priority=9,tun_id=0x3 actions=drop
cookie=0x8800001, duration=7.631s, table=55, n_packets=0, n_bytes=0, priority=9,tun_id=0x1 actions=drop
mininet> sh ovs-ofctl -O OpenFlow13 dump-groups s1
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=209999,type=all,bucket=actions=set_field:0x1->tun_id,resubmit(,55),bucket=actions=set_field:0x3->tun_id,resubmit(,55)
mininet> h1 ping h2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
^C
— 10.0.0.2 ping statistics —
2 packets transmitted, 0 received, 100% packet loss, time 1009ms

mininet>

Comment by Vishal Thapar [ 05/Feb/16 ]

Fixed by: https://git.opendaylight.org/gerrit/33891

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