Details
-
Bug
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
-
None
-
None
-
Karaf:INFO
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 Process CPU time 2 minutes Process CPU load 0.00 System 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 = 'G1 Young Generation', Collections = 38, Time = 0.941 seconds Garbage collector Name = 'G1 Old Generation', 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-generic Architecture amd64 Processors 6
Karaf:INFO 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 Process CPU time 2 minutes Process CPU load 0.00 System 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 = 'G1 Young Generation' , Collections = 38, Time = 0.941 seconds Garbage collector Name = 'G1 Old Generation' , 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- generic Architecture amd64 Processors 6
Description
When configuring NetconfCallhomeServer with a new allowed device, the following error is shown in karaf.log:
´´´
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
java.lang.StringIndexOutOfBoundsException: offset 4, count 813826314, length 270
´´´´
Please see attached file, which contains the related RestConf (bierman) PUT command.
It can be reproduced for Soduim-SR1 and Magnesium-SR0.
HTTP PUT: /restconf/config/odl-netconf-callhome-server:netconf-callhome-server
{
"odl-netconf-callhome-server:netconf-callhome-server": {
"odl-netconf-callhome-server:allowed-devices": {
"odl-netconf-callhome-server:device": [
{
"odl-netconf-callhome-server:unique-id": "NTS_Manager",
"odl-netconf-callhome-server:ssh-host-key": "MIIBCgKCAQEAuaf1++Z3N9H17X893pI1pGpXdUOJuOPuFnoZFyjPTY3pqedNpEbvz24SkMynogipxbOc+9iBRtkZda00bLtU1KtJ3r8qy5zkjttZ9YN4kN4qTVTQH/2kKp5CAjyWF4uMNiSiYH3600lgsnTfgOAGp9wevN9JzQs+kp1BzfMO8YF/wZqSjGfcasKHza0OITE92JfIUuiDqki4LVbo+fJogrWWshACg3EweatAfBmblWO2nluF6akRu7hOl2iB8dIrba7UjnTj8R2BP7vYclDn7QUlFzVjoN5bWp1eJOP60ZX/NcnSo7ibPmyc7W8JCluKnNPM1wuVuP/mtYNjqsVqbwIDAQAB",
"odl-netconf-callhome-server:credentials": {
"odl-netconf-callhome-server:username": "netconf",
"odl-netconf-callhome-server:passwords": [
"netconf"
]
}
}
]
}
}
}
The RestConf response is 201, however the callhome function later reports errors during ssh key exchange.
Is there something wrong with the json-body?