Closed
Description
Description
On chassis, after the introduction of frr route check in route_check.py (sonic-net/sonic-utilities#2762), route_check.py may take more than 2 mins to finish. The current timeout is 2 mins which causes route check to fail and affects monit output. This affects the sonic-mgmt pretest check. Other test cases relying on monit output may also be affected.
root@sfd-t2-lc0:/home/cisco# time route_check.py [[BAborting routeCheck.py upon timeout signal after 120 seconds
[<FrameSummary file /usr/local/bin/route_check.py, line 810 in <module>>, <FrameSummary file /usr/local/bin/route_check.py, line 797 in main>, <FrameSummary file /usr/local/bin/route_check.py, line 745 in check_routes>, <FrameSummary file /usr/local/bin/│·
route_check.py, line 537 in check_frr_pending_routes>, <FrameSummary file /usr/local/bin/route_check.py, line 345 in get_frr_routes>, <FrameSummary file /usr/lib/python3.9/subprocess.py, line 424 in check_output>, <FrameSummary file /usr/lib/python3.9/su│·
bprocess.py, line 507 in run>, <FrameSummary file /usr/lib/python3.9/subprocess.py, line 1121 in communicate>, <FrameSummary file /usr/local/bin/route_check.py, line 95 in handler>]
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 345, in get_frr_routes
output = subprocess.check_output('show ipv6 route json', shell=True)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 507, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "/usr/lib/python3.9/subprocess.py", line 1121, in communicate
stdout = self.stdout.read()
File "/usr/local/bin/route_check.py", line 96, in handler
raise Exception("timeout occurred")
Exception: timeout occurred
real 2m0.714s
user 0m57.700s
sys 0m2.939s
The issue was opened for 202305 earlier which was fixed by reverting the feature for frr route check: #17403
This needs to be fixed for master.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Output of show version
:
(paste your output here)
Output of show techsupport
:
(paste your output here or download and attach the file here )
Additional information you deem important (e.g. issue happens only occasionally):
Metadata
Metadata
Assignees
Type
Projects
Status
Done