-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.0, 1.7.0, 1.6.1
-
Component/s: None
-
Labels:
-
Environment:
single node cluster
-
Story Points:3
> Created a single switch topology and assigned to a single node onos controller.
> Called a point intent with ethtype="0x88cc" (lldp proto which is non ip proto) and IP_PROTO=0 in matching condition.
> The intent was suppose to go in Corrupted/Faile state.
> Even though the switch rejected the flow addition with OFBadMatchErrorMsgVer13 erro message and error code as BAD_PREREQ, intent went in to installed state and flow went in to pending_add state.
> The flow addition was continously happening in an infinite loop as it is in pending_add state and will never be installed.
sample json
===================================
{
"type": "PointToPointIntent",
"appId": "org.onosproject.ovsdb",
"selector": {"criteria": [
,
,
{"type":"IN_PORT","port":"12"} ]},
"treatment": {
"instructions": [
],
"deferred": []
},
"priority": 321,
"ingressPoint":
,
"constraints": [
],
"egressPoint":
}
Observation
===================================
Intent Installed stage.
Flow in Pending add state
Getting continous OFBadMatchErrorMsgVer13 with error code as BAD_PREREQ
BadMatch error not handled properly
Exceptions :
===================================
00 00 00 00 00 00 00 01 41 ff ff ff ff ff ff ff ff ff ff ff ff 00 01 00 00 00 01 00 17 80 00 00 04 00 00 00 01 80 00 0a 02]) from switch org.onosproject.driver.handshaker.NiciraSwitchHandshaker [/192.168.56.107:52068 DPID[00:00:00:00:00:00:00:01]] in state ACTIVE
2016-06-24 23:46:40,978 | WARN | f-event-stats-12 | OpenFlowRuleProvider | 170 - org.onosproject.onos-of-provider-flow - 1.5.2.SNAPSHOT | Received error message OFBadMatchErrorMsgVer13(xid=0, code=BAD_PREREQ, data=[unparsed: 04 0e 00 70 00 00 00 00 00 25 00 00 46 3a 9b 83 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 41 ff ff ff ff ff ff ff ff ff ff ff ff 00 01 00 00 00 01 00 17 80 00 00 04 00 00 00 01 80 00 0a 02]) from 00:00:00:00:00:00:00:01
2016-06-24 23:46:45,953 | ERROR | ew I/O worker #2 | OFChannelHandler | 167 - org.onosproject.onos-of-ctl - 1.5.2.SNAPSHOT | OFBadMatchErrorMsgVer13(xid=0, code=BAD_PREREQ, data=[unparsed: 04 0e 00 70 00 00 00 00 00 25 00 00 46 3a 9b 83 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 41 ff ff ff ff ff ff ff ff ff ff ff ff 00 01 00 00 00 01 00 17 80 00 00 04 00 00 00 01 80 00 0a 02]) from switch org.onosproject.driver.handshaker.NiciraSwitchHandshaker [/192.168.56.107:52068 DPID[00:00:00:00:00:00:00:01]] in state ACTIVE
2016-06-24 23:46:45,971 | WARN | f-event-stats-13 | OpenFlowRuleProvider | 170 - org.onosproject.onos-of-provider-flow - 1.5.2.SNAPSHOT | Received error message OFBadMatchErrorMsgVer13(xid=0, code=BAD_PREREQ, data=[unparsed: 04 0e 00 70 00 00 00 00 00 25 00 00 46 3a 9b 83 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 41 ff ff ff ff ff ff ff ff ff ff ff ff 00 01 00 00 00 01 00 17 80 00 00 04 00 00 00 01 80 00 0a 02]) from 00:00:00:00:00:00:00:01
2016-06-24 23:46:50,953 | ERROR | ew I/O worker #2 | OFChannelHandler | 167 - org.onosproject.onos-of-ctl - 1.5.2.SNAPSHOT | OFBadMatchErrorMsgVer13(xid=0, code=BAD_PREREQ, data=[unparsed: 04 0e 00 70 00 00 00 00 00 25 00 00 46 3a 9b 83 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 41 ff ff ff ff ff ff ff ff ff ff ff ff 00 01 00 00 00 01 00 17 80 00 00 04 00 00 00 01 80 00 0a 02]) from switch org.onosproject.driver.handshaker.NiciraSwitchHandshaker [/192.168.56.107:52068 DPID[00:00:00:00:00:00:00:01]] in state ACTIVE
2016-06-24 23:46:50,959 | WARN | f-event-stats-20 | OpenFlowRuleProvider | 170 - org.onosproject.onos-of-provider-flow - 1.5.2.SNAPSHOT | Received error message OFBadMatchErrorMsgVer13(xid=0, code=BAD_PREREQ, data=[unparsed: 04 0e 00 70 00 00 00 00 00 25 00 00 46 3a 9b 83 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 41