<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:33:20 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-767] Switch connection bounce generates wrong entity owner in cluster env</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-767</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;Bouncing a switch connection produces stale entry in entity owner and further connection requests rejects.&lt;/p&gt;

&lt;p&gt;Karaf log with DEBUG is attached.&lt;/p&gt;

&lt;p&gt;BR/Luis&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="28035">OPNFLWPLUG-767</key>
            <summary>Switch connection bounce generates wrong entity owner in cluster env</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="ecelgp">Luis Gomez</assignee>
                                    <reporter username="ecelgp">Luis Gomez</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Sep 2016 23:47:54 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:54 +0000</updated>
                            <resolved>Fri, 9 Dec 2016 08:31:48 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="58303" author="ecelgp" created="Thu, 8 Sep 2016 23:47:54 +0000"  >&lt;p&gt;Attachment karaf_log_device_connection_bounce.txt has been added with description: Karaf log&lt;/p&gt;</comment>
                            <comment id="58292" author="ecelgp" created="Fri, 9 Sep 2016 02:05:57 +0000"  >&lt;p&gt;to reproduce the above:&lt;/p&gt;

&lt;p&gt;1) start mininet 1 switch (s1) pointing to any of the cluster instances (e.g. 192.168.0.101)&lt;br/&gt;
2) Run the following script in the mininet system to bounce connection quickly:&lt;/p&gt;

&lt;p&gt;#!/bin/bash&lt;br/&gt;
sudo ovs-vsctl del-controller s1&lt;br/&gt;
sleep 0.2&lt;br/&gt;
sudo ovs-vsctl set-controller s1 &quot;tcp:192.168.0.101&quot;&lt;/p&gt;</comment>
                            <comment id="58293" author="tomas.slusny@pantheon.tech" created="Tue, 13 Sep 2016 08:56:41 +0000"  >&lt;p&gt;Posted patch that will hopefully fix this issue: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/45526&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/45526&lt;/a&gt; . Luis, can you recheck it?&lt;/p&gt;</comment>
                            <comment id="58294" author="tomas.slusny@pantheon.tech" created="Tue, 13 Sep 2016 16:02:04 +0000"  >&lt;p&gt;So I partially fixed this issue with patch I posted earlier, but I think there is problem with Singleton (sometimes, it is sending SLAVE instead of MASTER) so I raised bug in mdsal here: &lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=6710&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=6710&lt;/a&gt; and added it as blocker for this issue.&lt;/p&gt;</comment>
                            <comment id="58295" author="tpantelis" created="Thu, 15 Sep 2016 17:41:44 +0000"  >&lt;p&gt;I see some NPEs:&lt;/p&gt;

&lt;p&gt;2016-09-08 23:35:05,409 | ERROR | pool-31-thread-1 | ExecutionList                    | 65 - com.google.guava - 18.0.0 | RuntimeException while executing runnable com.google.common.util.concurrent.Futures$6@66487d12 with executor INSTANCE&lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
	at org.opendaylight.openflowplugin.impl.device.DeviceContextImpl.shutdownConnection(DeviceContextImpl.java:568)&lt;/p&gt;

&lt;p&gt;but looks like that is fixed by Tomas&apos;s patch.&lt;/p&gt;

&lt;p&gt;The attached log is from member-1 which wasn&apos;t the EOS shard leader - member-2 was. When device connections were dropped, I see the candidates for the ServiceEntityType removed for member-3 and member-2. I don&apos;t see the candidate removed for member-1 - I assume that&apos;s not expected? Maybe the NPE prevented it? In any event, it seems member-1 remained as candidate and thus the owner. As far as the EOS is concerned, this is correct.&lt;/p&gt;

&lt;p&gt;I don&apos;t see any evidence of an entity with an owner that isn&apos;t a candidate as we saw in the CI test a couple weeks ago. However I did find an issue that can result in that scenario that I fixed with &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/45516/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/45516/&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="58296" author="tomas.slusny@pantheon.tech" created="Fri, 30 Sep 2016 11:25:52 +0000"  >&lt;p&gt;Added another patch on Gerrit: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/46321&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/46321&lt;/a&gt;&lt;br/&gt;
that will hopefully make unregistering process of cluster singleton services better and more stable, and that means that connection bounce will also work better.&lt;/p&gt;</comment>
                            <comment id="58297" author="tomas.slusny@pantheon.tech" created="Fri, 7 Oct 2016 13:19:04 +0000"  >&lt;p&gt;Gerrit: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/46390/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/46390/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This should fix all errors with fast connection and disconnection of device. This patch depends on this &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/45638/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/45638/&lt;/a&gt; patch in controller and this patch &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/46175/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/46175/&lt;/a&gt; in mdsal. After these 3 will be merged, I think everything should be fine.&lt;/p&gt;</comment>
                            <comment id="58298" author="ecelgp" created="Fri, 7 Oct 2016 19:28:35 +0000"  >&lt;p&gt;Thanks Tomas for spending time in this &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;</comment>
                            <comment id="58299" author="tomas.slusny@pantheon.tech" created="Thu, 13 Oct 2016 16:08:46 +0000"  >&lt;p&gt;So, both mdsal (&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/46175/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/46175/&lt;/a&gt;) and controller (&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/45638/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/45638/&lt;/a&gt;) changes what was required to solve this issue (and other related) issues was merged in master. So if you can Luis, can you test this connection bounce on my patch (&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/46390/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/46390/&lt;/a&gt;) if it is really working?&lt;/p&gt;</comment>
                            <comment id="58300" author="ecelgp" created="Mon, 24 Oct 2016 16:58:12 +0000"  >&lt;p&gt;I am testing your patch today, I will let you know the results.&lt;/p&gt;</comment>
                            <comment id="58301" author="shuva.jyoti.kar.87@gmail.com" created="Thu, 8 Dec 2016 18:16:19 +0000"  >&lt;p&gt;(In reply to Luis Gomez from comment #9)&lt;br/&gt;
&amp;gt; I am testing your patch today, I will let you know the results.&lt;/p&gt;

&lt;p&gt;Luis , any updates on this ?&lt;/p&gt;</comment>
                            <comment id="58302" author="ecelgp" created="Fri, 9 Dec 2016 08:31:48 +0000"  >&lt;p&gt;This is fixed now.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="27019">MDSAL-197</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14083" name="karaf_log_device_connection_bounce.txt" size="99897" author="ecelgp@gmail.com" created="Thu, 8 Sep 2016 23:47:54 +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>6672</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=6672]]></customfieldvalue>

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

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

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