[action] [PR:14202] [dualtor] Fix flakiness of route/test_static_route.py #14646
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fix flakiness of route/test_static_route.py due to packet going to unexpected ToR
Fixes # https://github.com/aristanetworks/sonic-qual.msft/issues/230
Type of change
Back port request
Approach
What is the motivation for this PR?
As part of traffic verification, sometimes packet is going out of wrong ToR and causing test failures with signature something like
AssertionError: Received expected packet on port 30 for device 0, but it should have arrived on one of these ports: [52, 0, 36].
Reason being, in case of
dualtor-aa
, both the duts will be in active state and packet can go out ofrand_unselected_dut
.How did you do it?
setup_standby_ports_on_rand_unselected_tor
fixture to setup ports in standby mode in case of active-active topology. This is needed for packets not to go out of unexpected tor and cause test failures.rand_selected_dut
should be in active state for traffic verification to pass, so after config_reload weneed to toggle ports to rand_selected_dut.
How did you verify/test it?
Stressed the test on
Arista-7260CX3-D108C8
and test is passing.Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation