<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:33:06 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[OPNFLWPLUG-679] Li Migration: l2switch - LLDP flows or/and other flows not seen in controller stats</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-679</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;When working on the distribution produced after running the following builds in order &lt;/p&gt;

&lt;p&gt;Distribution repo with &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/38047/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/38047/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;L2Switch repo with &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/33303/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/33303/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Openflowplugin repo with &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/35892&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/35892&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;or &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-boron/4/org.opendaylight.integration$distribution-karaf/artifact/org.opendaylight.integration/distribution-karaf/0.5.0-SNAPSHOT/distribution-karaf-0.5.0-SNAPSHOT.zip&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-boron/4/org.opendaylight.integration$distribution-karaf/artifact/org.opendaylight.integration/distribution-karaf/0.5.0-SNAPSHOT/distribution-karaf-0.5.0-SNAPSHOT.zip&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Start controller --&amp;gt; Start mininet with topo=2, LLDP flows or/and other flows are not seen in stats of controller (check below links). When flows are checked on the switches they are present though.&lt;/p&gt;

&lt;p&gt;http://&amp;lt;Controller-Ip&amp;gt;:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0/ &lt;/p&gt;

&lt;p&gt;http://&amp;lt;Controller-Ip&amp;gt;:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:2/table/0/ &lt;/p&gt;

&lt;p&gt;http://&amp;lt;Controller-Ip&amp;gt;:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:3/table/0/&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27947">OPNFLWPLUG-679</key>
            <summary>Li Migration: l2switch - LLDP flows or/and other flows not seen in controller stats</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="shuva.jyoti.kar.87@gmail.com">Shuva Jyoti Kar</assignee>
                                    <reporter username="SaiMarapaReddy">Sai MarapaReddy</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Apr 2016 21:09:21 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:48 +0000</updated>
                            <resolved>Tue, 16 Aug 2016 05:35:20 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="57834" author="abhijit2511" created="Wed, 4 May 2016 21:03:09 +0000"  >&lt;p&gt;Made blocker as per: &lt;a href=&quot;https://lists.opendaylight.org/pipermail/openflowplugin-dev/2016-May/005036.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/openflowplugin-dev/2016-May/005036.html&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="57835" author="abhijit2511" created="Mon, 9 May 2016 16:39:05 +0000"  >&lt;p&gt;Make it a blocker for the release - but not for M3 (for Li migration default)&lt;/p&gt;</comment>
                            <comment id="57836" author="shuva.jyoti.kar.87@gmail.com" created="Fri, 13 May 2016 02:31:35 +0000"  >&lt;p&gt;Sai, apart from LLDP flows , what are the other flows that are not seen in operational DS? since if i add a flow through restconf , i am able to see it in operDS&lt;/p&gt;</comment>
                            <comment id="57837" author="sai.marapareddy@gmail.com" created="Tue, 17 May 2016 19:50:18 +0000"  >&lt;p&gt;LLDP flows consistently not seen, also the default flows installed by controller (not the flows user installs using restconf) are not seen very often.&lt;/p&gt;</comment>
                            <comment id="57838" author="sai.marapareddy@gmail.com" created="Wed, 27 Jul 2016 18:45:39 +0000"  >&lt;p&gt;Hi Shuva any update on this. &lt;br/&gt;
Can we please make it as a blocker ?&lt;/p&gt;

&lt;p&gt;Regarding other flows (not LLDP) you can refer to &lt;a href=&quot;https://jira.opendaylight.org/browse/OPNFLWPLUG-736&quot; title=&quot;Flow doesn&amp;#39;t show up in operational data with correct flow id&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OPNFLWPLUG-736&quot;&gt;&lt;del&gt;OPNFLWPLUG-736&lt;/del&gt;&lt;/a&gt;. But these two are independent bugs, which work in stable/ber.&lt;/p&gt;</comment>
                            <comment id="57839" author="shuva.jyoti.kar.87@gmail.com" created="Fri, 29 Jul 2016 10:17:54 +0000"  >&lt;p&gt;with a lot many fixes that have gone in can you please test it out on the current plugin build(as of today) and let us know&lt;/p&gt;</comment>
                            <comment id="57840" author="shuva.jyoti.kar.87@gmail.com" created="Sun, 31 Jul 2016 14:10:36 +0000"  >&lt;p&gt;Sai,&lt;/p&gt;

&lt;p&gt;Please refer to this patch&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/42851&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/42851&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="57841" author="shuva.jyoti.kar.87@gmail.com" created="Mon, 1 Aug 2016 02:25:24 +0000"  >&lt;p&gt;(In reply to Shuva Jyoti Kar from comment #7)&lt;br/&gt;
&amp;gt; Sai,&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Please refer to this patch&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/42851&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/42851&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;working on the fix, this is primarily happening since the flow-key is not unique.Still working on the actual/proper fix&lt;/p&gt;</comment>
                            <comment id="57842" author="shuva.jyoti.kar.87@gmail.com" created="Tue, 2 Aug 2016 10:17:33 +0000"  >&lt;p&gt;the fix of appending the priority to the flowid to guarantee its uniqueness is not a good fix.&lt;br/&gt;
As we see, the flowid of both the flows are same, hence this issue occurs. The flowRegistryKey generation and comparison happens correctly, Is it possible to handle it at the application level itself?&lt;/p&gt;</comment>
                            <comment id="57843" author="sai.marapareddy@gmail.com" created="Tue, 2 Aug 2016 23:45:57 +0000"  >&lt;p&gt;Flows that are not seen in particular are LLDP and flow with action &quot;dropall&quot;.&lt;/p&gt;


&lt;p&gt;Flows on mininet:- &lt;br/&gt;
 cookie=0x2b0000000000000b, duration=90.844s, table=0, n_packets=91, n_bytes=13134, priority=131 actions=CONTROLLER:65535&lt;br/&gt;
 cookie=0x2b00000000000003, duration=5987.185s, table=0, n_packets=38, n_bytes=6573, priority=0 actions=drop&lt;/p&gt;</comment>
                            <comment id="57844" author="abhijit2511" created="Mon, 8 Aug 2016 18:40:53 +0000"  >&lt;p&gt;Shuva has a patch for this - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/42851/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/42851/&lt;/a&gt;. Needs to be reviewed by Anil &amp;amp; tested for performance by Shuva.&lt;/p&gt;</comment>
                            <comment id="57845" author="tomas.slusny@pantheon.tech" created="Thu, 11 Aug 2016 13:51:14 +0000"  >&lt;p&gt;So, I was testing it, and when someone will add flow with for example ID 22, it is correctly added to config, operational and, deviceflowregistry and device.&lt;/p&gt;

&lt;p&gt;Then, when someone add same flow, but just changes the id to for example 23, it will be replaced in config, replaced in deviceflowregistry, but removed from operational and device, because of FRM (becouse first, flow add is called, but FRM will see, that no flow with ID 22 is in config, so afterwards, it deletes that flow. But, because flow is unique by match, priority and table id, it removes that old/new flow with ID 23).&lt;/p&gt;

&lt;p&gt;TL:DR&lt;br/&gt;
Adding 2 exactly same flows with different flow IDs is bad idea, because flow is not unique by flow id, and also, Shuvas patch what creates another alien and uses BiMap will not solve the problem, because it is not problem with DeviceFlowRegistry.&lt;/p&gt;</comment>
                            <comment id="57846" author="shuva.jyoti.kar.87@gmail.com" created="Thu, 11 Aug 2016 13:58:38 +0000"  >&lt;p&gt;(In reply to Tomas Slusny from comment #12)&lt;br/&gt;
&amp;gt; So, I was testing it, and when someone will add flow with for example ID 22,&lt;br/&gt;
&amp;gt; it is correctly added to config, operational and, deviceflowregistry and&lt;br/&gt;
&amp;gt; device.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Then, when someone add same flow, but just changes the id to for example 23,&lt;br/&gt;
&amp;gt; it will be replaced in config, replaced in deviceflowregistry, but removed&lt;br/&gt;
&amp;gt; from operational and device, because of FRM (becouse first, flow add is&lt;br/&gt;
&amp;gt; called, but FRM will see, that no flow with ID 22 is in config, so&lt;br/&gt;
&amp;gt; afterwards, it deletes that flow. But, because flow is unique by match,&lt;br/&gt;
&amp;gt; priority and table id, it removes that old/new flow with ID 23).&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; TL:DR&lt;br/&gt;
&amp;gt; Adding 2 exactly same flows with different flow IDs is bad idea, because&lt;br/&gt;
&amp;gt; flow is not unique by flow id, and also, Shuvas patch what creates another&lt;br/&gt;
&amp;gt; alien and uses BiMap will not solve the problem, because it is not problem&lt;br/&gt;
&amp;gt; with DeviceFlowRegistry.&lt;/p&gt;


&lt;p&gt;Tomas, &lt;br/&gt;
currently the problem is not with adding two flows with same &lt;/p&gt;
{match, priority,table-id and cookie}
&lt;p&gt; and different flowids, but with adding 2 different flows with the same flow id. This is because the flowregistry stores a unique(k,v) pair but fails to guarantee unique values.&lt;br/&gt;
so 2 flows with different match, priority,table-id and cookie} and same flow ids will be re-written in the oper-Ds (since flowKey contains the Flow id). Hence in the oper-Ds it appears as one.&lt;br/&gt;
With my patch, it will guarantee an uniqueness of(k,v) pairs. I have tested it with l2switch and i do see 2 distinct flws in the oper-Ds&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/42851/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/42851/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="57847" author="shuva.jyoti.kar.87@gmail.com" created="Thu, 11 Aug 2016 14:00:11 +0000"  >&lt;p&gt;Sai, &lt;/p&gt;

&lt;p&gt;Can you please test with the latest patchset of &lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/42851/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/42851/&lt;/a&gt;&lt;br/&gt;
and let us know if that works for you?&lt;/p&gt;</comment>
                            <comment id="57848" author="sai.marapareddy@gmail.com" created="Fri, 12 Aug 2016 19:52:04 +0000"  >&lt;p&gt;Thanks Shuva.&lt;/p&gt;

&lt;p&gt;I can see flows in operational. &lt;/p&gt;

&lt;p&gt;pastebin link:- &lt;a href=&quot;http://pastebin.com/tD75LBKA&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://pastebin.com/tD75LBKA&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One concern:- The drop all flow &quot;action&quot; is not seen in operational, any thoughts ?&lt;/p&gt;</comment>
                            <comment id="57849" author="andrejleitner" created="Mon, 15 Aug 2016 15:18:25 +0000"  >&lt;p&gt;Hi Sai, &lt;br/&gt;
afaik this is wanted behavior for now.&lt;/p&gt;</comment>
                            <comment id="57850" author="shuva.jyoti.kar.87@gmail.com" created="Tue, 16 Aug 2016 05:35:20 +0000"  >&lt;p&gt;Since the flows are seen in the operational and the behaviour is similar to the earlier model of the plugin,marking the bug as reslved .&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5822</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=5822]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10339"><![CDATA[Boron-M4]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i032n3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>