Closed vkjammala-arista closed 4 days ago
The pre-commit check detected issues in the files touched by this pull request. The pre-commit check is a mandatory check, please fix detected issues.
Detailed pre-commit check results:
trim trailing whitespace.................................................PassedTo run the pre-commit checks locally, you can follow below steps:
pre-commit
package is installed:
sudo pip install pre-commit
pre-commit install
pre-commit
pre-commit run --from-ref <commit_id> --to-ref <commit_id>
Cherry-pick PR to 202405: https://github.com/sonic-net/sonic-mgmt/pull/15784
Description of PR
Summary: [dualtor-aa] Fix "fdb/test_fdb_mac_learning.py" failures Fixes # https://github.com/aristanetworks/sonic-qual.msft/issues/329
Type of change
Back port request
Approach
What is the motivation for this PR?
Test is currently failing on
dualtor-aa
topologies due to 1) Packet sometimes going to unselected dut (due to active-active topology) and thus lead to mac learning failure.2) After bringing up interfaces (from shutdown state), there is time.sleep of 30 seconds which seem to be not enough for muxcable status on duthost to become consistent with mux
server_status
(seeSERVER_STATUS
shown asunknown
below). We need to wait for SERVER_STATUS to match with STATUS field for mac learning to happen.3) As test is bringing down all the interfaces (including portchannels),
ERR swss#tunnel_packet_handler.py: All portchannels failed to come up within 3 minutes, exiting.
is coming during the test and causing test faiure (as log_analyzer is complaining)How did you do it?
1) Add fixture to setup topo in active-standby mode. This is needed to make sure packets goto selected dut (for mac learning to happen correctly). 2) Introduce logic to wait for mux status to become consistent before sending traffic (instead of relying on time.sleep delay). 3) Ignore "All port channels failed to come up ..." syslog, which seems to be expected as test is bringing down all the portchannels.
How did you verify/test it?
Stressed the test on
Arista-7260CX3-D108C8
platform withdualtor-aa[-56]
deployed and test is passing.Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation