-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
pylibssh takes surprisingly longer time than paramiko to receive the same data #208
Comments
FTR I've got a similar report via email and it seems like |
It aligns with my observations of sending multiple lines of data that may even end up with a SEGFAULT. Not sure why though. |
[vlans] use json-pretty to mitigate libssh timeout issue Signed-off-by: NilashishC [email protected] SUMMARY Switching to | json-pretty instead of | json seems to mitigate the following issue with libssh: ansible/pylibssh#208 ISSUE TYPE Bugfix Pull Request COMPONENT NAME nxos_vlans.py Reviewed-by: GomathiselviS <None> Reviewed-by: None <None>
…lections#367) [vlans] use json-pretty to mitigate libssh timeout issue Signed-off-by: NilashishC [email protected] SUMMARY Switching to | json-pretty instead of | json seems to mitigate the following issue with libssh: ansible/pylibssh#208 ISSUE TYPE Bugfix Pull Request COMPONENT NAME nxos_vlans.py Reviewed-by: GomathiselviS <None> Reviewed-by: None <None>
I have the same issue, here is the workaround for anyone wondering how to deal with it quickly: |
SUMMARY
show vlan | json
from the same target device. This resulted in thecommand_timeout
value to work for paramiko but not libssh.time.perf_counter()
in relevant places within network_cli code as defined in this patch.read_non_blocking()
to8096
bytes and removing the upper cap of1024
bytes, this delay was reduced to ~280 secs.ISSUE TYPE
PYLISSH and LIBSSH VERSION
>>> import pylibsshext >>> pylibsshext.__libssh_version__ '0.9.5'
OS / ENVIRONMENT
ProductName: Mac OS X
ProductVersion: 10.15.7
STEPS TO REPRODUCE
EXPECTED RESULTS
The playbook run doesn't take an exorbitantly high time to complete.
ACTUAL RESULTS
When
command_timeout < 1100
it results in a timeout. With a highercommand_timeout
set, the playbook run completes as expected.The text was updated successfully, but these errors were encountered: