<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:16: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>[NETCONF-942] Callhome session is closed after allowing device to connect</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-942</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;Netconf Callhome session is closed after adding device to allowed-devices container. Device will not be connected and callhome-status is staying in state DISCONNECTED.&lt;/p&gt;

&lt;p&gt;ODL Logs will stay in cycle with reconnecting device:&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;
17:21:52.119 INFO [qtp1390078279-811] Authentication is now enabled
17:21:52.119 INFO [qtp1390078279-811] Authentication Manager activated
17:21:52.169 INFO [qtp1390078279-811] Consecutive slashes in REST URLs will be rejected
17:22:15.187 INFO [opendaylight-cluster-data-notification-dispatcher-42] Using lazy population &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; maps larger than 1 element(s)
17:23:25.853 INFO [nioEventLoopGroup-4-3] Instantiated factory &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;class &lt;/span&gt;org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone
17:23:25.853 INFO [nioEventLoopGroup-4-3] Instantiated factory &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;class &lt;/span&gt;org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix
17:23:25.854 INFO [nioEventLoopGroup-4-3] Instantiated factory &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;class &lt;/span&gt;org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone
17:23:25.855 INFO [nioEventLoopGroup-4-3] Instantiated factory &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;class &lt;/span&gt;org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix
17:23:25.861 INFO [nioEventLoopGroup-4-3] Provisioning fake config Node{nodeId=Uri{value=netopeer}, augmentation=[NetconfNode{actorResponseWaitTime=5, betweenAttemptsTimeoutMillis=2000, concurrentRpcLimit=0, connectionTimeoutMillis=20000, credentials=LoginPassword{password=omitted, username=omitted}, defaultRequestTimeoutMillis=60000, host=Host{ipAddress=IpAddress{ipv4Address=Ipv4Address{value=172.17.0.2}}}, keepaliveDelay=120, maxConnectionAttempts=0, port=PortNumber{value=45740}, protocol=Protocol{name=SSH}, reconnectOnChangedSchema=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, schemaless=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, sleepFactor=1.5, tcpOnly=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;}]}
17:23:25.862 INFO [nioEventLoopGroup-4-3] Connecting RemoteDevice{Uri{value=netopeer}} , with config Node{nodeId=Uri{value=netopeer}, augmentation=[NetconfNode{actorResponseWaitTime=5, betweenAttemptsTimeoutMillis=2000, concurrentRpcLimit=0, connectionTimeoutMillis=20000, credentials=***, defaultRequestTimeoutMillis=60000, host=Host{ipAddress=IpAddress{ipv4Address=Ipv4Address{value=172.17.0.2}}}, keepaliveDelay=120, maxConnectionAttempts=0, port=PortNumber{value=45740}, protocol=Protocol{name=SSH}, reconnectOnChangedSchema=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, schemaless=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, sleepFactor=1.5, tcpOnly=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;}]}
17:23:25.865 WARN [nioEventLoopGroup-4-3] notifyListener(DefaultOpenFuture[id=ChannelSubsystem[id=0, recipient=-1]-ClientSessionImpl[netconf@/172.17.0.2:45740][netconf]][value=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;]) failed (NoSuchElementException) to invoke org.opendaylight.netconf.callhome.protocol.CallHomeSessionContext$$Lambda$2749/0x00000007c1161b18@3fbb462a: Value of lockdatastore is not present
17:24:26.910 ERROR [nioEventLoopGroup-4-4] Server Host Key/Certificate RSA Public Key [16:9b:98:7b:59:3b:95:67:57:2b:86:a2:0a:2c:e9:fe:56:40:67:be],[56:66:d1:a4]
&#160; &#160; &#160; &#160; modulus: c6d1bd28fcc7b3605326b0aaf41ee5da08ad2969d0f002da3bd9f06d601734b625a1cd9988db6eaea985efc3da436c75fe9a0510bd790c79f0eabcb5b03ac4992429f872ae6f8f9acf478ee68503b767819e6bd308e294b9508d6da1c04c4d083ed0c644cefad809faf38857fa94a8b70a25587717b930eec6c7d05f525a05c24b5a3edebc2be4f89f47fad1d13ca7b4358fff324ea82f16c318ff792b3545ade0c69762c7bd5716ada0d673719ef8babfd2a8a6cbcaf2db2fcce99a57bff85116e59c06e2783f3e75e2fba0a53b55c9285ab110ff7ed8065103f861c3a3e85ca4d117040b9f40f2fe201b9c279970301d9679424c4d6ac19be9fb9f994dfc99
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; exponent: 10001
&#160;is associated with existing session CallHomeMountSessionContext{address=/172.17.0.2:45740, hostKey=RSA Public Key [16:9b:98:7b:59:3b:95:67:57:2b:86:a2:0a:2c:e9:fe:56:40:67:be],[56:66:d1:a4]
&#160; &#160; &#160; &#160; modulus: c6d1bd28fcc7b3605326b0aaf41ee5da08ad2969d0f002da3bd9f06d601734b625a1cd9988db6eaea985efc3da436c75fe9a0510bd790c79f0eabcb5b03ac4992429f872ae6f8f9acf478ee68503b767819e6bd308e294b9508d6da1c04c4d083ed0c644cefad809faf38857fa94a8b70a25587717b930eec6c7d05f525a05c24b5a3edebc2be4f89f47fad1d13ca7b4358fff324ea82f16c318ff792b3545ade0c69762c7bd5716ada0d673719ef8babfd2a8a6cbcaf2db2fcce99a57bff85116e59c06e2783f3e75e2fba0a53b55c9285ab110ff7ed8065103f861c3a3e85ca4d117040b9f40f2fe201b9c279970301d9679424c4d6ac19be9fb9f994dfc99
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; exponent: 10001
}, closing session org.opendaylight.netconf.callhome.protocol.CallHomeSessionContext@7c6e5436
17:24:27.938 ERROR [nioEventLoopGroup-4-5] Server Host Key/Certificate RSA Public Key [16:9b:98:7b:59:3b:95:67:57:2b:86:a2:0a:2c:e9:fe:56:40:67:be],[56:66:d1:a4]
&#160; &#160; &#160; &#160; modulus: c6d1bd28fcc7b3605326b0aaf41ee5da08ad2969d0f002da3bd9f06d601734b625a1cd9988db6eaea985efc3da436c75fe9a0510bd790c79f0eabcb5b03ac4992429f872ae6f8f9acf478ee68503b767819e6bd308e294b9508d6da1c04c4d083ed0c644cefad809faf38857fa94a8b70a25587717b930eec6c7d05f525a05c24b5a3edebc2be4f89f47fad1d13ca7b4358fff324ea82f16c318ff792b3545ade0c69762c7bd5716ada0d673719ef8babfd2a8a6cbcaf2db2fcce99a57bff85116e59c06e2783f3e75e2fba0a53b55c9285ab110ff7ed8065103f861c3a3e85ca4d117040b9f40f2fe201b9c279970301d9679424c4d6ac19be9fb9f994dfc99
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; exponent: 10001
&#160;is associated with existing session CallHomeMountSessionContext{address=/172.17.0.2:45740, hostKey=RSA Public Key [16:9b:98:7b:59:3b:95:67:57:2b:86:a2:0a:2c:e9:fe:56:40:67:be],[56:66:d1:a4]
&#160; &#160; &#160; &#160; modulus: c6d1bd28fcc7b3605326b0aaf41ee5da08ad2969d0f002da3bd9f06d601734b625a1cd9988db6eaea985efc3da436c75fe9a0510bd790c79f0eabcb5b03ac4992429f872ae6f8f9acf478ee68503b767819e6bd308e294b9508d6da1c04c4d083ed0c644cefad809faf38857fa94a8b70a25587717b930eec6c7d05f525a05c24b5a3edebc2be4f89f47fad1d13ca7b4358fff324ea82f16c318ff792b3545ade0c69762c7bd5716ada0d673719ef8babfd2a8a6cbcaf2db2fcce99a57bff85116e59c06e2783f3e75e2fba0a53b55c9285ab110ff7ed8065103f861c3a3e85ca4d117040b9f40f2fe201b9c279970301d9679424c4d6ac19be9fb9f994dfc99
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; exponent: 10001
}, closing session org.opendaylight.netconf.callhome.protocol.CallHomeSessionContext@7be53726 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;p&gt;1) Install Karaf feature:&lt;br/&gt;
feature:install odl-netconf-callhome-ssh odl-restconf-nb&lt;br/&gt;
2) Add Netopeer2 device to allowed-devices:&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;
curl --request POST &lt;span class=&quot;code-quote&quot;&gt;&apos;http:&lt;span class=&quot;code-comment&quot;&gt;//127.0.0.1:8181/rests/data/odl-netconf-callhome-server:netconf-callhome-server/allowed-devices&apos;&lt;/span&gt; \
&lt;/span&gt;--header &lt;span class=&quot;code-quote&quot;&gt;&apos;Authorization: Basic YWRtaW46YWRtaW4=&apos;&lt;/span&gt; \
--data-raw &apos;{
&#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;device&quot;&lt;/span&gt;: {
&#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;unique-id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;netopeer&quot;&lt;/span&gt;,
&#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;ssh-client-params&quot;&lt;/span&gt;: {
&#160; &#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;host-key&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;AAAAB3NzaC1yc2EAAAADAQABAAABAQDG0b0o/MezYFMmsKr0HuXaCK0padDwAto72fBtYBc0tiWhzZmI226uqYXvw9pDbHX+mgUQvXkMefDqvLWwOsSZJCn4cq5vj5rPR47mhQO3Z4Gea9MI4pS5UI1tocBMTQg+0MZEzvrYCfrziFf6lKi3CiVYdxe5MO7Gx9BfUloFwktaPt68K+T4n0f60dE8p7Q1j/8yTqgvFsMY/3krNUWt4MaXYse9VxatoNZzcZ74ur/SqKbLyvLbL8zpmle/+FEW5ZwG4ng/PnXi+6ClO1XJKFqxEP9+2AZRA/hhw6PoXKTRFwQLn0Dy/iAbnCeZcDAdlnlCTE1qwZvp+5+ZTfyZ&quot;&lt;/span&gt;,
&#160; &#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;credentials&quot;&lt;/span&gt; : {
&#160; &#160; &#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;username&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;netconf&quot;&lt;/span&gt;,
&#160; &#160; &#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;passwords&quot;&lt;/span&gt;: [
&#160; &#160; &#160; &#160; &#160; &#160;&lt;span class=&quot;code-quote&quot;&gt;&quot;netconf&quot;&lt;/span&gt;&#160;
&#160; &#160; &#160; &#160; &#160; &#160;]
&#160; &#160; &#160; }
&#160; &#160; }
&#160; }
}&apos; &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;3) Start Netopeer2 device with Netconf Callhome configuration&lt;/p&gt;</description>
                <environment></environment>
        <key id="36602">NETCONF-942</key>
            <summary>Callhome session is closed after allowing device to connect</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.opendaylight.org/images/icons/priorities/blocker.svg">Highest</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="ivanhrasko">Ivan Hrasko</assignee>
                                    <reporter username="PeterSuna">Peter Suna</reporter>
                        <labels>
                            <label>pt</label>
                    </labels>
                <created>Wed, 11 Jan 2023 18:23:08 +0000</created>
                <updated>Wed, 1 Feb 2023 15:11:23 +0000</updated>
                            <resolved>Tue, 24 Jan 2023 11:52:08 +0000</resolved>
                                    <version>5.0.0</version>
                                    <fixVersion>5.0.1</fixVersion>
                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="71903" author="petersuna" created="Wed, 11 Jan 2023 18:29:20 +0000"  >&lt;p&gt;This bug is introduced with this patch:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/c/netconf/+/103844&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/c/netconf/+/103844&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="71928" author="ivanhrasko" created="Wed, 18 Jan 2023 13:45:48 +0000"  >&lt;p&gt;Something similar has been solved here: &lt;a href=&quot;https://git.opendaylight.org/gerrit/c/netconf/+/94248&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/c/netconf/+/94248&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, probably, the reason is:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;17:23:25.865 WARN [nioEventLoopGroup-4-3] notifyListener(DefaultOpenFuture[id=ChannelSubsystem[id=0, recipient=-1]-ClientSessionImpl[netconf@/172.17.0.2:45740][netconf]][value=true]) failed (NoSuchElementException) to invoke org.opendaylight.netconf.callhome.protocol.CallHomeSessionContext$$Lambda$2749/0x00000007c1161b18@3fbb462a: Value of lockdatastore is not present&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It means we have to implement this lock when callhome topology node is created in `CallHomeMountSessionContext`.&lt;/p&gt;</comment>
                            <comment id="71929" author="ivanhrasko" created="Wed, 18 Jan 2023 13:54:13 +0000"  >&lt;p&gt;By default it should be `true`. Maybe `AbstractNetconfDataTreeService` should initialize the value as true?&lt;/p&gt;</comment>
                            <comment id="71934" author="ivanhrasko" created="Thu, 19 Jan 2023 09:20:12 +0000"  >&lt;p&gt;Datastore lock is set to true by default according to YANG model `odl-netconf-device.yang`. The problem is that callhome logic fails to obey any default values in datastore. We have to set correct value manually.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="35907">NETCONF-887</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="32728">NETCONF-699</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="33028">NETCONF-710</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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i043yf:</customfieldvalue>

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