Skip to content

[pc] Skip lacp_rate test on Nokia physical platforms#25513

Open
bingwang-ms wants to merge 1 commit into
sonic-net:masterfrom
bingwang-ms:fix/lag2-skip-lacp-rate-nokia
Open

[pc] Skip lacp_rate test on Nokia physical platforms#25513
bingwang-ms wants to merge 1 commit into
sonic-net:masterfrom
bingwang-ms:fix/lag2-skip-lacp-rate-nokia

Conversation

@bingwang-ms

Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
Nokia TH6 hardware does not honor LACP short-timeout (fast rate). The lacp_rate test sets the VM neighbor to fast LACP rate (1s) but Nokia TH6 continues to send LACP PDUs at the default 30s slow rate. This causes LACP state inconsistency — the member port gets deselected — making single_lag also fail.

This fix skips lacp_rate on Nokia physical platforms, following the same pattern as the existing KVM/vsonic skip.

Verified: Test body correctly skips for Nokia TH6 (no LACP operations between setup and teardown confirmed via log analysis on vms13-lt2-nokia-th6-1).

Type of change

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

Back port request

  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

Nokia TH6 ASIC does not implement LACP short-timeout (fast rate). The hardware ignores LACP fast-rate requests and always sends PDUs at the 30s slow rate. This causes the lacp_rate test to fail and, as a side effect, also causes single_lag to fail due to the resulting LACP state inconsistency.

How did you do it?

Added a platform check any('nokia' in dut.facts.get('platform', '').lower() for dut in duthosts) inside the testcase == 'lacp_rate' guard, following the same pattern as the existing vsonic skip.

How did you verify/test it?

Ran test_lag[...|PortChannel352-lacp_rate] on vms13-lt2-nokia-th6-1 (Nokia IXR7220 H6, Nokia-IXR7220-H6-O256). Confirmed via test logs that test setup ran, the Nokia skip was triggered immediately (no LACP operations logged between setup and teardown), and test teardown ran.

Any platform specific information?

Nokia TH6 (Nokia-IXR7220-H6-O256, x86_64-nokia_ixr7220_h6_128-r0) with platform_asic=broadcom. Platform is detected via 'nokia' in dut.facts['platform'].lower().

Supported testbed topology if it is a new test case?

N/A

Documentation

Nokia physical hardware (e.g., Nokia-IXR7220-H6-O256) does not honor
LACP short-timeout (fast rate). The DUT always sends LACP PDUs at the
slow 30-second interval regardless of the peer's LACP rate setting.

This causes test_lag[lacp_rate] to fail with:
  AssertionError: 30.00 seconds while expected timing is 1 seconds

Additionally, the LACP rate mismatch during the failed test leaves the
LACP state machine in an inconsistent state, which causes subsequent
single_lag test to fail with member ports in deselected state.

Skip lacp_rate for Nokia physical platforms, similar to the existing
KVM/vsonic skip.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Bing Wang <bingwang@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld added Request for 202505 branch Request for 202511 branch Request to backport a change to 202511 branch labels Jun 20, 2026
@mssonicbld

Copy link
Copy Markdown
Collaborator

This PR has backport request for branch(es): 202505,202511.
Added label(s) for branch(es) 202505,202511.

---Powered by SONiC BuildBot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Request for 202505 branch Request for 202511 branch Request to backport a change to 202511 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants