<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:53 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>[NETCONF-784] ReconnectPromise keep reconnecting after device unregistered</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-784</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;In a netconf device connection failure situation, user may unregister (unmount) the netconf device and try to re-add the device in order to recover. However netconf-connector cannot establish session and &quot;Mount point already exists&quot; error recorded in karaf log.&lt;/p&gt;

&lt;p&gt;From karaf log ReconnectPromise try to reconnect again even if the device was unregistered from topology. It seems that unmounting does not clean up resources properly so an orphaned thread keeps working in background.&lt;/p&gt;

&lt;p&gt;This issue does not always happen, but one of the reproducible case is missing certificate in keystore.&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;Confirmedversion&quot;&gt;&lt;/a&gt;Confirmed version&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Sodium-SR4 (embedded in ONAP Guilin)&lt;/li&gt;
	&lt;li&gt;Silicon-SR0&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;&lt;a name=&quot;Stepstoreproduce&quot;&gt;&lt;/a&gt;Steps to reproduce&lt;/h3&gt;
&lt;ol&gt;
	&lt;li&gt;install odl-netconf and odl-restconf features&lt;/li&gt;
	&lt;li&gt;register netconf device using TLS without adding certificate to keystore&lt;/li&gt;
	&lt;li&gt;connection-status become &apos;unable-to-connect&apos; and message is &apos;No keystore private key found&apos; (expected behavior)&lt;/li&gt;
	&lt;li&gt;Unregister the netconf device&lt;/li&gt;
	&lt;li&gt;the device is removed from netconf-topology, but ReconnectPromise / NetconfSessionPromise remain working and keep trying to reconnect (can be seen in log)&lt;/li&gt;
	&lt;li&gt;add device certificates to keystore&lt;/li&gt;
	&lt;li&gt;register netconf device again&lt;/li&gt;
	&lt;li&gt;connection-status is &apos;connecting&apos;&lt;/li&gt;
	&lt;li&gt;after that, try unregister / register more times but status never become &apos;connected&apos;.&lt;br/&gt;
 user has to restart karaf to recover the connection.&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="34107">NETCONF-784</key>
            <summary>ReconnectPromise keep reconnecting after device unregistered</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="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="s4fujii">Satoshi Fujii</assignee>
                                    <reporter username="s4fujii">Satoshi Fujii</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Jun 2021 06:02:39 +0000</created>
                <updated>Thu, 18 Nov 2021 11:43:25 +0000</updated>
                            <resolved>Thu, 16 Sep 2021 10:40:13 +0000</resolved>
                                                    <fixVersion>2.0.4</fixVersion>
                    <fixVersion>1.13.6</fixVersion>
                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="34911">NETCONF-830</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="31699">NETCONF-621</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03yc7:</customfieldvalue>

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