Skip to content

[Chassis] Fix flakiness of nhop_group, routes not programmed into har…#16959

Merged
yejianquan merged 1 commit intosonic-net:masterfrom
yejianquan:jianquanye/fix_nhop
Feb 14, 2025
Merged

[Chassis] Fix flakiness of nhop_group, routes not programmed into har…#16959
yejianquan merged 1 commit intosonic-net:masterfrom
yejianquan:jianquanye/fix_nhop

Conversation

@yejianquan
Copy link
Collaborator

@yejianquan yejianquan commented Feb 14, 2025

…dward after port toggle

Description of PR

Summary:
Fixes flakiness nhop_group failures on chassis.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

Fixes flakiness nhop_group failures on chassis.
We observe flakiness failure on chassis devices
Suspect it's because the route is not programmed into hardware
Add external sleep to make sure route is in hardware

How did you do it?

Add extra waiting time for chassis device port toggle tests.

How did you verify/test it?

Run on PR test, and physical testbed.

ipfwd/test_nhop_group.py::test_nhop_group_member_count PASSED [ 20%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-2] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 40%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [ 60%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-0] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 80%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [100%]

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@augusdn augusdn self-requested a review February 14, 2025 04:36
Copy link
Contributor

@augusdn augusdn left a comment

Choose a reason for hiding this comment

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

LGTM

@yejianquan
Copy link
Collaborator Author

ipfwd/test_nhop_group.py::test_nhop_group_member_count PASSED [ 20%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-2] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 40%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [ 60%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-0] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 80%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [100%]

@yejianquan yejianquan merged commit 177f5cb into sonic-net:master Feb 14, 2025
12 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Feb 14, 2025
…dward after port toggle (sonic-net#16959)

…dward after port toggle

Description of PR
Summary:
Fixes flakiness nhop_group failures on chassis.


Approach
What is the motivation for this PR?
Fixes flakiness nhop_group failures on chassis.
We observe flakiness failure on chassis devices
Suspect it's because the route is not programmed into hardware
Add external sleep to make sure route is in hardware

How did you do it?
Add extra waiting time for chassis device port toggle tests.

How did you verify/test it?
Run on PR test, and physical test passes

ipfwd/test_nhop_group.py::test_nhop_group_member_count PASSED [ 20%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-2] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 40%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [ 60%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-0] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 80%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [100%]

authorized by: [email protected]
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202411: #16974

@yejianquan
Copy link
Collaborator Author

202405.msft: Azure/sonic-mgmt.msft#87

mssonicbld pushed a commit that referenced this pull request Feb 14, 2025
…dward after port toggle (#16959)

…dward after port toggle

Description of PR
Summary:
Fixes flakiness nhop_group failures on chassis.


Approach
What is the motivation for this PR?
Fixes flakiness nhop_group failures on chassis.
We observe flakiness failure on chassis devices
Suspect it's because the route is not programmed into hardware
Add external sleep to make sure route is in hardware

How did you do it?
Add extra waiting time for chassis device port toggle tests.

How did you verify/test it?
Run on PR test, and physical test passes

ipfwd/test_nhop_group.py::test_nhop_group_member_count PASSED [ 20%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-2] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 40%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [ 60%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-0] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 80%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [100%]

authorized by: [email protected]
wangxin pushed a commit to wangxin/sonic-mgmt that referenced this pull request Feb 21, 2025
…dward after port toggle (sonic-net#16959)

…dward after port toggle

Description of PR
Summary:
Fixes flakiness nhop_group failures on chassis.

Approach
What is the motivation for this PR?
Fixes flakiness nhop_group failures on chassis.
We observe flakiness failure on chassis devices
Suspect it's because the route is not programmed into hardware
Add external sleep to make sure route is in hardware

How did you do it?
Add extra waiting time for chassis device port toggle tests.

How did you verify/test it?
Run on PR test, and physical test passes

ipfwd/test_nhop_group.py::test_nhop_group_member_count PASSED [ 20%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-2] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 40%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [ 60%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-0] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 80%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [100%]

authorized by: [email protected]
wangxin pushed a commit to wangxin/sonic-mgmt that referenced this pull request Feb 21, 2025
…t_hop

[Chassis] Fix flakiness of nhop_group, routes not programmed into hardware after port toggle (sonic-net#16959)

Description of PR
Summary:
Fixes flakiness nhop_group failures on chassis.

Approach
What is the motivation for this PR?
Fixes flakiness nhop_group failures on chassis.
We observe flakiness failure on chassis devices
Suspect it's because the route is not programmed into hardware Add external sleep to make sure route is in hardware

How did you do it?
Add extra waiting time for chassis device port toggle tests.

How did you verify/test it?
Run on PR test, and physical test passes

ipfwd/test_nhop_group.py::test_nhop_group_member_count PASSED [ 20%] ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-2] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 40%] ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [ 60%] ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-0] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 80%] ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [100%]

authorized by: [email protected]
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
…dward after port toggle (sonic-net#16959)

…dward after port toggle

Description of PR
Summary:
Fixes flakiness nhop_group failures on chassis.


Approach
What is the motivation for this PR?
Fixes flakiness nhop_group failures on chassis.
We observe flakiness failure on chassis devices
Suspect it's because the route is not programmed into hardware
Add external sleep to make sure route is in hardware

How did you do it?
Add extra waiting time for chassis device port toggle tests.

How did you verify/test it?
Run on PR test, and physical test passes

ipfwd/test_nhop_group.py::test_nhop_group_member_count PASSED [ 20%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-2] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 40%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [ 60%]
ipfwd/test_nhop_group.py::test_nhop_group_member_order_capability[str3-xx-1-0] SKIPPED (Order ECMP is not configured so skipping the test-case) [ 80%]
ipfwd/test_nhop_group.py::test_nhop_group_interface_flap[str3-xx-1-2] PASSED [100%]

authorized by: [email protected]
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.

4 participants