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
- install odl-netconf and odl-restconf features
- register netconf device using TLS without adding certificate to keystore
- connection-status become 'unable-to-connect' and message is 'No keystore private key found' (expected behavior)
- Unregister the netconf device
- the device is removed from netconf-topology, but ReconnectPromise / NetconfSessionPromise remain working and keep trying to reconnect (can be seen in log)
- add device certificates to keystore
- register netconf device again
- connection-status is 'connecting'
- after that, try unregister / register more times but status never become 'connected'.
user has to restart karaf to recover the connection.
Attachments
Issue Links
- is duplicated by
-
NETCONF-830 Flood of "IllegalStateException: complete already"
-
- Resolved
-
- relates to
-
NETCONF-621 Un-mounting a netconf device does not clean up MD-SAL DOM mountpoints
-
- Confirmed
-