<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:33:39 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-891] Xid cannot be reserved after OVS connection flaps</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-891</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;When defining large number of networks/subnets in bulk, OVS connection flaps frequently and eventually remains disconnected.&lt;/p&gt;

&lt;p&gt;Environment: single openstack node and single ODL.&lt;br/&gt;
ODL version: carbon - &lt;br/&gt;
distribution-karaf-0.6.0-20170516.135813-5306.tar.gz&lt;/p&gt;

&lt;p&gt;To reproduce:&lt;/p&gt;

&lt;p&gt;1) using script to define large number of networks/subnets:&lt;/p&gt;

&lt;p&gt;neutron net-create vx-net$j-$i --provider:network_type vxlan&lt;br/&gt;
neutron subnet-create vx-net$j-$i 10.$j.$i.0/24 -&lt;del&gt;name vx-subnet$j&lt;/del&gt;$i --dns-nameserver 8.8.8.8&lt;/p&gt;

&lt;p&gt;where j is &lt;span class=&quot;error&quot;&gt;&amp;#91;1..15&amp;#93;&lt;/span&gt; and j is &lt;span class=&quot;error&quot;&gt;&amp;#91;1..100&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;2) Around 1000 networks, OVS connection flaps and eventually remains disconneted.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="28159">OPNFLWPLUG-891</key>
            <summary>Xid cannot be reserved after OVS connection flaps</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="batky">Jozef Bacigal</assignee>
                                    <reporter username="vinh.nguyen@hcl.com">Vinh Nguyen</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 May 2017 22:37:19 +0000</created>
                <updated>Mon, 27 Sep 2021 09:02:02 +0000</updated>
                            <resolved>Mon, 28 Aug 2017 12:13:08 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="58950" author="vinh.nguyen@hcl.com" created="Tue, 16 May 2017 22:37:19 +0000"  >&lt;p&gt;Attachment karaf.log.tar has been added with description: karar.log.tar&lt;/p&gt;</comment>
                            <comment id="58939" author="jozef.bacigal@pantheon.tech" created="Mon, 5 Jun 2017 15:01:40 +0000"  >&lt;p&gt;Hi Vinh, &lt;/p&gt;

&lt;p&gt;can you please run this again on latest snapshots with bigger log size and DEBUG log for org.opendayligh.openflowplugin.impl&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Jozef&lt;/p&gt;</comment>
                            <comment id="58940" author="vinh.nguyen@hcl.com" created="Sat, 10 Jun 2017 01:38:00 +0000"  >&lt;p&gt;Hi Jozef, I am not able to reproduce this problem with the latest snapshot. However since this issue happened intermittently when I logged it, I&apos;ll try some more runs to make sure it is gone in the latest code base&lt;/p&gt;</comment>
                            <comment id="58951" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:14:59 +0000"  >&lt;p&gt;Attachment karaf.log.18.7z has been added with description: karaf.log.18&lt;/p&gt;</comment>
                            <comment id="58952" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:15:26 +0000"  >&lt;p&gt;Attachment karaf.log.17.7z has been added with description: karaf.log.17&lt;/p&gt;</comment>
                            <comment id="58953" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:15:50 +0000"  >&lt;p&gt;Attachment karaf.log.16.7z has been added with description: karaf.log.16&lt;/p&gt;</comment>
                            <comment id="58954" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:16:11 +0000"  >&lt;p&gt;Attachment karaf.log.15.7z has been added with description: karaf.log.15&lt;/p&gt;</comment>
                            <comment id="58955" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:16:39 +0000"  >&lt;p&gt;Attachment karaf.log.14.7z has been added with description: karaf.log.14&lt;/p&gt;</comment>
                            <comment id="58956" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:16:58 +0000"  >&lt;p&gt;Attachment karaf.log.13.7z has been added with description: karaf.log.13&lt;/p&gt;</comment>
                            <comment id="58957" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:17:25 +0000"  >&lt;p&gt;Attachment karaf.log.12.7z has been added with description: karaf.log.12&lt;/p&gt;</comment>
                            <comment id="58958" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:17:59 +0000"  >&lt;p&gt;Attachment karaf.log.11.7z has been added with description: karaf.log.11&lt;/p&gt;</comment>
                            <comment id="58959" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:18:20 +0000"  >&lt;p&gt;Attachment karaf.log.10.7z has been added with description: karaf.log.10&lt;/p&gt;</comment>
                            <comment id="58941" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 02:08:51 +0000"  >&lt;p&gt;I cannot reproduce the original issue with latest ODL snapshot. However I encounter another issue:&lt;/p&gt;

&lt;p&gt;When defining large number of networks/subnets in bulk, OVS connection flaps frequently and new requests for network/subnet creation results in ERROR/WARNING in log files:&lt;/p&gt;

&lt;p&gt;&quot;No queue present, failing request&quot;&lt;br/&gt;
&quot;Xid cannot be reserved for new RequestContext&quot; &lt;/p&gt;

&lt;p&gt;Environment: single openstack node and single ODL.&lt;br/&gt;
ODL version: distribution-karaf-0.6.1-20170609.000930-229.tar.gz&lt;/p&gt;

&lt;p&gt;To reproduce:&lt;/p&gt;

&lt;p&gt;1) using script to define large number of networks/subnets:&lt;/p&gt;

&lt;p&gt;neutron net-create vx-net$j-$i --provider:network_type vxlan&lt;br/&gt;
neutron subnet-create vx-net$j-$i 10.$j.$i.0/24 -&lt;del&gt;name vx-subnet$j&lt;/del&gt;$i --dns-nameserver 8.8.8.8&lt;/p&gt;

&lt;p&gt;where j is &lt;span class=&quot;error&quot;&gt;&amp;#91;1..30&amp;#93;&lt;/span&gt; and j is &lt;span class=&quot;error&quot;&gt;&amp;#91;1..100&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;2) OVS connection to OFPlugin flaps several times but ODL recovers and keeps up the with continuous network creation requests&lt;/p&gt;

&lt;p&gt;3) Around 3000 network creations, OVS connection flaps, this time new network creation requests result in ERROR/WARNING in karaf.log:&lt;/p&gt;

&lt;p&gt;&quot;No queue present, failing request&quot;&lt;br/&gt;
&quot;Xid cannot be reserved for new RequestContext&quot; &lt;/p&gt;

&lt;p&gt;I attached the karaf log files captured before and when the issus happens.&lt;/p&gt;

&lt;p&gt;Some interesting notes:&lt;/p&gt;

&lt;p&gt;1) The &quot;Xid cannot be reserved &quot; issue happens in karaf.log.10&lt;/p&gt;

&lt;p&gt;2) There are two consecutive ConnectionEvent for &quot;Device connected&quot; in the last connection flap.&lt;/p&gt;

&lt;p&gt;Normally, the karaf log shows two events: one for disconnection and one for connection when the connection flaps:&lt;/p&gt;


&lt;p&gt;&amp;gt; grep ConnectionEvent &lt;br/&gt;
karaf.log.18:2017-06-13 03:26:05,245 | INFO  | entLoopGroup-7-4 | SystemNotificationsListenerImpl  | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | ConnectionEvent: Connection closed by device, Device:/10.138.0.2:49318, NodeId:openflow:158835981449481&lt;br/&gt;
karaf.log.18:2017-06-13 03:26:05,868 | INFO  | entLoopGroup-7-5 | DeviceManagerImpl                | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | ConnectionEvent: Device connected to controller, Device:/10.138.0.2:53148, NodeId:Uri &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=openflow:158835981449481&amp;#93;&lt;/span&gt;&lt;br/&gt;
karaf.log.15:2017-06-13 04:54:15,286 | INFO  | entLoopGroup-7-5 | SystemNotificationsListenerImpl  | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | ConnectionEvent: Connection closed by device, Device:/10.138.0.2:53148, NodeId:openflow:158835981449481&lt;br/&gt;
karaf.log.15:2017-06-13 04:54:15,827 | INFO  | entLoopGroup-7-6 | DeviceManagerImpl                | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | ConnectionEvent: Device connected to controller, Device:/10.138.0.2:60476, NodeId:Uri &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=openflow:158835981449481&amp;#93;&lt;/span&gt;&lt;br/&gt;
karaf.log.10:2017-06-13 06:10:25,663 | INFO  | entLoopGroup-7-8 | DeviceManagerImpl                | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | ConnectionEvent: Device connected to controller, Device:/10.138.0.2:36790, NodeId:Uri &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=openflow:158835981449481&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;3) In between the two &quot;Device Connected&quot; ConnectionEvents described above, there is an handshake attempt from the OVS. OF Plugin sees thatthis device is already connected and closing all connections:&lt;/p&gt;

&lt;p&gt;2017-06-13 06:10:23,680 | INFO  | entLoopGroup-7-7 | ConnectionAdapterImpl            | 295 - org.opendaylight.openflowjava.openflow-protocol-impl - 0.9.1.SNAPSHOT | Hello received&lt;br/&gt;
2017-06-13 06:10:23,681 | DEBUG | entLoopGroup-7-7 | nflowProtocolListenerInitialImpl | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | processing HELLO.xid: 36 from device /10.138.0.2:36788&lt;br/&gt;
2017-06-13 06:10:23,682 | DEBUG | entLoopGroup-7-7 | HandshakeListenerImpl            | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | handshake succeeded: /10.138.0.2:36788&lt;br/&gt;
2017-06-13 06:10:23,683 | DEBUG | entLoopGroup-7-7 | HandshakeListenerImpl            | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | succeeded by getting sweep barrier after post-handshake for device openflow:158835981449481&lt;br/&gt;
2017-06-13 06:10:23,683 | INFO  | entLoopGroup-7-7 | ContextChainHolderImpl           | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | Device openflow:158835981449481 connected.&lt;br/&gt;
2017-06-13 06:10:23,683 | WARN  | entLoopGroup-7-7 | ContextChainHolderImpl           | 306 - org.opendaylight.openflowplugin.impl - 0.4.1.SNAPSHOT | Device openflow:158835981449481 already connected. Closing all connection to the device.&lt;/p&gt;</comment>
                            <comment id="58942" author="jozef.bacigal@pantheon.tech" created="Mon, 26 Jun 2017 11:55:17 +0000"  >&lt;p&gt;Recheck this please after this patch&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/57814/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/57814/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="58943" author="vinh.nguyen@hcl.com" created="Thu, 29 Jun 2017 22:25:56 +0000"  >&lt;p&gt;The problem still exists after the patch:&lt;/p&gt;

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

&lt;p&gt;The &quot;Xid cannot be reserved &quot; problem still happens after the duplicate connection is received:&lt;/p&gt;

&lt;p&gt;&quot;Device openflow:158835981449481 already connected. Closing all connection to the device&quot;&lt;/p&gt;</comment>
                            <comment id="58944" author="jozef.bacigal@pantheon.tech" created="Mon, 3 Jul 2017 07:31:32 +0000"  >&lt;p&gt;OK and now the double connection problem &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

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

&lt;p&gt;Try please this patch.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="58945" author="vinh.nguyen@hcl.com" created="Wed, 5 Jul 2017 22:19:02 +0000"  >&lt;p&gt;Karaf.log for patch 59557&lt;/p&gt;</comment>
                            <comment id="58960" author="vinh.nguyen@hcl.com" created="Wed, 5 Jul 2017 22:19:02 +0000"  >&lt;p&gt;Attachment karaf.log.7z has been added with description: karaf.log.patch59557&lt;/p&gt;</comment>
                            <comment id="58946" author="vinh.nguyen@hcl.com" created="Wed, 5 Jul 2017 22:41:36 +0000"  >&lt;p&gt;The patch 59557 doesn&apos;t fix the problem. New flows are still not pushed when new connection handshake received for already-connected OVS device.&lt;/p&gt;

&lt;p&gt;Please see the attached karaf logs (last 10 logs, the already-connected connection issue happens in karaf.log file)&lt;/p&gt;</comment>
                            <comment id="58947" author="vinh.nguyen@hcl.com" created="Wed, 5 Jul 2017 22:44:04 +0000"  >&lt;p&gt;(In reply to Vinh Nguyen from comment #16)&lt;br/&gt;
&amp;gt; Created attachment 1896 &lt;span class=&quot;error&quot;&gt;&amp;#91;details&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;gt; karaf.log.patch59557&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Karaf.log for patch 59557&lt;/p&gt;

&lt;p&gt;Please ignore this attachment&lt;/p&gt;</comment>
                            <comment id="58961" author="vinh.nguyen@hcl.com" created="Wed, 5 Jul 2017 22:45:21 +0000"  >&lt;p&gt;Attachment karaf.7z has been added with description: New karaf.log for 59557&lt;/p&gt;</comment>
                            <comment id="58948" author="vinh.nguyen@hcl.com" created="Wed, 5 Jul 2017 22:48:44 +0000"  >&lt;p&gt;(In reply to Vinh Nguyen from comment #17)&lt;br/&gt;
&amp;gt; The patch 59557 doesn&apos;t fix the problem. New flows are still not pushed when&lt;br/&gt;
&amp;gt; new connection handshake received for already-connected OVS device.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Please see the attached karaf logs (last 10 logs, the already-connected&lt;br/&gt;
&amp;gt; connection issue happens in karaf.log file)&lt;/p&gt;

&lt;p&gt;The error messages &quot;Xid cannot be reserved..&quot; are not seen in the logs but the problem now seems that odl connection are dropped but new connection is not processed properly.&lt;/p&gt;</comment>
                            <comment id="58949" author="jozef.bacigal@pantheon.tech" created="Mon, 14 Aug 2017 11:24:57 +0000"  >&lt;p&gt;Closing this, connection bug is 8805&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="14150" name="karaf.7z" size="795946" author="vinh.nguyen@hcl.com" created="Wed, 5 Jul 2017 22:45:21 +0000"/>
                            <attachment id="14148" name="karaf.log.10.7z" size="292061" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:18:20 +0000"/>
                            <attachment id="14147" name="karaf.log.11.7z" size="442837" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:17:59 +0000"/>
                            <attachment id="14146" name="karaf.log.12.7z" size="451008" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:17:25 +0000"/>
                            <attachment id="14145" name="karaf.log.13.7z" size="362027" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:16:58 +0000"/>
                            <attachment id="14144" name="karaf.log.14.7z" size="339808" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:16:39 +0000"/>
                            <attachment id="14143" name="karaf.log.15.7z" size="474744" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:16:11 +0000"/>
                            <attachment id="14142" name="karaf.log.16.7z" size="471964" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:15:50 +0000"/>
                            <attachment id="14141" name="karaf.log.17.7z" size="380470" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:15:26 +0000"/>
                            <attachment id="14140" name="karaf.log.18.7z" size="389940" author="vinh.nguyen@hcl.com" created="Wed, 14 Jun 2017 01:14:59 +0000"/>
                            <attachment id="14149" name="karaf.log.7z" size="438296" author="vinh.nguyen@hcl.com" created="Wed, 5 Jul 2017 22:19:02 +0000"/>
                            <attachment id="14139" name="karaf.log.tar" size="795211" author="vinh.nguyen@hcl.com" created="Tue, 16 May 2017 22:37:19 +0000"/>
                    </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>8478</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=8478]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

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

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

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