Skip to content

[master][sonic-mgmt]: Add LogAnalyzer ignore pattern for SAI FEC stat error#23304

Open
ashishalok-arista wants to merge 1 commit intosonic-net:masterfrom
ashishalok-arista:master-ignore-syslog-fec-stat-err
Open

[master][sonic-mgmt]: Add LogAnalyzer ignore pattern for SAI FEC stat error#23304
ashishalok-arista wants to merge 1 commit intosonic-net:masterfrom
ashishalok-arista:master-ignore-syslog-fec-stat-err

Conversation

@ashishalok-arista
Copy link
Contributor

Description of PR

Summary:
test_pfcwd_cli (and other tests using LogAnalyzer) began failing from the March 6, 2026 SAI upgrade (14.1.x → 14.3.x). The upgrade promoted FEC stat failure log messages from INFO to ERROR level, making them visible to LogAnalyzer.

These ERR messages appear ~40 seconds after syncd starts, during FlexCounter's initial counter discovery poll.

Tests that run config reload -y -f as part of setup/teardown restart syncd, triggering a fresh poll cycle each time. Each reload produces a burst of FEC error messages, which LogAnalyzer flags as unexpected.

The existing ignore pattern targets the old message format (failed with error Feature unavailable) and does not match the current format (failed - port: , rc: -16).

Fixes: qual-issue

Type of change

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

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

The SAI upgrade promoted FEC stat failure log messages from INFO to ERROR level, making them visible to LogAnalyzer. These messages appear ~40 seconds after syncd starts during FlexCounter's initial counter discovery poll. Tests that run config reload as part of setup/teardown restart syncd, triggering a fresh poll cycle each time and producing a burst of ERR messages that LogAnalyzer flags as unexpected. The existing ignore pattern no longer matches the current message format.

How did you do it?

Added a LogAnalyzer ignore pattern matching the current message format:
r".* ERR syncd\d*#syncd.*SAI_API_PORT:_brcm_sai_read_fec_stat_err_counters.* failed - port: \d+, rc: -16.*"

How did you verify/test it?

Confirmed the pattern matches the ERR messages observed in the failing test logs.

Any platform specific information?

Applies to broadcom-based platforms

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).

@ashishalok-arista ashishalok-arista force-pushed the master-ignore-syslog-fec-stat-err branch from 9791926 to 58188fc Compare March 25, 2026 12:45
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants