Open astlaurent opened 1 month ago
I'm experiencing the same issue with the same Docker image for Arista devices, not just with Traceroute, but also with other commands that takes a bit longer to finish.
I resolved the issue by increasing the read_timeout by adding send_args['read_timeout'] = 120
in ssh_netmiko.py.
send_args['read_timeout'] = 120
Thanks. This worked well. I needed to modify that and the timeout in the config.yaml to the same value. The ssh_netmiko.py file is embedded into the docker image so I had to modify the file and re-commit the docker
@thatmattlove you should make this value configurable or always have it match the timeout value in the config file. The value just simply tells netmiko to wait that max value for the prompt to come back. the default is like 10 seconds which is not long enough for traces
Hey guys I tried this solution but it doesn't work for me. Can you show me where you place this argument? Thanks
If it is running on Docker you need to change the file in the docker image not in the app directory on the OS. If you are not running Docker then it is enough to just add the value in the app directory. Here are the instructions I documented to assist
sudo docker exec -it hyperglass-hyperglass-1 sh
vi /opt/hyperglass/hyperglass/execution/drivers/ssh_netmiko.py
send_args['read_timeout'] = 120
sudo docker ps -a
sudo docker commit <ID> hyperglass-hyperglass
Thank you very much. Now it works perfectly. I wasted all last week working on this.
If it is running on Docker you need to change the file in the docker image not in the app directory on the OS. If you are not running Docker then it is enough to just add the value in the app directory. Here are the instructions I documented to assist
* Make sure the service is started * enter into the docker image shell `sudo docker exec -it hyperglass-hyperglass-1 sh` * Edit netmiko file `vi /opt/hyperglass/hyperglass/execution/drivers/ssh_netmiko.py` * Add the following line on line 56, save and exit the file `send_args['read_timeout'] = 120` * type in exit to leave the docker environment * Get docker container ID `sudo docker ps -a` * copy container ID for hyperglass-hyperglass * commit docker changes `sudo docker commit <ID> hyperglass-hyperglass` * restart service
Previously trace ipv6 2600:: and 2a11:: its not working. (for juniper) I follow this guide and tips provided and now is working fine. Thanks
Deployment Type
Docker
Version
v2.0.4
Steps to Reproduce
I am seeing this with built in XR directive as well as custom directive as well as Juniper. traceroutes to quite a bit of internet destinations fail. debug is showing pattern not detected. This seems to happen if there is a timeout along the path.
Expected Behavior
traceroute to properly display
Observed Behavior
error on display
Configuration
No response
Devices
No response
Logs