Skip to content

[dualtor-aa] Fix test_fdb[ethernet]#8158

Merged
lolyu merged 1 commit intosonic-net:masterfrom
lolyu:dualtor_aa_fix_test_fdb
May 11, 2023
Merged

[dualtor-aa] Fix test_fdb[ethernet]#8158
lolyu merged 1 commit intosonic-net:masterfrom
lolyu:dualtor_aa_fix_test_fdb

Conversation

@lolyu
Copy link
Copy Markdown
Collaborator

@lolyu lolyu commented Apr 26, 2023

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Fix test_fdb[ethernet] failure on dualtor-aa testbed.

Signed-off-by: Longxiang Lyu lolv@microsoft.com

How did you do it?

For pkt_type etherent, the packets to populate the fdb are ECMPed to
either ToRs, neither of the ToRs could have the full set of fdb entries.
And as the I/O also gets ECMPed in the validation step, the I/O could
not be guaranteed to be forwarded to the ToR that has the corresponding
fdb entry.

Let's fall back to active-standby mode to test this scenario for
active-active ports.

How did you verify/test it?

Run on dualtor-aa testbed.

fdb/test_fdb.py::test_fdb[ethernet] PASSED                                                                                                                                                                                           [100%]

================================================================================================= 1 passed, 3 deselected in 361.35 seconds =================================================================================================

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@lolyu lolyu requested review from xwjiang-ms, yxieca and zjswhhh April 26, 2023 10:14
@lolyu lolyu force-pushed the dualtor_aa_fix_test_fdb branch from 788cacf to 8668d59 Compare April 26, 2023 14:13
@sonic-net sonic-net deleted a comment from mssonicbld Apr 26, 2023
@sonic-net sonic-net deleted a comment from mssonicbld Apr 26, 2023
@yxieca
Copy link
Copy Markdown
Collaborator

yxieca commented Apr 26, 2023

@lolyu this is effectively testing fdb in active-standby mode. Should we collect all active ports and expect IO from them? That way the test case is naturally fits both active-standby and active-active.

yxieca
yxieca previously approved these changes Apr 28, 2023
Copy link
Copy Markdown
Collaborator

@yxieca yxieca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fie test gap, you can move on with this PR for now.

zjswhhh
zjswhhh previously approved these changes Apr 28, 2023
Copy link
Copy Markdown
Contributor

@zjswhhh zjswhhh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

xwjiang-ms
xwjiang-ms previously approved these changes May 10, 2023
For pkt_type etherent, the packets to populate the fdb are ECMPed to
either ToRs, neither of the ToRs could have the full set of fdb entries.
And as the I/O also gets ECMPed in the validation step, the I/O could
not be guaranteed to be forwarded to the ToR that has the corresponding
fdb entry.

Let's fall back to active-standby mode to test this scenario for
active-active ports.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@lolyu lolyu dismissed stale reviews from xwjiang-ms, zjswhhh, and yxieca via a73146a May 10, 2023 08:27
@lolyu lolyu force-pushed the dualtor_aa_fix_test_fdb branch from 8668d59 to a73146a Compare May 10, 2023 08:27
@lolyu lolyu requested a review from wsycqyz May 10, 2023 08:28
@lolyu lolyu merged commit 1dcf542 into sonic-net:master May 11, 2023
wangxin pushed a commit that referenced this pull request May 16, 2023
Approach
What is the motivation for this PR?
Fix test_fdb[ethernet] failure on dualtor-aa testbed.

Signed-off-by: Longxiang Lyu lolv@microsoft.com

How did you do it?
For pkt_type etherent, the packets to populate the fdb are ECMPed to
either ToRs, neither of the ToRs could have the full set of fdb entries.
And as the I/O also gets ECMPed in the validation step, the I/O could
not be guaranteed to be forwarded to the ToR that has the corresponding
fdb entry.

Let's fall back to active-standby mode to test this scenario for
active-active ports.

How did you verify/test it?
Run on dualtor-aa testbed.
@lolyu lolyu deleted the dualtor_aa_fix_test_fdb branch May 31, 2023 17:19
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
Approach
What is the motivation for this PR?
Fix test_fdb[ethernet] failure on dualtor-aa testbed.

Signed-off-by: Longxiang Lyu lolv@microsoft.com

How did you do it?
For pkt_type etherent, the packets to populate the fdb are ECMPed to
either ToRs, neither of the ToRs could have the full set of fdb entries.
And as the I/O also gets ECMPed in the validation step, the I/O could
not be guaranteed to be forwarded to the ToR that has the corresponding
fdb entry.

Let's fall back to active-standby mode to test this scenario for
active-active ports.

How did you verify/test it?
Run on dualtor-aa testbed.
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
Approach
What is the motivation for this PR?
Fix test_fdb[ethernet] failure on dualtor-aa testbed.

Signed-off-by: Longxiang Lyu lolv@microsoft.com

How did you do it?
For pkt_type etherent, the packets to populate the fdb are ECMPed to
either ToRs, neither of the ToRs could have the full set of fdb entries.
And as the I/O also gets ECMPed in the validation step, the I/O could
not be guaranteed to be forwarded to the ToR that has the corresponding
fdb entry.

Let's fall back to active-standby mode to test this scenario for
active-active ports.

How did you verify/test it?
Run on dualtor-aa testbed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants