-
Notifications
You must be signed in to change notification settings - Fork 46
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
Syslog messages interupting connection #71
Comments
Hi Can you please elaborate more on the issue you face. If you want to adjust the value of SYSLOG_WAIT then please add the below in the testbed.yaml,
|
Also there isn't any document specific to SYSLOG_WAIT. As you said the default value is 1 |
Hi @Taarini, as you can see flow log output, connection hangs straight after syslog message is produced when a RESTCONF session was made to the same device Unicon was trying to connect to. |
Here is another example, i'm executing 'show ip bgp vpnv4 all neighbors' followed by 'ping', note output stops at: 'Nov 25 15:26:01.124 GMT: %DMI-5-AUTH_PASSED: R0/0: dmiauthd: User 'automation' authenticated successfully from 10.113.128.165:0 for rest over http. External groups: PRIV15'
Previous command run output succeeded :
It seems like any syslog messages interrupt the process. |
From the logs, it looks like it don't originate from unicon. Are you using any other custom modules
|
Yes as described, a RESTCONF request (generating log message) to device whilst Unicon is connected seems to interrupt the process. |
Is it possible for you to share the logs with debug enabled, so that we can see what is happening. |
Hi,
I've now set the boot variable and the issue has gone as the warning
message has disappeared. I'm getting a consistent reload each time whereas
before there was a race condition when reload could happen if message
wasn't displayed in time.
Thank you
…On Thu, 22 Dec 2022, 19:02 Taarini, ***@***.***> wrote:
Is it possible for you to share the logs with debug enabled, so that we
can see what is happening.
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2CGUHGZQWVWTOZ7W3MN5DWOSJUFANCNFSM6AAAAAASI33JRM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sorry I'm not able to understand. Correct me if I wrong. You are saying the problem got fixed by setting boot variable but you get another issue with reload? |
Setting boot variable fixes the warning message when reload is issued which
is the culprit of the original issue. I'm asking whether this warning could
be added in the list of expected prompts within Unicon :-)
…On Fri, 23 Dec 2022, 01:57 Taarini, ***@***.***> wrote:
Sorry I'm not able to understand.
Correct me if I wrong. You are saying the problem got fixed by setting
boot variable but you get another issue with reload?
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2CGUHI7T4STFS4LRBH53TWOT2IFANCNFSM6AAAAAASI33JRM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Can you please share the traceback of the error which you got and please set debug = True, while running the script again and share the logs. |
Hi Can you please share the requested logs |
Hi,
I've explained what's happening, a warning message is displayed when boot
variable is not set which stops reload from going ahead. If boot var is
set, message is not displayed and reload happens as normal, it's therefore
not handled properly by your default dialogues.
Thank you
…On Tue, 10 Jan 2023, 21:32 Taarini, ***@***.***> wrote:
Hi
Can you please share the requested logs
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2CGUDBE47AIIXSVV7AWOTWRXIOJANCNFSM6AAAAAASI33JRM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Please share the logs with debug enabled so that we will have more information on what is happening. Right now from the examples you provided in the previous comment seems like the prompt is seen after the syslog message
If you look at the timestamp, it isn't taking much time to retrieve the prompt. So for the case where you say when boot var is not set the program hangs, we need debug information so that we can exactly know which condition in code is causing that. Similarly based on your observation, when boot var is set, the program runs smoothly. So please share the logs with debug enabled for this case So we can compare both the logs and let you know on what can be done |
Hi May I know whether you are planning to share the logs for boths cases with debug enabled |
Hi,
I've noticed that when Unicon sees a syslog message (console session) it stops and waits, in the example below, there was a RESTCONF connection made at the time Unicon has connected to device. Any actions stop from there on, connection will eventually timeout.
I'm guessing this has something to do with: SYSLOG_WAIT which by default is 1, I couldn't find any documentation around this value, could you please elaborate?
The text was updated successfully, but these errors were encountered: