<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:21:33 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-438] Cleanup Elan instances when a network is deleted</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-438</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;Currently after creating some resources and deleting them, the ELAN instance(s) that were created in this process are not getting cleaned up.&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;br/&gt;
1. In a fresh installation create a tenant neutron network, subnet and router.&lt;br/&gt;
2. Associate the subnet to the neutron router.&lt;br/&gt;
3. In karaf cli, check the ELAN instances.&lt;br/&gt;
   opendaylight-user@root&amp;gt;elan:show &lt;br/&gt;
4. You would see an ELAN instance created for the resources.&lt;br/&gt;
5. Now dissociate the tenant subnet from neutron router, delete the router, network and subnet.&lt;br/&gt;
6. Check elan instances.&lt;br/&gt;
   You will see the same output as in Step 3 above.&lt;/p&gt;

&lt;p&gt;Expected behavior:&lt;br/&gt;
The ELAN instances should have been deleted.&lt;/p&gt;

&lt;p&gt;Along with this, the following exception is logged in karaf.&lt;br/&gt;
2017-01-17 16:30:12,135 | ERROR | pool-43-thread-1 | InterfacemgrProvider             | 335 - org.opendaylight.genius.interfacemanager-impl - 0.1.2.Boron-SR2 | Interface b1c4af31-b2eb-4cb7-8aff-f67fdbd1e8ac is not present&lt;br/&gt;
Exception in thread &quot;pool-43-thread-1&quot; java.lang.NullPointerException&lt;br/&gt;
        at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)&lt;br/&gt;
        at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:964)&lt;br/&gt;
        at java.util.Collections$SetFromMap.contains(Collections.java:5459)&lt;br/&gt;
        at org.opendaylight.netvirt.neutronvpn.NeutronvpnUtils.isNetworkTypeSupported(NeutronvpnUtils.java:975)&lt;br/&gt;
        at org.opendaylight.netvirt.neutronvpn.NeutronNetworkChangeListener.remove(NeutronNetworkChangeListener.java:101)&lt;br/&gt;
        at org.opendaylight.netvirt.neutronvpn.NeutronNetworkChangeListener.remove(NeutronNetworkChangeListener.java:34)&lt;br/&gt;
        at org.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase$DataTreeChangeHandler.run(AsyncDataTreeChangeListenerBase.java:129)&lt;br/&gt;
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;br/&gt;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;br/&gt;
        at java.lang.Thread.run(Thread.java:745)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="20359">NETVIRT-438</key>
            <summary>Cleanup Elan instances when a network is deleted</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="SridharG">Sridhar Gaddam</assignee>
                                    <reporter username="SridharG">Sridhar Gaddam</reporter>
                        <labels>
                    </labels>
                <created>Thu, 19 Jan 2017 14:44:01 +0000</created>
                <updated>Mon, 25 Jun 2018 16:11:02 +0000</updated>
                            <resolved>Fri, 10 Mar 2017 14:27:32 +0000</resolved>
                                    <version>Carbon</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="37133" author="sgaddam@redhat.com" created="Thu, 19 Jan 2017 14:58:41 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/50673/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/50673/2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="37134" author="sgaddam@redhat.com" created="Tue, 24 Jan 2017 14:34:26 +0000"  >&lt;p&gt;Additional notes: @Mike had a brief look at this issue to check if its networking-odl or neutron that is deleting the networkType() attribute prior to network delete event. &lt;/p&gt;

&lt;p&gt;He narrowed down the issue to the following patch in Neutron that introduced this issue &lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;.&lt;br/&gt;
So the issue would be seen if we use stable/newton (or later).&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://review.openstack.org/#/c/317358/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.openstack.org/#/c/317358/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="29249">NETVIRT-1112</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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>7601</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=7601]]></customfieldvalue>

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

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