Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
unspecified
-
None
-
None
-
Operating System: All
Platform: All
-
major
-
3426
Description
Topology:
h1-s1-----s2-h2
Steps:
=====
->Bring up switches as in above.
->Configure vpn service for the two hosts in the same vpn
Configuration is attached.
Table 0,20 and 21 entries not added in s1 and incorrect entries added in s2
s1:
==
mininet> dpctl dump-flows -O OpenFlow13
-
-
- s1 ------------------------------------------------------------------------
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x8000001, duration=680.021s, table=0, n_packets=1, n_bytes=107, priority=10,in_port=2 actions=goto_table:20
cookie=0x1030000, duration=1096.971s, table=20, n_packets=1, n_bytes=107, priority=0 actions=write_actions(CONTROLLER:65535)
cookie=0x8000003, duration=1096.971s, table=21, n_packets=0, n_bytes=0, priority=0 actions=write_actions(CONTROLLER:65535)
mininet> dpctl dump-groups -O OpenFlow13 - s1 ------------------------------------------------------------------------
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=1,type=indirect,bucket=weight:0,actions=output:2
group_id=2,type=indirect,bucket=weight:0,actions=pop_mpls:0x0800,set_field:00:00:00:00:00:01->eth_dst,output:1
mininet>
- s1 ------------------------------------------------------------------------
-
s2:
==
mininet> dpctl dump-flows -O OpenFlow13
-
-
- s2 ------------------------------------------------------------------------
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x8000001, duration=29.700s, table=0, n_packets=0, n_bytes=0, priority=10,in_port=2 actions=goto_table:20
cookie=0x8000001, duration=29.409s, table=0, n_packets=0, n_bytes=0, priority=10,in_port=1 actions=write_metadata:0x1/0xffffffff,goto_table:21
cookie=0x8000002, duration=29.219s, table=20, n_packets=0, n_bytes=0, priority=10,mpls,mpls_label=3 actions=write_actions(group:4)
cookie=0x8000002, duration=29.219s, table=20, n_packets=0, n_bytes=0, priority=10,mpls,mpls_label=2 actions=write_actions(group:2) -------->To be installed in s1, instead inatalled in s2
cookie=0x1030000, duration=440.564s, table=20, n_packets=0, n_bytes=0, priority=0 actions=write_actions(CONTROLLER:65535)
cookie=0x8000003, duration=29.200s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x1/0xffffffff,nw_dst=10.0.0.1 actions=write_actions(push_mpls:0x8847,set_field:2->mpls_label,group:2) ---->incorrect group ids
cookie=0x8000003, duration=29.199s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x1/0xffffffff,nw_dst=10.0.0.2 actions=write_actions(push_mpls:0x8847,set_field:3->mpls_label,group:4) ---->incorrect group ids
cookie=0x8000003, duration=440.541s, table=21, n_packets=0, n_bytes=0, priority=0 actions=write_actions(CONTROLLER:65535)
mininet> dpctl dump-groups -O OpenFlow13 - s2 ------------------------------------------------------------------------
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
group_id=4,type=indirect,bucket=weight:0,actions=pop_mpls:0x0800,set_field:00:00:00:00:00:02->eth_dst,output:1
group_id=3,type=indirect,bucket=weight:0,actions=output:2
mininet>
- s2 ------------------------------------------------------------------------
-
Exceptions in nexthopmanager:
============================
2015-05-29 10:55:08,617 | ERROR | lt-dispatcher-15 | MDSALManager | 210 - org.opendaylight.vpnservice.mdsalutil-impl - 0.1.0.SNAPSHOT | Could not install flow: FlowEntity [m_shTableId=0, m_sFlowId=10-11, m_nPriority=10, m_sFlowName=s1-eth1, m_nIdleTimeOut=0, m_nHardTimeOut=0, m_biCookie=134217729, m_listMatchInfo=[org.opendaylight.vpnservice.mdsalutil.MatchInfo@5e8a467], m_listInstructionInfo=[org.opendaylight.vpnservice.mdsalutil.InstructionInfo@6c816938, org.opendaylight.vpnservice.mdsalutil.InstructionInfo@2423132f], m_bStrictFlag=false, m_bSendFlowRemFlag=false, toString()=AbstractSwitchEntity [m_lDpnId=1 ]]
java.lang.IllegalArgumentException: Invalid range: -1, expected: [[0?18446744073709551615]].
at org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.write.metadata._case.WriteMetadataBuilder.setMetadata(WriteMetadataBuilder.java:77)[182:org.opendaylight.openflowplugin.model.flow-base:0.1.0.SNAPSHOT]
at org.opendaylight.vpnservice.mdsalutil.InstructionType$5.buildInstruction(InstructionType.java:112)[209:org.opendaylight.vpnservice.mdsalutil-api:0.1.0.SNAPSHOT]
at org.opendaylight.vpnservice.mdsalutil.InstructionInfo.buildInstruction(InstructionInfo.java:45)[209:org.opendaylight.vpnservice.mdsalutil-api:0.1.0.SNAPSHOT]
at org.opendaylight.vpnservice.mdsalutil.MDSALUtil.buildInstructions(MDSALUtil.java:190)[209:org.opendaylight.vpnservice.mdsalutil-api:0.1.0.SNAPSHOT]
at org.opendaylight.vpnservice.mdsalutil.FlowEntity.getFlowBuilder(FlowEntity.java:112)[209:org.opendaylight.vpnservice.mdsalutil-api:0.1.0.SNAPSHOT]
at org.opendaylight.vpnservice.mdsalutil.internal.MDSALManager.installFlow(MDSALManager.java:92)[210:org.opendaylight.vpnservice.mdsalutil-impl:0.1.0.SNAPSHOT]
at org.opendaylight.vpnservice.mdsalutil.internal.MDSALUtilProvider.installFlow(MDSALUtilProvider.java:55)[210:org.opendaylight.vpnservice.mdsalutil-impl:0.1.0.SNAPSHOT]
Attaching logs and packet captures.