Skip to content
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

Update 1.0.3 XML Parse Error JunOS 19.4 #151

Closed
mcmufffin opened this issue Jul 2, 2021 · 0 comments
Closed

Update 1.0.3 XML Parse Error JunOS 19.4 #151

mcmufffin opened this issue Jul 2, 2021 · 0 comments
Labels
accepted Issue is confirmed and will be worked on bug Confirmed bug or unexpected behavior

Comments

@mcmufffin
Copy link

mcmufffin commented Jul 2, 2021

Hello, i just upgrade from 1.0.0 to 1.0.3 and on JunOS 19.4R3-S2.2 it seems like the XML cant be parsed anymore.

expected:

Giving Table output like in 1.0.0

reproduce:

Install Hyperglass 1.0.3 on JunOS 19.4R3-S2.2 and try to check any bgp route

Logs

Jul 02 19:42:15 hyperglas hyperglass[20576]: [INFO] 20210702 19:42:15 | scrapli.driver.base.base_driver:949 | _post_open_closing_log → connection to 'somerouterip' on port '22' closed successfully
Jul 02 19:42:15 hyperglas hyperglass[20576]: [DEBUG] 20210702 19:42:15 | hyperglass.execution.drivers._common:34 | parsed_response → Pre-parsed responses:
Jul 02 19:42:15 hyperglas hyperglass[20576]: ('<rpc-reply xmlns:junos="http://xml.juniper.net/junos/19.4R0/junos">\n    <route-information xmlns="http://xml.juniper.net/junos/19.4R0/junos-routing">\n        <route-table>\n            <table-name>inet.0</table-name>\n
Jul 02 19:42:15 hyperglas hyperglass[20576]: [DEBUG] 20210702 19:42:15 | hyperglass.parsing.juniper:65 | parse_juniper → Initially Parsed Response:
Jul 02 19:42:15 hyperglas hyperglass[20576]: OrderedDict([('rpc-reply', OrderedDict([('@xmlns:junos', 'http://xml.juniper.net/junos/19.4R0/junos'), ('route-information', OrderedDict([('@xmlns', 'http://xml.juniper.net/junos/19.4R0/junos-routing'), ('route-table', Orde
Jul 02 19:42:15 hyperglas hyperglass[20576]: [DEBUG] 20210702 19:42:15 | hyperglass.models.parsing.juniper:200 | serialize → Serialized Juniper response: vrf='default' count=8 routes=[ParsedRouteEntry(prefix='8.8.8.0/24', active=True, age=508377, weight=170, med=0, lo
Jul 02 19:42:15 hyperglas hyperglass[20576]: [DEBUG] 20210702 19:42:15 | hyperglass.parsing.juniper:65 | parse_juniper → Initially Parsed Response:
Jul 02 19:42:15 hyperglas hyperglass[20576]: OrderedDict([('rpc-reply', OrderedDict([('@xmlns:junos', 'http://xml.juniper.net/junos/19.4R0/junos'), ('xnm:error', OrderedDict([('@xmlns', 'http://xml.juniper.net/xnm/1.1/xnm'), ('@xmlns:xnm', 'http://xml.juniper.net/xnm/
Jul 02 19:42:15 hyperglas hyperglass[20576]: [CRITICAL] 20210702 19:42:15 | hyperglass.parsing.juniper:93 | parse_juniper → 'route-information' was not found in the response
Jul 02 19:42:15 hyperglas hyperglass[20576]: [CRITICAL] 20210702 19:42:15 | hyperglass.exceptions:40 | __init__ → [DANGER] Error parsing response data

Possible Solution

Downgrade to 1.0.0

Environment

Server

Metric Value
hyperglass Version 1.0.0 (allready downgraded again)
hyperglass Path /etc/hyperglass
Python Version 3.7.3
Platform Info Linux-4.19.0-17-amd64-x86_64-with-debian-10.10
CPU Info Common KVM processor
Logical Cores 2
Physical Cores 2
Processor Speed 3.312042GHz
Total Memory 4.14 GB
Memory Utilization 12.7%
Total Disk Space 19.67 GB
Disk Utilization 21.6%

Client

Firefox 89 - Windows 10 1809

Thanks!

Regards

@mcmufffin mcmufffin added the possible-bug Something isn't working label Jul 2, 2021
@thatmattlove thatmattlove added accepted Issue is confirmed and will be worked on bug Confirmed bug or unexpected behavior and removed possible-bug Something isn't working labels Jul 4, 2021
jsenecal pushed a commit to jsenecal/hyperglass that referenced this issue Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Issue is confirmed and will be worked on bug Confirmed bug or unexpected behavior
Projects
None yet
Development

No branches or pull requests

2 participants