-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Random failed tests on routeros devices #121
Comments
Let's break it down:
Hence:
|
It seems like this is solely mikrotik-netmiko issue. I found some similar issues: |
I did a little investigation and got the following. So I replaced validity/validity/pollers/cli.py Line 17 in e40aec1
with Maybe you can extend validity poller to give possibility to specify which method/arguments to run or just change send_command with send_command_timing? |
Oops, Mikrotik tests succeed but now Cisco tests randomly failed :( |
Reverted code to original send_command(), but in the poller settings I added 2 options:
Short tests on routeros and ios now return valid results. Let's see how things go further. |
I can consider adding custom user-defined pollers via plugin settings |
I've implemented custom user-defined pollers mechanism. So, in the next version you'll be able to define your own poller (e.g. based on the current netmiko poller) with the parameters suitable for your case. |
Validity Version
3.0.3
NetBox Version
4.1.1
Python Version
3.12.3
Steps to Reproduce
As amount of tests for routeros and number of routeros devices started to increase (8 tests/33 devices as of now) I noticed that I get random failed tests. For example if I run 8 tests/1 device I get result with all tests passed, but if I run 8 tests/33 devices I end up with around 80% of tests passed but others failed.

This is how particular test for particular device may look when scheduled 8/33 tests have been done:
It seems like failed tests are because of netmiko or validity collecting results from netmiko because command result file may contain the following lines:
or trimmed output like:
or some other strange lines which looks like lines from mikrotik config but not related to command sent to device. I attach this example when I find one.
I added to routeros poller config line:
session_log: /tmp/netmiko_session.log
and this log file contains all command outputs from device however device result file does not contain data.Note. I don't notice same behavior on cisco.ios devices.
Traceback
The text was updated successfully, but these errors were encountered: