Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-688

NetConf callhome server reports

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • None
    • netconf
    • None

    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?

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jluhrsen Jamo Luhrsen
            demx8as6 Martin Skorupski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: