[CONTROLLER-731] ODL fails to re-establish dropped NETCONF connection Created: 26/Aug/14  Updated: 25/Jul/23  Resolved: 02/Sep/14

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Giles Heron Assignee: Maros Marsalek
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


External issue ID: 1621

 Description   

connecting to a device and doing a full yang-ext:mount that device drops the session.

in previous revisions of ODL (e.g. one from July 29th) ODL re-establishes the session.

the latest builds fail to do this.

The only difference I can see in the logs is this:

old ODL:

2014-08-26 12:35:51.367 BST [nettyThreadgroupModule$NioEventLoopGroupCloseable-5-2] DEBUG o.o.c.n.n.h.NetconfChunkAggregator - Buffer has 146 bytes, need 793 to complete chunk
2014-08-26 12:36:01.644 BST [nettyThreadgroupModule$NioEventLoopGroupCloseable-5-2] DEBUG o.o.c.n.n.h.NetconfXMLToMessageDecoder - No more content in incoming buffer.
2014-08-26 12:36:01.645 BST [nettyThreadgroupModule$NioEventLoopGroupCloseable-5-2] DEBUG o.o.c.n.n.AbstractNetconfSession - Session NetconfClientSession

{sessionId=7407}

end of input detected while session was in state up
2014-08-26 12:36:01.645 BST [nettyThreadgroupModule$NioEventLoopGroupCloseable-5-4] DEBUG o.o.c.n.n.h.FramingMechanismHandlerFactory - EOM framing mechanism was selected.
2014-08-26 12:36:01.645 BST [nettyThreadgroupModule$NioEventLoopGroupCloseable-5-2] WARN o.o.c.s.c.n.l.NetconfDeviceCommunicator - RemoteDevice

{XRb}

: Session went down
java.io.IOException: End of input detected. Close the session.

new ODL:

2014-08-26 12:10:25.570 BST [nettyThreadgroupModule$NioEventLoopGroupCloseable-5-1] DEBUG o.o.c.n.n.h.NetconfChunkAggregator - Buffer has 1008 bytes, need 1298 to complete chunk
2014-08-26 12:10:25.743 BST [sshd-SshClient[770cf303]-nio2-thread-1] DEBUG o.o.c.n.n.h.s.c.AsyncSshHandler - SSH session closed on channel: [id: 0x0a267c7a]
2014-08-26 12:10:25.743 BST [nettyThreadgroupModule$NioEventLoopGroupCloseable-5-1] DEBUG o.o.c.n.n.h.NetconfXMLToMessageDecoder - No more content in incoming buffer.
2014-08-26 12:10:25.743 BST [nettyThreadgroupModule$NioEventLoopGroupCloseable-5-1] DEBUG o.o.c.n.n.AbstractNetconfSession - Session NetconfClientSession

{sessionId=22530}

end of input detected while session was in state up
2014-08-26 12:10:25.744 BST [nettyThreadgroupModule$NioEventLoopGroupCloseable-5-1] WARN o.o.c.s.c.n.l.NetconfDeviceCommunicator - RemoteDevice

{XRa}

: Session went down
java.io.IOException: End of input detected. Close the session.

is the "o.o.c.n.n.h.FramingMechanismHandlerFactory - EOM framing mechanism was selected." message meaningful? It's missing in the "new" ODL case.



 Comments   
Comment by Maros Marsalek [ 27/Aug/14 ]

https://git.opendaylight.org/gerrit/#/c/10373/1

Generated at Wed Feb 07 19:53:44 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.