<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:04:18 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>[INTTEST-6] Leader election takes too long after shutdown instance starts</title>
                <link>https://jira.opendaylight.org/browse/INTTEST-6</link>
                <project id="10189" key="INTTEST">integration-test</project>
                    <description>&lt;p&gt;This is occurring sporadically in the cluster system test:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins.opendaylight.org/releng/view/CSIT-3node/job/controller-csit-3node-clustering-only-beryllium/565/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/view/CSIT-3node/job/controller-csit-3node-clustering-only-beryllium/565/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See karaf attached log excerpt for the instance start. After 5 mins the leader is not elected in this partcular instance.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="19358">INTTEST-6</key>
            <summary>Leader election takes too long after shutdown instance starts</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>Tue, 9 Feb 2016 18:13:16 +0000</created>
                <updated>Thu, 19 Oct 2017 22:33:49 +0000</updated>
                            <resolved>Thu, 25 Feb 2016 10:46:32 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="35044" author="ecelgp" created="Tue, 9 Feb 2016 18:13:16 +0000"  >&lt;p&gt;Attachment node_start.txt has been added with description: karaf log node start&lt;/p&gt;</comment>
                            <comment id="35032" author="ecelgp" created="Tue, 9 Feb 2016 18:19:51 +0000"  >&lt;p&gt;Full karaf log for the failing instance is in odl1_karaf.log.xz	file of the mentioned job run:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins.opendaylight.org/releng/view/CSIT-3node/job/controller-csit-3node-clustering-only-beryllium/565/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/view/CSIT-3node/job/controller-csit-3node-clustering-only-beryllium/565/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="35033" author="tpantelis" created="Wed, 10 Feb 2016 14:46:29 +0000"  >&lt;p&gt;At the start of &quot;030 Car Failover Crud On New Leader&quot;, odl1 (member-1 @ 10.30.11.161) was the leader. The test stops the leader and leadership transitioned to odl3 (member-3 @ 10.30.11.142). The test then does some CRUD with the remaining 2 nodes and then restarts the previous leader odl1. &lt;/p&gt;

&lt;p&gt;odl1 started up at:&lt;/p&gt;

&lt;p&gt;2016-02-08 13:28:10,994 | INFO  | ult-dispatcher-2 | kka://opendaylight-cluster-data) | 129 - com.typesafe.akka.slf4j - 2.3.14 | Cluster Node &lt;span class=&quot;error&quot;&gt;&amp;#91;akka.tcp://opendaylight-cluster-data@10.30.11.161:2550&amp;#93;&lt;/span&gt; - Starting up...&lt;/p&gt;

&lt;p&gt;and then joined itself and declared itself as cluster leader at:&lt;/p&gt;

&lt;p&gt;2016-02-08 13:28:16,074 | INFO  | lt-dispatcher-23 | kka://opendaylight-cluster-data) | 129 - com.typesafe.akka.slf4j - 2.3.14 | Cluster Node &lt;span class=&quot;error&quot;&gt;&amp;#91;akka.tcp://opendaylight-cluster-data@10.30.11.161:2550&amp;#93;&lt;/span&gt; - Node &lt;span class=&quot;error&quot;&gt;&amp;#91;akka.tcp://opendaylight-cluster-data@10.30.11.161:2550&amp;#93;&lt;/span&gt; is JOINING, roles &lt;span class=&quot;error&quot;&gt;&amp;#91;member-1&amp;#93;&lt;/span&gt;&lt;br/&gt;
2016-02-08 13:28:17,062 | INFO  | lt-dispatcher-23 | kka://opendaylight-cluster-data) | 129 - com.typesafe.akka.slf4j - 2.3.14 | Cluster Node &lt;span class=&quot;error&quot;&gt;&amp;#91;akka.tcp://opendaylight-cluster-data@10.30.11.161:2550&amp;#93;&lt;/span&gt; - Leader is moving node &lt;span class=&quot;error&quot;&gt;&amp;#91;akka.tcp://opendaylight-cluster-data@10.30.11.161:2550&amp;#93;&lt;/span&gt; to &lt;span class=&quot;error&quot;&gt;&amp;#91;Up&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;So odl1 didn&apos;t connect to odl3 and formed an island with itself as leader. This is b/c odl1 is the first seed node and akka has special behavior wrt first seed node. It will first try to connect to another seed node and, failing that, it declares itself leader. This is governed by the seed-node-timeout setting which is 5s by default. We had seen this issue before and had changed the seed-node-timeout to 12s in the akka.conf we ship. It looks like the tests are still using the default 5s judging from the timestamps above. I believe the deployment script copies over its own akka.conf so akka.conf template needs to be updated to the latest. It would be nice if the tests could get the latest akka.conf from the build and substitute the appropriate settings on the fly so we don&apos;t keep running into issues with a stale akka.conf.&lt;/p&gt;</comment>
                            <comment id="35034" author="tpantelis" created="Wed, 10 Feb 2016 15:25:41 +0000"  >&lt;p&gt;Wrt stale akka.conf, this will happen in real environments on upgrade. What we need is a factory akka.conf that we overwrite on feature install and a custom akka.conf that users modify and we preserve. The custom akka.conf would be overlaid/merged with the factory akka.conf. We can do this for Bo and maybe backport to Be SR1.&lt;/p&gt;</comment>
                            <comment id="35035" author="ecelgp" created="Wed, 10 Feb 2016 20:04:46 +0000"  >&lt;p&gt;Good comments Tom, I think we will have to change the way the cluster files are fed into the deploy job, moving this to integration bugzilla.&lt;/p&gt;</comment>
                            <comment id="35036" author="tpantelis" created="Wed, 10 Feb 2016 20:11:02 +0000"  >&lt;p&gt;For now you can just update the akka.conf template to match what we ship in the controller.&lt;/p&gt;

&lt;p&gt;Going forward we can implement the factory/custom approach I mentioned so the tests would pickup factory changes automatically. So you don&apos;t need to invest any time to do something like that in the test framework. The akka.conf doesn&apos;t change that often anyway.&lt;/p&gt;</comment>
                            <comment id="35037" author="ecelgp" created="Wed, 10 Feb 2016 22:28:34 +0000"  >&lt;p&gt;Right, short term (today) we will update the templates in integration. Medium term (after Be release) we will update deploy scripts to use distribution scripts.&lt;/p&gt;</comment>
                            <comment id="35038" author="ecelgp" created="Wed, 10 Feb 2016 23:12:17 +0000"  >&lt;p&gt;So after looking at the cluster deploy scripts, they use (now I rememeber shaleen changed this) the right templates from the distribution itself:&lt;/p&gt;

&lt;p&gt;AKKACONF=/tmp/${BUNDLEFOLDER}/configuration/initial/akka.conf&lt;br/&gt;
MODULESCONF=/tmp/${BUNDLEFOLDER}/configuration/initial/modules.conf&lt;br/&gt;
MODULESHARDSCONF=/tmp/${BUNDLEFOLDER}/configuration/initial/module-shards.conf&lt;/p&gt;

&lt;p&gt;This means the issues is still there with the right cluster templates, so returning this bug to controller.&lt;/p&gt;</comment>
                            <comment id="35039" author="tpantelis" created="Wed, 10 Feb 2016 23:58:49 +0000"  >&lt;p&gt;I don&apos;t think it is. The seed-node-timeout is set to 12s in the akk.conf we ship. The timestamps from the log indicate akka only waited 5s (13:28:10,994 -&amp;gt; 13:28:16,074 ~ 5 sec). I would suggest checking the seed-node-timeout setting in the akka.conf on each node after deploy.&lt;/p&gt;</comment>
                            <comment id="35040" author="ecelgp" created="Thu, 11 Feb 2016 02:56:47 +0000"  >&lt;p&gt;You are right, after deeper look we are still using integration templates for this. So changing the bug to me. Sorry for the ping-pong.&lt;/p&gt;

&lt;p&gt;BR/Luis&lt;/p&gt;</comment>
                            <comment id="35041" author="tpantelis" created="Thu, 11 Feb 2016 03:13:27 +0000"  >&lt;p&gt;NP - as long as we get it right in the end &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;(In reply to Luis Gomez from comment #9)&lt;br/&gt;
&amp;gt; You are right, after deeper look we are still using integration templates&lt;br/&gt;
&amp;gt; for this. So changing the bug to me. Sorry for the ping-pong.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; BR/Luis&lt;/p&gt;</comment>
                            <comment id="35042" author="ecelgp" created="Thu, 11 Feb 2016 03:25:05 +0000"  >&lt;p&gt;Tom, can you please review this:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/34432&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/34432&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="35043" author="vrpolak" created="Thu, 25 Feb 2016 10:46:32 +0000"  >&lt;p&gt;&amp;gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/34432&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/34432&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Merged, so setting as FIXED.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12103" name="node_start.txt" size="586483" author="ecelgp@gmail.com" created="Tue, 9 Feb 2016 18:13:16 +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|i01lmf:</customfieldvalue>

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