-
Notifications
You must be signed in to change notification settings - Fork 105
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
All queries type fail with same error message #303
Comments
A problem with firewall rules or netconf being disabled on the target device could be the source of your problem. Test both of these with the command:
Login with the password at the prompt and for juniper devcies you should see:
That will show you:
|
So, it works on port 22, but not 830, which means netconf is not working. I must have missed the part of the instructions where configuring netconf is required. |
Well, but this command does work: So, is the issue the order of options in the command that is being sent to the Juniper router? |
Sorry, I didn't try the -p 830 flag myself, just thought it should work based on the syntax. If port 22 is showing you the compatabilitys this seems good. Is there something in the router log ? |
From /var/log/message: the ssh login for the lg user is accepted from /var/log/messages Dec 3 05:09:26 r-pxf-ce1 sshd[37205]: Accepted password for lg from port 33458 ssh2 |
You're using the default directives right ? Does your LG user have the needed privileges on the router ? |
By default directives, what are you referring to? My config.yaml devices:
permissions for the user: class looking-glass { |
Yes, I confirmed that I am using the default directives. I have not changed anything. The console of the docker shows whenever I try to run a ping, traceroute, etc. |
I turned on debug mode hyperglass-1 | [DEBUG] 20241211 20:58:13 |51 | collect → Connecting to device {'device': 'Core Router 1', 'address': 'None:None', 'proxy': None} |
Looks like I have the same issue as: |
Interesting. I got that same problem with netmiko failing to parse the output/ prompt with the command show route receive-protocol bgp because juniper first outputs a blinking cursor while its loading the result. Netmiko interprets the cursor as the end result. However you're using the default commands, which should work. When you're logging in with the hyperglass user on the router and executing the same command ( show bgp route for the default route command) do you also get the 'Screen width set to' displayed ? |
When I login as the hyperglass user on the router, and run "show route receive-protocol bgp {neighbor-ip}", it pauses for 1 to 5 seconds, and then starts outputting the prefixesc. These routers in question have full route tables, as in, all ipv4/ipv6 on the internet. The timeout is set to 120 seconds, per editing the ssh_netmiko.py file line 56. I spun up a new linux VM and did a clean install (docker) with the same results before increasing the timeout, removing 3DES, etc to reduce errors/warnings. I have tested the same user with different software that doesn't have as many features as hyperglass without issues. So I don't believe it is a permissions issue. |
If the cursor is the issue, that would explain why ping 1.1.1.1 produces the same error as traceroute, show route receieve-protocol bgp, etc. |
There are parameters for netmiko to change the expected prompt for the screen grabbing in these scenarios, but i don't know how to set them on hyperglass |
Deployment Type
Docker
Version
v2.0.4
Steps to Reproduce
Any type of query against any router says "Something went Wrong"
Using debian 12.8 with latest python3, nodejs, etc in docker. This is an initial setup of hyperglass from scratch.
Setting up devices and getting authenticated was successful. Logging in via cli and running as the hyperglass looking glass user works, but not via site. It looks like a timeout issue based on the logs.
I haven't created a config.yaml (not sure where that file should go yet, /etc/hyperglass ?) so that file isn't included.
Expected Behavior
BGP route, Ping or Traceroute should show the some result. In theory, the same as when logged in via cli.
Observed Behavior
I found this post, I was able to apply it, but it does not change or fix the issue.
#274
Configuration
No response
Devices
Logs
The text was updated successfully, but these errors were encountered: