<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:39 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-688] NetConf callhome server reports </title>
                <link>https://jira.opendaylight.org/browse/NETCONF-688</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;When configuring NetconfCallhomeServer with a new allowed device, the following error is shown in karaf.log:&lt;/p&gt;

&lt;p&gt;&#180;&#180;&#180;&lt;/p&gt;

&lt;p&gt;2020-05-19T12:49:44,966 | ERROR | opendaylight-cluster-data-notification-dispatcher-36 | DataTreeChangeListenerActor | 223 - org.opendaylight.controller.sal-clustering-commons - 1.11.0 | member-1-shard-default-config: Error notifying listener org.opendaylight.mdsal.binding.dom.adapter.BindingDOMDataTreeChangeListenerAdapter@4086184e&lt;br/&gt;
java.lang.StringIndexOutOfBoundsException: offset 4, count 813826314, length 270&lt;/p&gt;

&lt;p&gt;&#180;&#180;&#180;&#180;&lt;/p&gt;

&lt;p&gt;Please see attached file, which contains the related RestConf (bierman) PUT command.&lt;/p&gt;

&lt;p&gt;It can be reproduced for Soduim-SR1 and Magnesium-SR0.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;HTTP PUT:&#160;&#160;/restconf/config/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;odl-netconf-callhome-server:netconf-callhome-server&quot;&lt;/span&gt;: {
 &lt;span class=&quot;code-quote&quot;&gt;&quot;odl-netconf-callhome-server:allowed-devices&quot;&lt;/span&gt;: {
 &lt;span class=&quot;code-quote&quot;&gt;&quot;odl-netconf-callhome-server:device&quot;&lt;/span&gt;: [
  {
    &lt;span class=&quot;code-quote&quot;&gt;&quot;odl-netconf-callhome-server:unique-id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;NTS_Manager&quot;&lt;/span&gt;,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;odl-netconf-callhome-server:ssh-host-key&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;MIIBCgKCAQEAuaf1++Z3N9H17X893pI1pGpXdUOJuOPuFnoZFyjPTY3pqedNpEbvz24SkMynogipxbOc+9iBRtkZda00bLtU1KtJ3r8qy5zkjttZ9YN4kN4qTVTQH/2kKp5CAjyWF4uMNiSiYH3600lgsnTfgOAGp9wevN9JzQs+kp1BzfMO8YF/wZqSjGfcasKHza0OITE92JfIUuiDqki4LVbo+fJogrWWshACg3EweatAfBmblWO2nluF6akRu7hOl2iB8dIrba7UjnTj8R2BP7vYclDn7QUlFzVjoN5bWp1eJOP60ZX/NcnSo7ibPmyc7W8JCluKnNPM1wuVuP/mtYNjqsVqbwIDAQAB&quot;&lt;/span&gt;,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;odl-netconf-callhome-server:credentials&quot;&lt;/span&gt;: {
      &lt;span class=&quot;code-quote&quot;&gt;&quot;odl-netconf-callhome-server:username&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;netconf&quot;&lt;/span&gt;,
      &lt;span class=&quot;code-quote&quot;&gt;&quot;odl-netconf-callhome-server:passwords&quot;&lt;/span&gt;: [
         &lt;span class=&quot;code-quote&quot;&gt;&quot;netconf&quot;&lt;/span&gt;
          ]
         }
       }
     ]
    }
  }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The RestConf response is 201, however the callhome function later reports errors during ssh key exchange.&lt;/p&gt;

&lt;p&gt;Is there something wrong with the json-body?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Karaf:INFO&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;
Karaf
 Karaf version 4.2.6
 Karaf home /opt/opendaylight
 Karaf base /opt/opendaylight
 OSGi Framework org.eclipse.osgi-3.12.100.v20180210-1608

JVM
 Java Virtual Machine OpenJDK 64-Bit Server VM version 11.0.7+10
 Version 11.0.7
 Vendor AdoptOpenJDK
 Pid 58
 Uptime 44 minutes
 &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; CPU time 2 minutes
 &lt;span class=&quot;code-object&quot;&gt;Process&lt;/span&gt; CPU load 0.00
 &lt;span class=&quot;code-object&quot;&gt;System&lt;/span&gt; CPU load 0.02
 Open file descriptors 409
 Max file descriptors 1,048,576
 Total compile time 1 minute
Threads
 Live threads 126
 Daemon threads 53
 Peak 138
 Total started 509
Memory
 Current heap size 175,775 kbytes
 Maximum heap size 2,097,152 kbytes
 Committed heap size 425,984 kbytes
 Pending objects 0
 Garbage collector Name = &lt;span class=&quot;code-quote&quot;&gt;&apos;G1 Young Generation&apos;&lt;/span&gt;, Collections = 38, Time = 0.941 seconds
 Garbage collector Name = &lt;span class=&quot;code-quote&quot;&gt;&apos;G1 Old Generation&apos;&lt;/span&gt;, Collections = 0, Time = 0.000 seconds
Classes
 Current classes loaded 24,255
 Total classes loaded 24,834
 Total classes unloaded 579
Operating system
 Name Linux version 5.3.0-51-&lt;span class=&quot;code-keyword&quot;&gt;generic&lt;/span&gt;
 Architecture amd64
 Processors 6
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</environment>
        <key id="32671">NETCONF-688</key>
            <summary>NetConf callhome server reports </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="jluhrsen">Jamo Luhrsen</assignee>
                                    <reporter username="demx8as6">Martin Skorupski</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 May 2020 13:38:15 +0000</created>
                <updated>Wed, 20 May 2020 13:34:11 +0000</updated>
                            <resolved>Wed, 20 May 2020 13:34:11 +0000</resolved>
                                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="68124" author="jluhrsen" created="Tue, 19 May 2020 16:38:43 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=demx8as6&quot; class=&quot;user-hover&quot; rel=&quot;demx8as6&quot;&gt;demx8as6&lt;/a&gt;, is that ssh key ok? It looks short compared to one I have in a postman collection:&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;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;December_19_Demo_Device&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;AAAAB3NzaC1yc2EAAAADAQABAAABAQChcF3lc/sHHv+P8fV0X4OKIZvaoQWxjeM+OgLykzuMfisww3+i/9PNb5vWsatftbt7wZKtV9jj0A4mN61thCvt+e7to3Nh93tRgV1XHIUHdbnRoL/8SjHo6NnO+HdF7eiVr4fOXfQpeTiaQ1ghscLFkcGg+olFmBCKGPKBz3oogFZ12ze5KIJQYmOBNI1T/iM4tSRg2ShSB2Sw4A/kduZV7kHo4bnVqsfsZZHLoAojktR174H/mOpGaRd0JvucQPrmc9FP64YyHjHGfU7Y1KaTAALwRQ4zTWl2nRD/io/8/8z96c0ClKTuWukCmaJyuSbaJD0SSSlj9M1EXWw04QLP&quot;&lt;/span&gt;
  }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Not that the Error in the karaf.log is helpful.&lt;/p&gt;</comment>
                            <comment id="68126" author="alex.stancu" created="Wed, 20 May 2020 13:28:10 +0000"  >&lt;p&gt;It seems that the host key that you are trying to provide is in PEM format, and ODL expects it in an &quot;ssh format&quot;.&lt;/p&gt;


&lt;p&gt;You can get the public key in a format usable in SSH with this command, in Linux:&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-bash&quot;&gt;
ssh-keygen -y -f private-key.pem &amp;gt; public-key.pub
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;ve tried to configure ODL with this new key and the error is not there anymore.&lt;/p&gt;</comment>
                            <comment id="68127" author="demx8as6" created="Wed, 20 May 2020 13:32:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=jluhrsen&quot; class=&quot;user-hover&quot; rel=&quot;jluhrsen&quot;&gt;jluhrsen&lt;/a&gt;, thanks for asking the right questions! &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/wink.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;

&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=alex.stancu&quot; class=&quot;user-hover&quot; rel=&quot;alex.stancu&quot;&gt;alex.stancu&lt;/a&gt;&#160;Thanks for pointing to the different public-key formats!&lt;/p&gt;

&lt;p&gt;All good -&amp;gt; closed&lt;/p&gt;</comment>
                            <comment id="68128" author="demx8as6" created="Wed, 20 May 2020 13:34:11 +0000"  >&lt;p&gt;Based on the explainaitions the issue can be considered as &quot;invalid&quot;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15653" name="karaf-log.partly.txt" size="9753" author="demx8as6" created="Tue, 19 May 2020 13:23:25 +0000"/>
                    </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|i03si7:</customfieldvalue>

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