<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:31:22 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-22] Number of flows in a switch reported incorrectly when controller connects to a switch with existing flows.</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-22</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;Controller connects to a switch with pre-existing flows (2 flows). When the operational state for a Table is issued, he Controller SHOULD report 2 flows, and display detailed statistics for both flows.&lt;/p&gt;

&lt;p&gt;1. Retrieve operational data for a table:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://192.168.4.1:8080/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://192.168.4.1:8080/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2. The controller shows:&lt;br/&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&amp;gt;&lt;br/&gt;
&amp;lt;table&lt;br/&gt;
    xmlns=&quot;urn:opendaylight:flow:inventory&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;aggregate-flow-statistics&lt;br/&gt;
        xmlns=&quot;urn:opendaylight:flow:statistics&quot;&amp;gt;&lt;br/&gt;
        &amp;lt;byte-count&amp;gt;0&amp;lt;/byte-count&amp;gt;&lt;br/&gt;
        &amp;lt;packet-count&amp;gt;0&amp;lt;/packet-count&amp;gt;&lt;br/&gt;
        &amp;lt;flow-count&amp;gt;1&amp;lt;/flow-count&amp;gt;&lt;br/&gt;
    &amp;lt;/aggregate-flow-statistics&amp;gt;&lt;br/&gt;
    &amp;lt;id&amp;gt;2&amp;lt;/id&amp;gt;&lt;br/&gt;
    &amp;lt;flow-table-statistics&lt;br/&gt;
        xmlns=&quot;urn:opendaylight:flow:table:statistics&quot;&amp;gt;&lt;br/&gt;
        &amp;lt;packets-looked-up&amp;gt;0&amp;lt;/packets-looked-up&amp;gt;&lt;br/&gt;
        &amp;lt;packets-matched&amp;gt;0&amp;lt;/packets-matched&amp;gt;&lt;br/&gt;
        &amp;lt;active-flows&amp;gt;1&amp;lt;/active-flows&amp;gt;&lt;br/&gt;
    &amp;lt;/flow-table-statistics&amp;gt;&lt;br/&gt;
&amp;lt;/table&amp;gt;&lt;/p&gt;

&lt;p&gt;Whereas it should show 2 flows and details for each flow.&lt;/p&gt;

&lt;p&gt;3. check the flows with OVS in mininet:&lt;br/&gt;
mininet@mininet-vm:~$ sudo ovs-ofctl -O OpenFlow13 dump-flows s1&lt;br/&gt;
OFPST_FLOW reply (OF1.3) (xid=0x2):&lt;br/&gt;
 cookie=0xa, duration=963.729s, table=0, n_packets=0, n_bytes=0, idle_timeout=3400, hard_timeout=1200, priority=2,ip,nw_dst=10.0.0.0/24 actions=dec_mpls_ttl&lt;br/&gt;
 cookie=0x14, duration=1013.893s, table=2, n_packets=0, n_bytes=0, idle_timeout=3400, hard_timeout=1200, send_flow_rem priority=2,metadata=0x3039 actions=dec_ttl&lt;/p&gt;

&lt;p&gt;Mininet&apos;s OVS shows both flows active.&lt;/p&gt;

&lt;p&gt;Note that the REALLY correct behavior would be for the controller to detect the two flows and then reconcile them with its config space. Since the config space is empty, the controller SHOULD delete both flows upon reconnection. But, in order to be able to delete the flows, the controller MUST detect them properly, which is not happening.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: Macintosh&lt;/p&gt;</environment>
        <key id="27290">OPNFLWPLUG-22</key>
            <summary>Number of flows in a switch reported incorrectly when controller connects to a switch with existing flows.</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="Avishnoi">Anil Vishnoi</assignee>
                                    <reporter username="jmedved@cisco.com">Jan Medved</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Jan 2014 00:51:35 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:01 +0000</updated>
                            <resolved>Thu, 30 Jan 2014 08:18:41 +0000</resolved>
                                                                    <component>General</component>
                        <due>Mon, 20 Jan 2014 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="55115" author="hagbard@gmail.com" created="Wed, 15 Jan 2014 16:45:12 +0000"  >&lt;p&gt;Should check to see what&apos;s coming on the wire to make sure OVS is not misreporting.&lt;/p&gt;

&lt;p&gt;Also check to make sure stats sweep has occurred.&lt;/p&gt;</comment>
                            <comment id="55116" author="vishnoianil@gmail.com" created="Fri, 17 Jan 2014 14:44:48 +0000"  >&lt;p&gt;Hi Jan,&lt;/p&gt;

&lt;p&gt;To me these flow stats looks correct. If you see the flows dumped by ovs-ofctl&lt;/p&gt;

&lt;p&gt;3. check the flows with OVS in mininet:&lt;br/&gt;
mininet@mininet-vm:~$ sudo ovs-ofctl -O OpenFlow13 dump-flows s1&lt;br/&gt;
OFPST_FLOW reply (OF1.3) (xid=0x2):&lt;br/&gt;
 cookie=0xa, duration=963.729s, table=0, n_packets=0, n_bytes=0, idle_timeout=3400, hard_timeout=1200, priority=2,ip,nw_dst=10.0.0.0/24 actions=dec_mpls_ttl&lt;br/&gt;
 cookie=0x14, duration=1013.893s, table=2, n_packets=0, n_bytes=0, idle_timeout=3400, hard_timeout=1200, send_flow_rem priority=2,metadata=0x3039 actions=dec_ttl&lt;/p&gt;

&lt;p&gt;Table 2 only contains 1 flow (look at table=2 in the second flow), another flow is from table 0 (table=0). Thats the reason stats shows only 1 flow for table 2. If you dump stats for table 0, you will see stats of the other flow.&lt;/p&gt;

&lt;p&gt;Let me know if you have any other query, else i will close this bug.&lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
Anil&lt;/p&gt;</comment>
                            <comment id="55117" author="jmedved@cisco.com" created="Sat, 18 Jan 2014 22:07:32 +0000"  >&lt;p&gt;Hi Anil,&lt;/p&gt;

&lt;p&gt;I re-ran the test with two flows in Table 2, and the problem is still there. &lt;/p&gt;

&lt;p&gt;If you start both the controller and mininet, and then program both flows, everything is ok. &lt;/p&gt;

&lt;p&gt;But then restart the controller, and leave the flows on the switch in mininet. When the controller comes back, it will not read the flows correctly - it will read only one flow. &lt;/p&gt;

&lt;p&gt;This bug describes the restart use case. Moreover, when I delete a flow from RESTCONF, stats collection stops and existing flows are not updated anymore. I think that&#8217;s another bug - if it&apos;s not related to this one, I can open a new bug.&lt;/p&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Jan&lt;/p&gt;</comment>
                            <comment id="55118" author="hagbard@gmail.com" created="Mon, 20 Jan 2014 16:36:06 +0000"  >&lt;p&gt;Tried this yesterday with mininet and pingall&lt;/p&gt;

&lt;p&gt;If I run pingall, I will initially see all the flows.  But if I then stop and restart the controller, I will not.&lt;/p&gt;</comment>
                            <comment id="55119" author="vishnoianil@gmail.com" created="Wed, 22 Jan 2014 19:27:14 +0000"  >&lt;p&gt;Hi Ed/Jan,&lt;/p&gt;

&lt;p&gt;I pushed gerrit &lt;span class=&quot;error&quot;&gt;&amp;#91;4583&amp;#93;&lt;/span&gt; that contains fix for bug-284, as well as some clean-up code.&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/4583/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/4583/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Can you please re-test it once this gerrit get merge to the controller repo. I locally verified it and things looks fine to me. &lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
Anil&lt;/p&gt;</comment>
                            <comment id="55120" author="vishnoianil@gmail.com" created="Sun, 26 Jan 2014 20:27:52 +0000"  >&lt;p&gt;Hi Jan,&lt;/p&gt;

&lt;p&gt;I pushed gerrit &lt;a href=&quot;http://git.opendaylight.org/gerrit/4822&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://git.opendaylight.org/gerrit/4822&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I locally verified it and it shows me correct stats. &lt;/p&gt;

&lt;p&gt;**I installed two flows flow-135 and flow-140 in table 2. &lt;br/&gt;
**I can see both the flows in config data store and their statistics in operational data store. Also aggregate and flow statistics were showing 2 flows.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;I stopped controller and restarted it (while mininet is running)&lt;/li&gt;
		&lt;li&gt;I dumped operational data of table 2 and i can see that both aggregate and flow statistics shows 2 flows.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;If you still see problem in your setup, we can get into web-ex session to sort it out.&lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
Anil&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>286</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=286]]></customfieldvalue>

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

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