<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:28 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-614] Netconf callhome server does not publish disconnect cause</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-614</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;As shown here this regression has been introduced very recently:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins.opendaylight.org/releng/job/netconf-csit-1node-callhome-only-neon/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/job/netconf-csit-1node-callhome-only-neon/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The operational info just shows DISCONNECTED:&lt;/p&gt;

&lt;p&gt;/restconf/operational/odl-netconf-callhome-server:netconf-callhome-server&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;
{
  &lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-callhome-server&quot;&lt;/span&gt;: {
    &lt;span class=&quot;code-quote&quot;&gt;&quot;allowed-devices&quot;&lt;/span&gt;: {
      &lt;span class=&quot;code-quote&quot;&gt;&quot;device&quot;&lt;/span&gt;: [
        {
          &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;,
          &lt;span class=&quot;code-quote&quot;&gt;&quot;callhome-status:device-status&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;DISCONNECTED&quot;&lt;/span&gt;,
          &lt;span class=&quot;code-quote&quot;&gt;&quot;ssh-host-key&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;AAAAB3NzaC1yc2EAAAADAQABAAABAQDF2UazsHh/amdGT2xpmn5rpSrybUl66cic082NMRS5qEyVyTc8mvgzj4m1gXP/cVOJmZ6TR9AxCUcNnc7MZMpemg4n0kawM4wwwWP43Z46UG342Dz1B1yCgi9WTzsF7/6J1d57xNYIVmX6IQBhg+hbglyM4L658mM22ZkZuWw2AMbMK46HFbRIfwjoqziFi8jjJWU5WtZL5YpCofRb9PkRuH/ejxs/NJXgKA9vEOf8pXQJ8bGNa8WKHBBqidaRdOWa7EMGPIr6bApzN4P/jiY1m3uodaVI64WOg88oc9h1RP6gvJkN8eSBFFLVNuyOgxyNpxXTAyJ84mlTJgDVfmF7&quot;&lt;/span&gt;
        }
      ]
    }
  }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Karaf log shows this WARN:&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;
2019-05-06T10:33:39,798 | WARN  | nioEventLoopGroup-4-2 | DefaultAuthFuture                | 132 - org.apache.sshd.osgi - 2.2.0 | notifyListener(DefaultAuthFuture[id=ssh-connection][value=org.apache.sshd.common.SshException: No more authentication methods available]) failed (NullPointerException) to invoke org.opendaylight.netconf.callhome.protocol.NetconfCallHomeServer$2@600d8dea: &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When it worked I can see this instead:&lt;/p&gt;

&lt;p&gt;/restconf/operational/odl-netconf-callhome-server:netconf-callhome-server&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;
{
  &lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-callhome-server&quot;&lt;/span&gt;: {
    &lt;span class=&quot;code-quote&quot;&gt;&quot;allowed-devices&quot;&lt;/span&gt;: {
      &lt;span class=&quot;code-quote&quot;&gt;&quot;device&quot;&lt;/span&gt;: [
        {
          &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;,
          &lt;span class=&quot;code-quote&quot;&gt;&quot;callhome-status:device-status&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;FAILED_AUTH_FAILURE&quot;&lt;/span&gt;,
          &lt;span class=&quot;code-quote&quot;&gt;&quot;ssh-host-key&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;AAAAB3NzaC1yc2EAAAADAQABAAABAQDF2UazsHh/amdGT2xpmn5rpSrybUl66cic082NMRS5qEyVyTc8mvgzj4m1gXP/cVOJmZ6TR9AxCUcNnc7MZMpemg4n0kawM4wwwWP43Z46UG342Dz1B1yCgi9WTzsF7/6J1d57xNYIVmX6IQBhg+hbglyM4L658mM22ZkZuWw2AMbMK46HFbRIfwjoqziFi8jjJWU5WtZL5YpCofRb9PkRuH/ejxs/NJXgKA9vEOf8pXQJ8bGNa8WKHBBqidaRdOWa7EMGPIr6bApzN4P/jiY1m3uodaVI64WOg88oc9h1RP6gvJkN8eSBFFLVNuyOgxyNpxXTAyJ84mlTJgDVfmF7&quot;&lt;/span&gt;
        }
      ]
    }
  }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And in the Karaf log:&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;
2019-04-30T15:43:31,011 | INFO  | nioEventLoopGroup-4-2 | CallhomeStatusReporter           | 276 - org.opendaylight.netconf.callhome-provider - 1.6.1 | Setting auth failed status &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; callhome device id:netopeer.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="31661">NETCONF-614</key>
            <summary>Netconf callhome server does not publish disconnect cause</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="rovarga">Robert Varga</assignee>
                                    <reporter username="ecelgp">Luis Gomez</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 May 2019 17:35:54 +0000</created>
                <updated>Tue, 7 May 2019 08:28:53 +0000</updated>
                            <resolved>Tue, 7 May 2019 08:28:53 +0000</resolved>
                                    <version>Neon SR1</version>
                    <version>Sodium</version>
                                    <fixVersion>Neon SR1</fixVersion>
                    <fixVersion>Sodium</fixVersion>
                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="66759" author="rovarga" created="Mon, 6 May 2019 20:19:14 +0000"  >&lt;p&gt;This looks like the public key is not available after auth failure, hence NetconfCallHomeServer:144 will acquire a null and then it goes sideways. The same think is happening in Sodium.&lt;/p&gt;</comment>
                            <comment id="66760" author="rovarga" created="Mon, 6 May 2019 20:23:26 +0000"  >&lt;p&gt;Furthermore it seems device.getSshHostKey() is getting to be null for some reason. Grrr, gotta love this code &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="66761" author="rovarga" created="Mon, 6 May 2019 20:38:18 +0000"  >&lt;p&gt;Actually, this seems to be the primary cause:&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;&#160;&#160;&#160; @Override
&#160;&#160;&#160; public void reportFailedAuth(final PublicKey sshKey) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; AuthorizedKeysDecoder decoder = new AuthorizedKeysDecoder();

&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (Device device : getDevicesAsList()) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; String keyString = device.getSshHostKey();

&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; try {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; PublicKey pubKey = decoder.decodePublicKey(keyString);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (sshKey.getAlgorithm().equals(pubKey.getAlgorithm()) &amp;amp;&amp;amp; sshKey.equals(pubKey)) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;if keyString is null, decodePublicKey() will fail on it.&lt;/p&gt;</comment>
                            <comment id="66762" author="rovarga" created="Mon, 6 May 2019 21:00:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=ecelgp&quot; class=&quot;user-hover&quot; rel=&quot;ecelgp&quot;&gt;ecelgp&lt;/a&gt; can you check if we are getting warnings introduced by the proposed patch. Would it possible to dump config/oper DS in the errored case?&lt;/p&gt;</comment>
                            <comment id="66763" author="ecelgp" created="Mon, 6 May 2019 21:34:44 +0000"  >&lt;p&gt;Just added oper info when it fails vs when it works.&lt;/p&gt;</comment>
                            <comment id="66768" author="rovarga" created="Tue, 7 May 2019 05:50:11 +0000"  >&lt;p&gt;The DTCL NPEs are present even in successful runs &#8211; opened &lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-615&quot; title=&quot;Callhome throws NPEs in DTCL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-615&quot;&gt;&lt;del&gt;NETCONF-615&lt;/del&gt;&lt;/a&gt; to track them.&lt;/p&gt;</comment>
                            <comment id="66769" author="rovarga" created="Tue, 7 May 2019 05:52:17 +0000"  >&lt;p&gt;This is the root cause: kex is not available, as it will be torn down immediately after KeyEstablished event, hence it must be captured before the callback returns.&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03nof:</customfieldvalue>

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