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

Flow push does not work in cluster environment

    XMLWordPrintable

Details

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

    • 4767

    Description

      This issue is detected in our csit job:

      https://jenkins.opendaylight.org/releng/view/CSIT-3node/job/openflowplugin-csit-3node-clustering-only-stable-lithium/

      To reproduce:

      1) Install 3 node cluster setup with latest stable Lithium and feature odl-openflowplugin-flow-services-ui-li

      2) Start normal mininet and point to 3 controllers:

      ovs-vsctl set-controller s1 "tcp:192.168.0.101:6633" "tcp:192.168.0.102:6633" "tcp:192.168.0.103:6633"

      sudo mn --controller 'remote,ip=192.168.0.101,port=6633' --topo tree,1 --switch ovsk,protocols=OpenFlow13

      3) Push a sample flow to DS:

      PUT http://192.168.0.101:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1
      {
      "flow-node-inventory:flow": [
      {
      "id": "1",
      "priority": 2,
      "flow-name": "flow1",
      "table_id": 0,
      "hard-timeout": 0,
      "instructions": {
      "instruction": [
      {
      "order": 0,
      "apply-actions": {
      "action": [
      {
      "order": 0,
      "output-action":

      { "output-node-connector": "1" }

      }
      ]
      }
      }
      ]
      },
      "idle-timeout": 0,
      "match": {
      "ipv4-destination": "10.0.10.0/24",
      "ethernet-match": {
      "ethernet-type":

      { "type": 2048 }

      }
      }
      }
      ]
      }

      Flow replicates in DS config but nothing is sent to switch.

      4) Send RPC Flow Add:

      POST http://192.168.0.101:8181/restconf/operations/sal-flow:add-flow
      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <input xmlns="urn:opendaylight:flow:service">
      <node xmlns:inv="urn:opendaylight:inventory">/inv:nodes/inv:node[inv:id="openflow:1"]</node>
      <table_id>0</table_id>
      <priority>2</priority>
      <match>
      <ethernet-match>
      <ethernet-type>
      <type>2048</type>
      </ethernet-type>
      </ethernet-match>
      <ipv4-destination>10.0.1.0/24</ipv4-destination>
      </match>
      <instructions>
      <instruction>
      <order>0</order>
      <apply-actions>
      <action>
      <output-action>
      <output-node-connector>1</output-node-connector>
      </output-action>
      <order>0</order>
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      </input>

      Again nothing is sent to switch.

      In both cases there is no message in karaf log indicating error or anything.

      BR/Luis

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            ecelgp Luis Gomez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: