Open slutati1536 opened 3 years ago
@yxieca - can you please assist in assigning this ticket to the relevant owner.
@lolyu , can you check?
Could reproduce this, will propose a PR to fix
@lolyu - could you please update on the status of this issue.
@lolyu , @yxieca - any update on that?
Description
leftover route configuration from test_bgp_gr_helper_routes_perserved cause test_bgp_brr to fail
Steps to reproduce the issue: run the following tests in consecutive order:
test_bgp_bbr.py - tests pass test_bgp_gr_helper.py -test is skipped but configuration/cleanup is being executed test_bgp_bbr.py - tests fail
Describe the results you received: configuration of test test_bgp_gr_helper.py is uncleaned correctly, even when the test is skipped the setup/teardown of the tests is still being executed. the function "restore_nbr_gr" is not restoring the neighbors route.
this is causing the test of tets_ngp_bbr to fail on function check_other_vms because the route.prefix is in vm_route['vrfs']['default']['bgpRouteEntries'], so the tests fails.
on log:
E "ARISTA06T0": {
E "failed": true,
E "message": "No route for 172.16.10.0/24 found on ARISTA06T0",
E "vrfs": {
E "default": {
E "routerId": "100.1.0.22",
E "bgpRouteEntries": {},
E "vrf": "default",
E "asn": "64006"
E }
E }
E },
E
Describe the results you expected: test failed because check_other_vms, but check_other_vms should pass
Additional information you deem important:
sonic_dump_arc-switch1038_20210713_142949.tar.gz