You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On chassis-packet, there is no bgp running on Supervisor.
route_check.py tries to fetch the routes from frr and throws traceback when empty list is returned.
cisco@sfd-t2-sup:~$ sudo su
root@sfd-t2-sup:/home/cisco# route_check.py
Traceback (most recent call last):
File "/usr/local/bin/route_check.py", line 810, in <module>
sys.exit(main()[0])
File "/usr/local/bin/route_check.py", line 797, in main
ret, res= check_routes()
File "/usr/local/bin/route_check.py", line 745, in check_routes
rt_frr_miss = check_frr_pending_routes()
File "/usr/local/bin/route_check.py", line 537, in check_frr_pending_routes
frr_routes = get_frr_routes()
File "/usr/local/bin/route_check.py", line 344, in get_frr_routes
routes = json.loads(output)
File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
rlhui
changed the title
[chassis]: route_check.py fails and throw traceback on Supervisor
[202305] [chassis]: route_check.py fails and throw traceback on Supervisor
Dec 13, 2023
Description
On chassis-packet, there is no bgp running on Supervisor.
route_check.py tries to fetch the routes from frr and throws traceback when empty list is returned.
Introduced by sonic-net/sonic-utilities#2762
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: