[OPNFLWPLUG-585] Flow push does not work in cluster environment Created: 14/Dec/15  Updated: 27/Sep/21  Resolved: 19/Jan/16

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Luis Gomez Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 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



 Comments   
Comment by Luis Gomez [ 19/Jan/16 ]

It looks like these issues were resolved in this patch:

https://git.opendaylight.org/gerrit/#/c/32459/

So now I only see these 2 issues in the cluster CI test:

https://bugs.opendaylight.org/show_bug.cgi?id=4999
https://bugs.opendaylight.org/show_bug.cgi?id=5000

BR/Luis

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