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

ReconnectPromise keep reconnecting after device unregistered

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 2.0.4, 1.13.6
    • netconf
    • None

    Description

      In a netconf device connection failure situation, user may unregister (unmount) the netconf device and try to re-add the device in order to recover. However netconf-connector cannot establish session and "Mount point already exists" error recorded in karaf log.

      From karaf log ReconnectPromise try to reconnect again even if the device was unregistered from topology. It seems that unmounting does not clean up resources properly so an orphaned thread keeps working in background.

      This issue does not always happen, but one of the reproducible case is missing certificate in keystore.

      Confirmed version

      • Sodium-SR4 (embedded in ONAP Guilin)
      • Silicon-SR0

      Steps to reproduce

      1. install odl-netconf and odl-restconf features
      2. register netconf device using TLS without adding certificate to keystore
      3. connection-status become 'unable-to-connect' and message is 'No keystore private key found' (expected behavior)
      4. Unregister the netconf device
      5. the device is removed from netconf-topology, but ReconnectPromise / NetconfSessionPromise remain working and keep trying to reconnect (can be seen in log)
      6. add device certificates to keystore
      7. register netconf device again
      8. connection-status is 'connecting'
      9. after that, try unregister / register more times but status never become 'connected'.
        user has to restart karaf to recover the connection.

      Attachments

        Issue Links

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

          Activity

            People

              s4fujii Satoshi Fujii
              s4fujii Satoshi Fujii
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: