Skip to content

[vlan] add ignore loganalyzer error to autostate-disabled test#11383

Merged
wangxin merged 2 commits intosonic-net:masterfrom
Xichen96:dev/xichenlin/fix-vlan-autostate-disabled
Jan 29, 2024
Merged

[vlan] add ignore loganalyzer error to autostate-disabled test#11383
wangxin merged 2 commits intosonic-net:masterfrom
Xichen96:dev/xichenlin/fix-vlan-autostate-disabled

Conversation

@Xichen96
Copy link
Copy Markdown
Contributor

Description of PR

Add ignore loganalyzer error to autostate-disabled test

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

Ignore potential error that is expected to pass test_autostate_disabled.

How did you do it?

Add ignore loganalyzer error

How did you verify/test it?

Run test manually

Any platform specific information?

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

Documentation

"""
duthost = duthosts[rand_one_dut_hostname]
if loganalyzer:
loganalyzer_ignore_regex = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this fix for all platform or only E1031? If only E1031, I think it's better to check hwsku from duthost first.

Copy link
Copy Markdown
Contributor

@lizhijianrd lizhijianrd left a comment

Choose a reason for hiding this comment

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

LGTM

@wangxin wangxin merged commit 1c9ad7f into sonic-net:master Jan 29, 2024
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jan 29, 2024
…-net#11383)

What is the motivation for this PR?
Ignore potential error that is expected to pass test_autostate_disabled.

How did you do it?
Add ignore loganalyzer error

How did you verify/test it?
Run test manually
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jan 29, 2024
…-net#11383)

What is the motivation for this PR?
Ignore potential error that is expected to pass test_autostate_disabled.

How did you do it?
Add ignore loganalyzer error

How did you verify/test it?
Run test manually
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202311: #11413

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202305: #11414

mssonicbld pushed a commit that referenced this pull request Jan 29, 2024
What is the motivation for this PR?
Ignore potential error that is expected to pass test_autostate_disabled.

How did you do it?
Add ignore loganalyzer error

How did you verify/test it?
Run test manually
mssonicbld pushed a commit that referenced this pull request Jan 29, 2024
What is the motivation for this PR?
Ignore potential error that is expected to pass test_autostate_disabled.

How did you do it?
Add ignore loganalyzer error

How did you verify/test it?
Run test manually
mhen1 pushed a commit to mhen1/sonic-mgmt that referenced this pull request Jan 31, 2024
…-net#11383)

What is the motivation for this PR?
Ignore potential error that is expected to pass test_autostate_disabled.

How did you do it?
Add ignore loganalyzer error

How did you verify/test it?
Run test manually
wangxin pushed a commit that referenced this pull request Feb 23, 2024
In PR #11383, we try to ignore autoneg related error logs in loganalyzer.
However, some logs with below format are not marched by previous regex.

Feb 17 11:39:40.131019 e1031-1 ERR swss#orchagent: message repeated 2 times: [ :- doPortTask: Ethernet52: autoneg is not supported (cap=0)]

In current PR, I updated the regex to ignore above logs.

What is the motivation for this PR?
Update loganalyzer regex in test_autostate_disabled to ensure all the autoneg related error logs are ignored on Celestica-E1031 platform.

How did you do it?
Updated regex in testcase.

How did you verify/test it?
Verified on Celestica-E1031 M0 testbed with SONiC.202305 image.
 
Any platform specific information?
This PR only for Celestica-E1031 platform.
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Feb 23, 2024
…t#11757)

In PR sonic-net#11383, we try to ignore autoneg related error logs in loganalyzer.
However, some logs with below format are not marched by previous regex.

Feb 17 11:39:40.131019 e1031-1 ERR swss#orchagent: message repeated 2 times: [ :- doPortTask: Ethernet52: autoneg is not supported (cap=0)]

In current PR, I updated the regex to ignore above logs.

What is the motivation for this PR?
Update loganalyzer regex in test_autostate_disabled to ensure all the autoneg related error logs are ignored on Celestica-E1031 platform.

How did you do it?
Updated regex in testcase.

How did you verify/test it?
Verified on Celestica-E1031 M0 testbed with SONiC.202305 image.
 
Any platform specific information?
This PR only for Celestica-E1031 platform.
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Feb 23, 2024
…t#11757)

In PR sonic-net#11383, we try to ignore autoneg related error logs in loganalyzer.
However, some logs with below format are not marched by previous regex.

Feb 17 11:39:40.131019 e1031-1 ERR swss#orchagent: message repeated 2 times: [ :- doPortTask: Ethernet52: autoneg is not supported (cap=0)]

In current PR, I updated the regex to ignore above logs.

What is the motivation for this PR?
Update loganalyzer regex in test_autostate_disabled to ensure all the autoneg related error logs are ignored on Celestica-E1031 platform.

How did you do it?
Updated regex in testcase.

How did you verify/test it?
Verified on Celestica-E1031 M0 testbed with SONiC.202305 image.
 
Any platform specific information?
This PR only for Celestica-E1031 platform.
mssonicbld pushed a commit that referenced this pull request Feb 23, 2024
In PR #11383, we try to ignore autoneg related error logs in loganalyzer.
However, some logs with below format are not marched by previous regex.

Feb 17 11:39:40.131019 e1031-1 ERR swss#orchagent: message repeated 2 times: [ :- doPortTask: Ethernet52: autoneg is not supported (cap=0)]

In current PR, I updated the regex to ignore above logs.

What is the motivation for this PR?
Update loganalyzer regex in test_autostate_disabled to ensure all the autoneg related error logs are ignored on Celestica-E1031 platform.

How did you do it?
Updated regex in testcase.

How did you verify/test it?
Verified on Celestica-E1031 M0 testbed with SONiC.202305 image.
 
Any platform specific information?
This PR only for Celestica-E1031 platform.
mssonicbld pushed a commit that referenced this pull request Feb 23, 2024
In PR #11383, we try to ignore autoneg related error logs in loganalyzer.
However, some logs with below format are not marched by previous regex.

Feb 17 11:39:40.131019 e1031-1 ERR swss#orchagent: message repeated 2 times: [ :- doPortTask: Ethernet52: autoneg is not supported (cap=0)]

In current PR, I updated the regex to ignore above logs.

What is the motivation for this PR?
Update loganalyzer regex in test_autostate_disabled to ensure all the autoneg related error logs are ignored on Celestica-E1031 platform.

How did you do it?
Updated regex in testcase.

How did you verify/test it?
Verified on Celestica-E1031 M0 testbed with SONiC.202305 image.
 
Any platform specific information?
This PR only for Celestica-E1031 platform.
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