-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
callhome getting a timeout after 10 mins #201
Comments
Hi Vishal, Regards, |
Hi Michal, As the client we are using ODL , Regards, |
Hi Vishal, Regards, |
Hi Michal, I am not using netopeer so -v2 i cant do But I have added verbosity to the logs using the api's After 10 mins logs: Jan 21 04:43:45 6 2 0 netconfAgent:NoName D [19:39:59] LibNetConfOriginator.cpp:264 After a min again logs: Jan 21 04:44:26 6 2 0 netconfAgent:NoName D LIBNETCONF : Session 1: Call Home thread failed to wake up in a timely manner, fatal synchronization problem. Inference It seems that, the ssh is disconnecting because keepalive is not there which should tell the ssh to be online. So is there a way in libnetconf2 to send keepalive messages to ssh which will not stop the termination of connection? version of libssh used - libssh-0.9.0 Thanks & Regards, |
Hi Vishal, Regards, |
Hi Michal, As per your suggestion, and surfing the internet I found out that, we can add "ClientAliveInterval"/"ServerAliveInterval" option to /etc/ssh/sshd_config file so that the the session can be alive Reference : - https://unix.stackexchange.com/questions/3026/what-options-serveraliveinterval-and-clientaliveinterval-in-sshd-config-exac But this din't work at all . After looking through the libssh code(0.9.0) I found out that the above two options are not present and only following are the options available:
Also when I enabled the logs in libssh and redirected it to print it to file following are the results I got:
Every other website which I saw is saying the same thing to add those options . But those options are not available in libssh code at all. Thanks & Regards. |
Hi Vishal,
It says that it has failed to poll a channel because it has disconnected and it then prints out the reason that the client sent. So, you need to configure this timeout in your client somehow, it is not a libnetconf2 issue. Regards, |
Hi Michal, This is just an FYI . For reference pl refer to the link : https://bugs.libssh.org/T212 Also to add to this , this issue of connection termination at fixed intervals(10 min) is with ODL client , for MGSoft client it works fine (without changing the code) and doesn't gets disconnected. Thanks & Regards, |
Hi Vishal, Regards, |
Hi Michal , In a way yes . I am not changing the the ODL client configuration . I don't have much info on what to change in ODL client for the same. But still as per the RFC 8071 for netconf callhome This states that : So to do this it has to be a change in server side , which i think would be correct . Regards, |
Hi Vishal, Regards, |
Hi, Michal! ODL for netconf-callhome use (https://tools.ietf.org/html/rfc8071) in section-4.1 point S7 we looks:
I think it's netopeer2 problem (libSSH), not ODL. Сorrect me if I'm wrong. |
Hi, However, note that the specification is talking about what a NETCONF server as the connection initiator should do, there is nothing about what the client should do. Obviously, it can expect to receive these messages because the server should send them, but that is still technically a proprietary functionality and I would expect it can at least be configured/turned off. Regards, |
FYI: https://jira.opendaylight.org/browse/NETCONF-832 and https://jira.opendaylight.org/browse/NETCONF-681 have been fixed. IMO: they could be related to this problem. The first one has fixed call-home devices heart-beats so they are not disconnected after 10 minutes any more. |
Hi Michal,
I am implemented callhome feature where I am using API's of Libnetconf2.
I am noticing that every 10 mins the device is getting disconnected . Can you tell me , if it can be made persistent i.e I dont want to get it disconnected.
Also I want to know , in which of the files this 10 min timer is present , so that If I want to extend it , I can do .
PS: I am using latest libnetconf2 tag (v0.12-r2) , ".so" gets created with name libnetconf2.so.0.12.55
Thanks & Regards,
Vishal
The text was updated successfully, but these errors were encountered: