<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:33:59 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-1018] OVS not able to connect to ODL - contextChain stuck in CLOSED state</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-1018</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;We have seen sporadic failures where OVS on a compute node fails to connect to ODL when set-controller is executed on the compute node. These failures usually occur during deployment.&lt;/p&gt;

&lt;p&gt;When this failure occurs, OVS on the compute node continues attempting to connect to ODL. Openflowplugin immediately closes the new incoming connection, as it thinks the connection is in termination state. This cycle repeats endlessly once we are in this state.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Since this is a random, intermittent, sorta difficult to reproduce bug (and would take forever having to try and hit this by having to redeploy every time), I wrote a small test script to reproduce this issue. Script is attached as test.sh.&lt;/p&gt;

&lt;p&gt;I enabled TRACE logs for openflowplugin.impl.lifecycle, and was able to reproduce the issue. I&apos;ve been looking at the logs and code, but would be really great if someone on the openflowplugin team could jump in and take a look.&lt;/p&gt;

&lt;p&gt;I&apos;ve included a snippet of some relevant karaf and ovs-vswitchd logs below. Full karaf log and ovs-vswitchd logs are attached.&#160;&lt;/p&gt;

&lt;p&gt;The timestamp of interest in the karaf logs starts around timestamp&#160; 2018-06-08T22:32:11,465, which is line number 4661.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;ins&gt;&lt;b&gt;Setup&lt;/b&gt;&lt;/ins&gt;&lt;/p&gt;

&lt;p&gt;Devstack setup, with 1 control node (VM) and 2 compute nodes (VMs) on 1 bm server.&lt;/p&gt;

&lt;p&gt;Devstack is stable/queens.&lt;/p&gt;

&lt;p&gt;ODL is stable/oxygen.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;ins&gt;&lt;b&gt;Karaf logs&lt;/b&gt;&lt;/ins&gt;&lt;/p&gt;

&lt;p&gt;2018-06-08T22:32:11,465 | WARN &#160;| epollEventLoopGroup-9-6 | ContextChainHolderImpl &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;| 401 - org.opendaylight.openflowplugin.impl - 0.7.0.S&lt;br/&gt;
NAPSHOT | Device openflow:220918713701936 is already in termination state, closing all incoming connections. &lt;br/&gt;
2018-06-08T22:32:11,870 | INFO &#160;| epollEventLoopGroup-9-7 | AbstractConnectionAdapter &#160;&#160;&#160;&#160;&#160;&#160;&#160;| 410 - org.opendaylight.openflowplugin.openflowjava.o&lt;br/&gt;
penflow-protocol-impl - 0.7.0.SNAPSHOT | The channel outbound queue size:1024 &lt;br/&gt;
2018-06-08T22:32:11,871 | INFO &#160;| epollEventLoopGroup-9-7 | ConnectionAdapterImpl &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;| 410 - org.opendaylight.openflowplugin.openflowjava.o&lt;br/&gt;
penflow-protocol-impl - 0.7.0.SNAPSHOT | Hello received &lt;br/&gt;
2018-06-08T22:32:11,873 | INFO &#160;| epollEventLoopGroup-9-7 | ContextChainHolderImpl &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;| 401 - org.opendaylight.openflowplugin.impl - 0.7.0.S&lt;br/&gt;
NAPSHOT | Device openflow:220918713701936 connected. &lt;br/&gt;
2018-06-08T22:32:11,873 | WARN &#160;| epollEventLoopGroup-9-7 | ContextChainHolderImpl &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;| 401 - org.opendaylight.openflowplugin.impl - 0.7.0.S&lt;br/&gt;
NAPSHOT | Device openflow:220918713701936 is already in termination state, closing all incoming connections.&lt;/p&gt;

&lt;p&gt;2018-06-08T22:32:13,868 | INFO &#160;| epollEventLoopGroup-9-8 | AbstractConnectionAdapter &#160;&#160;&#160;&#160;&#160;&#160;&#160;| 410 - org.opendaylight.openflowplugin.openflowjava.o&lt;br/&gt;
penflow-protocol-impl - 0.7.0.SNAPSHOT | The channel outbound queue size:1024 &lt;br/&gt;
2018-06-08T22:32:13,869 | INFO &#160;| epollEventLoopGroup-9-8 | ConnectionAdapterImpl &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;| 410 - org.opendaylight.openflowplugin.openflowjava.o&lt;br/&gt;
penflow-protocol-impl - 0.7.0.SNAPSHOT | Hello received &lt;br/&gt;
2018-06-08T22:32:13,872 | INFO &#160;| epollEventLoopGroup-9-8 | ContextChainHolderImpl &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;| 401 - org.opendaylight.openflowplugin.impl - 0.7.0.S&lt;br/&gt;
NAPSHOT | Device openflow:220918713701936 connected. &lt;br/&gt;
2018-06-08T22:32:13,873 | WARN &#160;| epollEventLoopGroup-9-8 | ContextChainHolderImpl &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;| 401 - org.opendaylight.openflowplugin.impl - 0.7.0.S&lt;br/&gt;
NAPSHOT | Device openflow:220918713701936 is already in termination state, closing all incoming connections.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;ins&gt;&lt;b&gt;ovs-vswitchd logs&lt;/b&gt;&lt;/ins&gt;&lt;/p&gt;

&lt;p&gt;2018-06-08T23:04:42.855Z|13767|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connected &lt;br/&gt;
2018-06-08T23:04:42.858Z|13768|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connection closed by peer &lt;br/&gt;
2018-06-08T23:04:50.854Z|13769|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connected &lt;br/&gt;
2018-06-08T23:04:50.857Z|13770|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connection closed by peer &lt;br/&gt;
2018-06-08T23:04:58.854Z|13771|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connected &lt;br/&gt;
2018-06-08T23:04:58.857Z|13772|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connection closed by peer &lt;br/&gt;
2018-06-08T23:05:06.855Z|13773|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connected &lt;br/&gt;
2018-06-08T23:05:06.858Z|13774|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connection closed by peer &lt;br/&gt;
2018-06-08T23:05:14.853Z|13775|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connected &lt;br/&gt;
2018-06-08T23:05:14.856Z|13776|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connection closed by peer &lt;br/&gt;
2018-06-08T23:05:22.854Z|13777|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connected &lt;br/&gt;
2018-06-08T23:05:22.856Z|13778|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connection closed by peer &lt;br/&gt;
2018-06-08T23:05:30.855Z|13779|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connected &lt;br/&gt;
2018-06-08T23:05:30.858Z|13780|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connection closed by peer &lt;br/&gt;
2018-06-08T23:05:38.853Z|13781|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connected &lt;br/&gt;
2018-06-08T23:05:38.855Z|13782|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connection closed by peer &lt;br/&gt;
2018-06-08T23:05:46.855Z|13783|rconn|INFO|br-int&amp;lt;-&amp;gt;tcp:10.8.125.230:6653: connected&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="30117">OPNFLWPLUG-1018</key>
            <summary>OVS not able to connect to ODL - contextChain stuck in CLOSED state</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</priority>
                        <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="vpickard">Victor Pickard</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Jun 2018 19:51:52 +0000</created>
                <updated>Mon, 25 Jun 2018 17:45:15 +0000</updated>
                            <resolved>Mon, 25 Jun 2018 17:45:15 +0000</resolved>
                                                    <fixVersion>Oxygen</fixVersion>
                    <fixVersion>Fluorine</fixVersion>
                                    <component>openflowplugin-impl</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="63386" author="vishnoianil@gmail.com" created="Mon, 11 Jun 2018 15:57:50 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=vpickard&quot; class=&quot;user-hover&quot; rel=&quot;vpickard&quot;&gt;vpickard&lt;/a&gt; &lt;a href=&quot;https://jira.opendaylight.org/browse/OPNFLWPLUG-970&quot; title=&quot;Unable to establish connections with switches after frequent connecting and disconnecting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OPNFLWPLUG-970&quot;&gt;&lt;del&gt;OPNFLWPLUG-970&lt;/del&gt;&lt;/a&gt; is similar issue and there are patches raised for that isuse for stable/carbon. We will cherry-pick it to stable/oxygen and probably you can test with those patch to see if this resolves the issue.&lt;/p&gt;</comment>
                            <comment id="63393" author="vpickard" created="Mon, 11 Jun 2018 16:47:37 +0000"  >&lt;p&gt;Anil,&lt;/p&gt;

&lt;p&gt;Thanks. I will test with the new changes once they are cherry-picked.&lt;/p&gt;

&lt;p&gt;Just FYI, I also saw the ConcurrentModificationException as noted in &lt;a href=&quot;https://jira.opendaylight.org/browse/OPNFLWPLUG-970&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.opendaylight.org/browse/OPNFLWPLUG-970&lt;/a&gt;,&#160;so would need&#160;&lt;/p&gt;

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

&lt;p&gt;to be cherry-picked as well.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

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

&lt;p&gt;Vic&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="63396" author="vpickard" created="Mon, 11 Jun 2018 19:06:07 +0000"  >&lt;p&gt;I cherry-picked the patches and did some local testing. I was not able to reproduce this issue with these patches, looks good. Thanks Anil!&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Vic&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="63397" author="vpickard" created="Mon, 11 Jun 2018 19:09:46 +0000"  >&lt;p&gt;Attached updated version of test script (test2.sh). I noticed that sometimes, after doing a set-controller, it took a little longer than usual for ovs to connect to odl. Updated script to account for those extra few seconds.&lt;/p&gt;</comment>
                            <comment id="63657" author="vishnoianil@gmail.com" created="Mon, 25 Jun 2018 15:44:13 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=vpickard&quot; class=&quot;user-hover&quot; rel=&quot;vpickard&quot;&gt;vpickard&lt;/a&gt; I think this issue is resolved? Can you open another&#160;Jira&#160; to trace the issue you mentioned and can you please provide the logs as&#160; well.&lt;/p&gt;</comment>
                            <comment id="63661" author="vpickard" created="Mon, 25 Jun 2018 15:51:21 +0000"  >&lt;p&gt;Anil,&lt;/p&gt;

&lt;p&gt;Yes, this issue is resolved with the 2 patches.&#160;&lt;/p&gt;

&lt;p&gt;The issue I mentioned (Exception) was also resolved by the patch, so no new issue to open Jira for.&lt;/p&gt;

&lt;p&gt;Should be good to mark this bug as resolved.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="29044">OPNFLWPLUG-970</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14675" name="karaf.log.debug" size="1423643" author="vpickard" created="Fri, 8 Jun 2018 19:52:24 +0000"/>
                            <attachment id="14676" name="ovs-vswitchd.log" size="1609885" author="vpickard" created="Fri, 8 Jun 2018 19:55:05 +0000"/>
                            <attachment id="14677" name="test.sh" size="901" author="vpickard" created="Fri, 8 Jun 2018 19:55:52 +0000"/>
                            <attachment id="14689" name="test2.sh" size="960" author="vpickard" created="Mon, 11 Jun 2018 19:07:30 +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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03fhj:</customfieldvalue>

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