Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-886

opendaylight-direct-statistics:get-flow-statistics gets BADMATCH/BADLEN error

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 8319

    Description

      opendaylight-direct-statistics:get-flow-statistics RPC always returns BADMATCH/BADLEN error if match field is missing in its input.

      POST /restconf/operations/opendaylight-direct-statistics:get-flow-statistics
      Body:
      {
      "input":

      { "node": "/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id=\"openflow:1\"]" }

      }

      Result:
      {
      "errors": {
      "error": [

      { "error-type": "application", "error-tag": "operation-failed", "error-message": "Device reported error type BADMATCH code BADLEN" "error-info": "org.opendaylight.openflowjava.protocol.api.connection.DeviceRequestFailedException: Device-side failure..." }

      ]
      }
      }

      I captured secure channel, then I observed that above RPC call sent a malformed MULTIPART_REQUEST (OFPMP_FLOW) message.

      0x0000: 000c 297f 0c59 0050 56e1 e5c2 0800 4500 ..)..Y.PV.....E.
      0x0010: 0058 7eba 0000 8006 b6d7 0a3a c443 ac10 .X~........:.C..
      0x0020: 8a80 19e9 9a99 2986 4bdc d7cb 9aca 5018 ......).K.....P.
      0x0030: faf0 f8ad 0000 0412 0030 0000 1730 0001 .........0...0..
      0x0040: 0000 0000 0000 ff00 0000 ffff ffff ffff ................
      0x0050: ffff 0000 0000 0000 0000 0000 0000 0000 ................
      0x0060: 0000 0000 0000 ......

      "match" field is missing in ofp_flow_stats_request.

      table_id
      ff
      pad[3]
      00 0000
      out_port
      ffff ffff
      out_group
      ffff ................
      0x0050: ffff
      pad2[4]
      0000 0000
      cookie
      0000 0000 0000 0000
      cookie_mask
      0000 ................
      0x0060: 0000 0000 0000 ......

      This issue should be fixed the following patch.

      https://git.opendaylight.org/gerrit/54789 (master)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            yasuda Shigeru Yasuda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: