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

Netconf callhome server does not publish disconnect cause

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Neon SR1, Sodium
    • Neon SR1, Sodium
    • netconf
    • None

      As shown here this regression has been introduced very recently:

      https://jenkins.opendaylight.org/releng/job/netconf-csit-1node-callhome-only-neon/

      The operational info just shows DISCONNECTED:

      /restconf/operational/odl-netconf-callhome-server:netconf-callhome-server

      {
        "netconf-callhome-server": {
          "allowed-devices": {
            "device": [
              {
                "unique-id": "netopeer",
                "callhome-status:device-status": "DISCONNECTED",
                "ssh-host-key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDF2UazsHh/amdGT2xpmn5rpSrybUl66cic082NMRS5qEyVyTc8mvgzj4m1gXP/cVOJmZ6TR9AxCUcNnc7MZMpemg4n0kawM4wwwWP43Z46UG342Dz1B1yCgi9WTzsF7/6J1d57xNYIVmX6IQBhg+hbglyM4L658mM22ZkZuWw2AMbMK46HFbRIfwjoqziFi8jjJWU5WtZL5YpCofRb9PkRuH/ejxs/NJXgKA9vEOf8pXQJ8bGNa8WKHBBqidaRdOWa7EMGPIr6bApzN4P/jiY1m3uodaVI64WOg88oc9h1RP6gvJkN8eSBFFLVNuyOgxyNpxXTAyJ84mlTJgDVfmF7"
              }
            ]
          }
        }
      }
      

      Karaf log shows this WARN:

      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: null
      

      When it worked I can see this instead:

      /restconf/operational/odl-netconf-callhome-server:netconf-callhome-server

      {
        "netconf-callhome-server": {
          "allowed-devices": {
            "device": [
              {
                "unique-id": "netopeer",
                "callhome-status:device-status": "FAILED_AUTH_FAILURE",
                "ssh-host-key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDF2UazsHh/amdGT2xpmn5rpSrybUl66cic082NMRS5qEyVyTc8mvgzj4m1gXP/cVOJmZ6TR9AxCUcNnc7MZMpemg4n0kawM4wwwWP43Z46UG342Dz1B1yCgi9WTzsF7/6J1d57xNYIVmX6IQBhg+hbglyM4L658mM22ZkZuWw2AMbMK46HFbRIfwjoqziFi8jjJWU5WtZL5YpCofRb9PkRuH/ejxs/NJXgKA9vEOf8pXQJ8bGNa8WKHBBqidaRdOWa7EMGPIr6bApzN4P/jiY1m3uodaVI64WOg88oc9h1RP6gvJkN8eSBFFLVNuyOgxyNpxXTAyJ84mlTJgDVfmF7"
              }
            ]
          }
        }
      }
      

      And in the Karaf log:

      2019-04-30T15:43:31,011 | INFO  | nioEventLoopGroup-4-2 | CallhomeStatusReporter           | 276 - org.opendaylight.netconf.callhome-provider - 1.6.1 | Setting auth failed status for callhome device id:netopeer.
      

            rovarga Robert Varga
            ecelgp Luis Gomez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: