Hi Yrineu,

The logs seem clean, could you please take a wireshark dump to see if the flows 
are going over the wire and the switch is rejecting them ?
Also

1.       Are you installing multiple flows ? or a single flow?

2.       What is the build against which you are testing?



Thanks
Shuva
From: Yrineu Rodrigues [mailto:[email protected]]
Sent: Wednesday, November 23, 2016 9:06 AM
To: Shuva Jyoti Kar
Cc: Jozef Bacigál; [email protected]; 
[email protected]; Developers
Subject: Re: [openflowplugin-dev] ODL: NIC - Issues to create basic OpenFlow 
rules using OF Plugin

Hi Shuva,

I debugged NIC using the log set, using OVS 2.4.0, NIC master branch and two 
features installed: odl-nic-core-mdsal odl-nic-listeners.

Looking at the logs I see that the handshake initially fails but immediately 
succeeds in the next try. Apart of it, no errors or anything suspicious.

My mininet topology is:

$ sudo mn --controller=remote,ip=192.168.0.12 --topo linear,2 --switch 
ovsk,protocols=OpenFlow13

root@mininet-vm:~# ovs-vsctl show
018de162-474c-49f8-8f2d-9617d35a4195
    Bridge "s2"
        Controller "ptcp:6635"
        Controller "tcp:192.168.0.12:6633<http://192.168.0.12:6633>"
            is_connected: true
        fail_mode: secure
        Port "s2"
            Interface "s2"
                type: internal
        Port "s2-eth1"
            Interface "s2-eth1"
        Port "s2-eth2"
            Interface "s2-eth2"
    Bridge "s1"
        Controller "tcp:192.168.0.12:6633<http://192.168.0.12:6633>"
            is_connected: true
        Controller "ptcp:6634"
        fail_mode: secure
        Port "s1-eth2"
            Interface "s1-eth2"
        Port "s1"
            Interface "s1"
                type: internal
        Port "s1-eth1"
            Interface "s1-eth1"
    ovs_version: "2.4.0"

After everything installed nothing is added into the flow tables. As you can 
see here:

root@mininet-vm:~# ovs-ofctl -O OpenFlow13 dump-flows s1
OFPST_FLOW reply (OF1.3) (xid=0x2):

Karaf logs: http://pastebin.com/ULanUH2s

We appreciate any insight.

On Tue, Nov 22, 2016 at 1:36 PM, Shuva Jyoti Kar 
<[email protected]<mailto:[email protected]>> wrote:
Sure Yrineu, feel free to ping ☺

From: Yrineu Rodrigues 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, November 22, 2016 7:39 PM
To: Shuva Jyoti Kar
Cc: Jozef Bacigál; 
[email protected]<mailto:[email protected]>;
 [email protected]<mailto:[email protected]>; 
Developers

Subject: Re: [openflowplugin-dev] ODL: NIC - Issues to create basic OpenFlow 
rules using OF Plugin

Hi Shuva,
I'll test to answer your questions soon, thanks for your help.
regards,

On Tue, Nov 22, 2016 at 12:49 AM, Shuva Jyoti Kar 
<[email protected]<mailto:[email protected]>> wrote:
Hi Yrineu,

0.4.0-Snapshot is the one for stable/Be and that hasnot been changed after the 
stable/Be release.

After Be, release the plugin model has changed, it’s the newer model now, and 
all functionality remains same. I went through both of your code snippets, and 
both look good!!

Have a few questions though that would help us in drill down to the issue:


1.       I assume that the flows are not going over the wire? Am I correct?

2.       Are you installing multiple flows ? or a single flow?

3.       What is the build against which you are testing?

4.       Are there any errors/exceptions that you see in the logs : if not, 
could you please enable debug logs for openflowplugin as

a.       log:set DEBUG org.opendaylight.openflowplugin

thanks
Shuva
From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Yrineu Rodrigues
Sent: Tuesday, November 22, 2016 4:26 AM
To: Jozef Bacigál
Cc: 
[email protected]<mailto:[email protected]>;
 [email protected]<mailto:[email protected]>
Subject: Re: [openflowplugin-dev] ODL: NIC - Issues to create basic OpenFlow 
rules using OF Plugin

Hi Jozef,

Thanks for your fast response! On NIC project we have an OpenFlow renderer to 
create basic firewall rules, ARP reply and others.
Here's<https://github.com/opendaylight/nic/blob/master/of-renderer/src/main/java/org/opendaylight/nic/of/renderer/impl/ArpFlowManager.java>
 an example of 'FlowBuilder' for ARP flows, and 
here's<https://github.com/opendaylight/nic/blob/master/of-renderer/src/main/java/org/opendaylight/nic/of/renderer/impl/AbstractFlowManager.java>
 the implementation of 'writeDataTransaction()'.

My question is: Something has changed at 'FlowBuilder' creation, after 'Be' 
release?
We need fill some new 'FlowBuilder' field, or change something at 
'writeDataTransaction()' method?

At this current implementation something is wrong and the OF rule isn't 
generated.

Please, let me know if you need more info.

Thanks in advance,

On Mon, Nov 21, 2016 at 1:57 PM, Jozef Bacigál 
<[email protected]<mailto:[email protected]>> wrote:
Hi Yrineu,

can you provide more information what are you doing or trying to do. You 
question is too generic so maybe more information would help us to identify the 
problem you get and find together the best solution.

Jozef

From: Yrineu Rodrigues 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Monday, November 21, 2016 2:51 AM
To: 
[email protected]<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>
Subject: [openflowplugin-dev] ODL: NIC - Issues to create basic OpenFlow rules 
using OF Plugin

Hi OpenFlow Plugin team,

The NIC project is facing some issues when we try to create basic flows rules 
using the version "0.4.0-SNAPSHOT", please, can someone help us to understand 
the changes since Berillyum?
Maybe some example to create a "FlowBuilder" applying the Boron/Carbon changes 
would be helpful.

Thanks in advance,
--
Yrineu Rodrigues
Software Engineer
SERRO | www.serro.com<http://www.serro.com>
JozefBacigál
Software Engineer

Sídlo / Mlynské Nivy 56 / 821 05 Bratislava / Slovakia
R&D centrum / Janka Kráľa 9 /  974 01 Banská Bystrica / Slovakia
+421 908 766 972<tel:%2B421%20908%20766%20972> / 
[email protected]<mailto:[email protected]>
reception: +421 2 206 65 114 / www.pantheon.sk<http://www.pantheon.sk>

[logo]





--
Yrineu Rodrigues
Software Engineer
SERRO | www.serro.com<http://www.serro.com>



--
Yrineu Rodrigues
Software Engineer
SERRO | www.serro.com<http://www.serro.com>



--
Yrineu Rodrigues
Software Engineer
SERRO | www.serro.com<http://www.serro.com>
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to