<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:00: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>[GENIUS-254] default tunnels are down and/or missing from config</title>
                <link>https://jira.opendaylight.org/browse/GENIUS-254</link>
                <project id="10126" key="GENIUS">genius</project>
                    <description>&lt;p&gt;In approximately 1 in 30 jobs, the suite setups is failing because the odltools check&lt;br/&gt;
to verify default tunnels are up is not passing.&lt;/p&gt;

&lt;p&gt;example output:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
2018-12-09 08:33:29,241 | ERR | common.rest_client   | 0052 | 404 Client Error: Not Found &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; url: http:&lt;span class=&quot;code-comment&quot;&gt;//192.0.2.19:8081/restconf/config/itm-state:dpn-teps-state
&lt;/span&gt;Analysing transport-zone:&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;-transport-zone
..TerminationPoint tun9c586aac495 between 192.0.2.19 and 192.0.2.5 missing from config
..Interface tuna642e00a5c1 is down between 192.0.2.5 and 192.0.2.19
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Examples:&lt;br/&gt;
&lt;a href=&quot;https://logs.opendaylight.org/sandbox/vex-yul-odl-jenkins-2/jamo-netvirt-csit-1node-0cmb-1ctl-2cmp-apex-queens-gate-snat-conntrack-oxygen/27/robot-plugin/log_full.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;one&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://logs.opendaylight.org/sandbox/vex-yul-odl-jenkins-2/jamo-netvirt-csit-1node-0cmb-1ctl-2cmp-apex-queens-gate-snat-conntrack-oxygen/48/robot-plugin/log_full.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;two &lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/builder-copy-sandbox-logs/554/jamo-netvirt-csit-1node-0cmb-1ctl-2cmp-apex-queens-gate-snat-conntrack-neon/31/robot-plugin/log_full.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;three &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Note that jobs 1 and 2 will be purged in a week, but infra is stopping me from copying logs to the logs server at the moment&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="31181">GENIUS-254</key>
            <summary>default tunnels are down and/or missing from config</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="10004" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Verified</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="enidadh">nidhi adhvaryu</assignee>
                                    <reporter username="jluhrsen">Jamo Luhrsen</reporter>
                        <labels>
                            <label>apex:gate</label>
                            <label>csit:failures</label>
                    </labels>
                <created>Mon, 10 Dec 2018 18:05:55 +0000</created>
                <updated>Thu, 13 Jun 2019 04:45:24 +0000</updated>
                            <resolved>Thu, 13 Jun 2019 04:45:13 +0000</resolved>
                                                    <fixVersion>Sodium</fixVersion>
                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                    <progress percentage="100">
                                    <originalProgress>
                                                    <row percentage="0" backgroundColor="#89afd7"/>
                                                    <row percentage="100" backgroundColor="transparent"/>
                                            </originalProgress>
                                                    <currentProgress>
                                                    <row percentage="100" backgroundColor="#51a825"/>
                                                    <row percentage="0" backgroundColor="#ec8e00"/>
                                            </currentProgress>
                            </progress>
                                    <aggregateprogress percentage="100">
                                    <originalProgress>
                                                    <row percentage="0" backgroundColor="#89afd7"/>
                                                    <row percentage="100" backgroundColor="transparent"/>
                                            </originalProgress>
                                                    <currentProgress>
                                                    <row percentage="100" backgroundColor="#51a825"/>
                                                    <row percentage="0" backgroundColor="#ec8e00"/>
                                            </currentProgress>
                            </aggregateprogress>
                                            <timeestimate seconds="0">0 minutes</timeestimate>
                            <timespent seconds="28800">1 day</timespent>
                                <comments>
                            <comment id="65941" author="jluhrsen" created="Mon, 10 Dec 2018 18:07:01 +0000"  >&lt;p&gt;&lt;a href=&quot;https://lists.opendaylight.org/pipermail/genius-dev/2018-December/003504.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;email thread &lt;/a&gt; discussing this problem&lt;/p&gt;</comment>
                            <comment id="65950" author="jluhrsen" created="Tue, 11 Dec 2018 05:35:07 +0000"  >&lt;p&gt;&lt;a href=&quot;https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/builder-copy-sandbox-logs/559/jamo-netvirt-csit-1node-0cmb-1ctl-2cmp-apex-queens-gate-snat-conntrack-oxygen/74/robot-plugin/log_full.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;another example &lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="66029" author="thapar" created="Mon, 17 Dec 2018 15:29:08 +0000"  >&lt;p&gt;Since this is NETVIRT Issue, will be fixed as &lt;a href=&quot;https://jira.opendaylight.org/browse/NETVIRT-1541&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.opendaylight.org/browse/NETVIRT-1541&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="66175" author="thapar" created="Sun, 13 Jan 2019 10:36:06 +0000"  >&lt;p&gt;Saw a different variation of the issue with bug in genius&lt;/p&gt;</comment>
                            <comment id="66176" author="thapar" created="Sun, 13 Jan 2019 10:48:50 +0000"  >&lt;p&gt;While testing &lt;a href=&quot;https://jira.opendaylight.org/browse/NETVIRT-1541&quot; title=&quot; Default Tunnels deleted from config&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETVIRT-1541&quot;&gt;&lt;del&gt;NETVIRT-1541&lt;/del&gt;&lt;/a&gt; fixes, ran into another variation of this bug in d/s testing, this time in Genius.&lt;/p&gt;

&lt;p&gt; tunea6b6a44e1b is not created. This is what sequence of log entries looks like:&lt;/p&gt;

&lt;p&gt;2019-01-11T07:46:30,224 | INFO  | nioEventLoopGroup-9-9 | opendaylight.openflowplugin.impl.device.initialization.OF13DeviceInitializer | Static node openflow:9444498845632 info: OFPMPPORTDESC collected&lt;br/&gt;
2019-01-11T07:46:30,226 | DEBUG | ForkJoinPool-1-worker-5 | org.opendaylight.genius.interfacemanager.listeners.InterfaceTopologyStateListener | Bridge entry not found in config DS for dpn: 154706290356175&lt;br/&gt;
2019-01-11T07:46:30,226 | INFO  | ForkJoinPool-1-worker-5 | genius.interfacemanager.renderer.ovs.confighelpers.OvsInterfaceConfigAddHelper | adding tunnel configuration for interface tunea6b6a44e1b&lt;br/&gt;
2019-01-11T07:46:30,227 | DEBUG | ForkJoinPool-1-worker-5 | genius.interfacemanager.renderer.ovs.confighelpers.OvsInterfaceConfigAddHelper | creating bridge interfaceEntry in ConfigDS 154706290356175&lt;/p&gt;

&lt;p&gt;No further references to this tunnel after this.&lt;/p&gt;

&lt;p&gt;This is what they look like for a tunnel that gets created:&lt;/p&gt;

&lt;p&gt;2019-01-11T07:46:30,208 | INFO  | ForkJoinPool-1-worker-2 | genius.interfacemanager.renderer.ovs.confighelpers.OvsInterfaceConfigAddHelper | adding tunnel configuration for interface tun4fab841ac4e&lt;br/&gt;
2019-01-11T07:46:30,208 | DEBUG | ForkJoinPool-1-worker-2 | genius.interfacemanager.renderer.ovs.confighelpers.OvsInterfaceConfigAddHelper | creating bridge interfaceEntry in ConfigDS 9444498845632&lt;br/&gt;
&lt;font color=&quot;#14892c&quot;&gt;2019-01-11T07:46:30,209 | DEBUG | ForkJoinPool-1-worker-2 | genius.interfacemanager.renderer.ovs.confighelpers.OvsInterfaceConfigAddHelper | creating bridge interface on dpn 9444498845632&lt;/font&gt;&lt;br/&gt;
2019-01-11T07:46:30,209 | DEBUG | ForkJoinPool-1-worker-2 | genius.interfacemanager.renderer.ovs.utilities.SouthboundUtils | adding tunnel port tun4fab841ac4e to bridge InstanceIdentifier&lt;/p&gt;

&lt;p&gt;The highlighted log entry in second is missing from first.&lt;/p&gt;

&lt;p&gt;Looking at the code, following check is failing&lt;/p&gt;

&lt;p&gt;        LOG.debug(&quot;creating bridge interfaceEntry in ConfigDS {}&quot;, dpId);&lt;br/&gt;
        interfaceMetaUtils.createBridgeInterfaceEntryInConfigDS(dpId, interfaceNew.getName());&lt;/p&gt;

&lt;p&gt;        // create bridge on switch, if switch is connected&lt;br/&gt;
        BridgeRefEntry bridgeRefEntry = interfaceMetaUtils.getBridgeRefEntryFromOperDS(dpId);&lt;br/&gt;
&lt;font color=&quot;#d04437&quot;&gt;        if (bridgeRefEntry != null &amp;amp;&amp;amp; bridgeRefEntry.getBridgeReference() != null) {&lt;/font&gt;&lt;br/&gt;
            LOG.debug(&quot;creating bridge interface on dpn {}&quot;, dpId);&lt;/p&gt;

&lt;p&gt;This means bridgeRefEntry is missing, even though it was created couple log entries before the one above:&lt;/p&gt;

&lt;p&gt;2019-01-11T07:46:30,216 | DEBUG | ForkJoinPool-1-worker-5 | org.opendaylight.genius.interfacemanager.commons.InterfaceMetaUtils | Creating bridge ref entry for dpn: 154706290356175 bridge: &lt;/p&gt;

&lt;p&gt;For reference, this is log entry for bridgeRefEntry for the working case:&lt;/p&gt;

&lt;p&gt;2019-01-11T07:46:29,351 | DEBUG | ForkJoinPool-1-worker-4 | org.opendaylight.genius.interfacemanager.commons.InterfaceMetaUtils | Creating bridge ref entry for dpn: 9444498845632 bridge: &lt;/p&gt;

&lt;p&gt;In working there is a gap of about 1s between two. In failure case it is less than 10ms.&lt;/p&gt;</comment>
                            <comment id="66177" author="thapar" created="Mon, 14 Jan 2019 03:16:58 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=k.faseela&quot; class=&quot;user-hover&quot; rel=&quot;k.faseela&quot;&gt;k.faseela&lt;/a&gt; Issue is tunnel missing from OVSDB config. From log entries I shared you can see ITM never pushes the tunnel to OVSDB config and have pointed out what I think is the race condition. Any suggestions on fix?&lt;/p&gt;</comment>
                            <comment id="66203" author="faseela.k@ericsson.com" created="Wed, 16 Jan 2019 04:41:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=thapar&quot; class=&quot;user-hover&quot; rel=&quot;thapar&quot;&gt;thapar&lt;/a&gt; : Got the issue, let me think about an easy way to fix this.&lt;/p&gt;</comment>
                            <comment id="66204" author="jluhrsen" created="Wed, 16 Jan 2019 05:06:27 +0000"  >&lt;p&gt;great &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;  what&apos;s the TL;DR on the root cause?&lt;/p&gt;</comment>
                            <comment id="66205" author="thapar" created="Wed, 16 Jan 2019 05:51:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=jluhrsen&quot; class=&quot;user-hover&quot; rel=&quot;jluhrsen&quot;&gt;jluhrsen&lt;/a&gt; Race condition. Genius stores BridgeRefEntry that maps a bridge to its corresponding DPNID. It gets populated when bridge is created or switch first connects, whichever is latter. Tunnels creation trigger is also same but different part of code. Due to extra steps in tunnel creation, we mostly have this entry in place before we get to point where we try creating tunnel port. But in this case by the time we read it is not present yet. It might have something to do with changes done as part of tx runner that we&apos;re hitting this race more frequently.&lt;/p&gt;</comment>
                            <comment id="66206" author="faseela.k@ericsson.com" created="Wed, 16 Jan 2019 06:18:15 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=thapar&quot; class=&quot;user-hover&quot; rel=&quot;thapar&quot;&gt;thapar&lt;/a&gt; : Here is an overall idea of the fix I want to try out.&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;FYI, not tested yet.&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="66232" author="faseela.k@ericsson.com" created="Thu, 17 Jan 2019 14:53:16 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=thapar&quot; class=&quot;user-hover&quot; rel=&quot;thapar&quot;&gt;thapar&lt;/a&gt;/&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=jluhrsen&quot; class=&quot;user-hover&quot; rel=&quot;jluhrsen&quot;&gt;jluhrsen&lt;/a&gt; : Is it possible to run the patch against netvirt CSIT couple of times to see if the issue is not reproducible now? Have done local testing to make sure the patch is not breaking anything, but couldn&apos;t really hit the race condition timings to see if that problem is solved.&lt;/p&gt;</comment>
                            <comment id="66235" author="jluhrsen" created="Thu, 17 Jan 2019 16:51:29 +0000"  >&lt;p&gt;this gerrit keyword should trigger the 3node job: &quot;test-genius-cluster-netvirt&quot;&lt;br/&gt;
I triggered it once just now.&lt;/p&gt;</comment>
                            <comment id="66840" author="enidadh" created="Fri, 31 May 2019 06:57:15 +0000"  >&lt;p&gt;For ITM also we have added a similar fix.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/81980/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/81980/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="66892" author="enidadh" created="Thu, 13 Jun 2019 04:45:13 +0000"  >&lt;p&gt;The fix for this issue has been merged here,&#160;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/81980/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/81980/&lt;/a&gt;&#160;for ITM.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15084" name="karaf-1.tar.xz" size="417168" author="thapar" created="Sun, 13 Jan 2019 10:49:04 +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|i03ldz:</customfieldvalue>

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