<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:21:29 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>[NETVIRT-410] Autobridge creation overwrites DPNID if bridge already exists</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-410</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;Autobridge Creation code in ElanManager has a check where it checks if bridge already exists an if it doesn&apos;t it creates it. However this check isn&apos;t working. If bridge was already present on OVS &lt;span class=&quot;error&quot;&gt;&amp;#91;created manually before connecting&amp;#93;&lt;/span&gt;, autobrige logic recreates and overwrites the existing DPNID as generatedMac is set to true.&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;br/&gt;
-------------------&lt;br/&gt;
1. Create &apos;br-int&apos; on OVS.&lt;br/&gt;
2. Run &apos;sudo ovs-ofctl show br-int -OOpenflow13 |head -1&apos; to get the DPNID.&lt;br/&gt;
3. Do &apos;ovs-vsctl set-manager&apos;&lt;br/&gt;
4. Run &apos;sudo ovs-ofctl show br-int -OOpenflow13 |head -1&apos; to get the DPNID again.&lt;/p&gt;

&lt;p&gt;Currently DPNID in step 2 and 4 is different when it should be same.&lt;/p&gt;

&lt;p&gt;The bug is in following code in ElanBridgeManager::addBridge():&lt;/p&gt;

&lt;p&gt;    public boolean addBridge(Node ovsdbNode, String bridgeName, String mac) {&lt;br/&gt;
        boolean rv = true;&lt;br/&gt;
        if (!southboundUtils.isBridgeOnOvsdbNode(ovsdbNode, bridgeName)&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; southboundUtils.getBridgeFromConfig(ovsdbNode, bridgeName) == null) 
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {            Class&amp;lt;? extends DatapathTypeBase&amp;gt; dpType = null;            if (isUserSpaceEnabled()) {
                dpType = DatapathTypeNetdev.class;
            }            rv = southboundUtils.addBridge(ovsdbNode, bridgeName,                    southboundUtils.getControllersFromOvsdbNode(ovsdbNode), dpType, mac);        }&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;        return rv;&lt;br/&gt;
    }&lt;/p&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;Currently it checks if bridge doesn&apos;t exist in operational or isn&apos;t configured in config. In this particular case, it is present in operational but not configured, so the IF condition is ALWAYS TRUE. It should be &amp;amp;&amp;amp; instead of ||.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="20331">NETVIRT-410</key>
            <summary>Autobridge creation overwrites DPNID if bridge already exists</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="thapar">Vishal Thapar</assignee>
                                    <reporter username="thapar">Vishal Thapar</reporter>
                        <labels>
                    </labels>
                <created>Sun, 8 Jan 2017 08:19:16 +0000</created>
                <updated>Mon, 30 Oct 2017 19:53:31 +0000</updated>
                            <resolved>Mon, 29 May 2017 07:38:09 +0000</resolved>
                                    <version>Boron</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="37079" author="thapar" created="Sun, 8 Jan 2017 11:21:18 +0000"  >&lt;p&gt;Master: &lt;a href=&quot;https://git.opendaylight.org/gerrit/50112&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/50112&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="37080" author="koby.aizer@hpe.com" created="Thu, 12 Jan 2017 06:48:51 +0000"  >&lt;p&gt;Raising bug to critical as this is causing tunneling issues after ODL node failures in clustering suite&lt;/p&gt;</comment>
                            <comment id="37081" author="thapar" created="Mon, 30 Jan 2017 05:24:08 +0000"  >&lt;p&gt;Re-opening as it is still an issue. Even without mac change any existing configured datapath-id gets overwritten because autobridge creation logic overwrites any existing other_config, which includes datapath-id. Proper fix would require retaining config from existing bridge and only add to it but that change will be more intrusive. Also, there should be an option to disable auto-bridge altogether.&lt;/p&gt;</comment>
                            <comment id="37082" author="thapar" created="Mon, 29 May 2017 07:38:09 +0000"  >&lt;p&gt;Fully fixed by &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/53857/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/53857/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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>7488</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=7488]]></customfieldvalue>

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

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