Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip BGPAllowListMgr syslog in test_bgp_prefix_tc1_suite for Cisco 8111 CompuateAI deployment #14367

Conversation

wsycqyz
Copy link
Contributor

@wsycqyz wsycqyz commented Sep 2, 2024

Description of PR

Summary:
Skip BGPAllowListMgr syslog in test_bgp_prefix_tc1_suite for Cisco 8111 CompuateAI deployment

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

Skip BGPAllowListMgr syslog in test_bgp_prefix_tc1_suite for Cisco 8111 CompuateAI deployment
Cisco 8111 ComputeAI deployment does NOT use allow list like ALLOW_LIST_DEPLOYMENT_ID_0_V4, ALLOW_LIST_DEPLOYMENT_ID_0_V6

How did you do it?

Add syslog pattern to ignore list.

How did you verify/test it?

Test with physical testbed.
Run with cli:
./run_tests.sh -i ../ansible/str3,../ansible/veos -r -l info -u -m individual -e "--skip_sanity" -n vms66-t1-8111-01 -c generic_config_updater/test_bgp_prefix.py::test_bgp_prefix_tc1_suite
Get result:
======================================================== 2 passed, 1 warning in 312.84s (0:05:12) =========================================================

Any platform specific information?

Cisco 8111 ComputeAI deployment

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

Documentation

"""Ignore expected failures logs during test execution."""
if loganalyzer:
IgnoreRegex = [
".*ERR bgp#bgpcfgd: BGPAllowListMgr::Default action community value is not found.*",
Copy link
Collaborator

Choose a reason for hiding this comment

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

test_bgp_prefix_tc1_suite is to add the prefix in the allow list, it should not care if we have the allow list by default or not. Could you indicate why we still need to ignore this error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Testcase didn't care about allow list. It is the BGPAllowListMgr script in the image will check the allow list, which will cause the syslog error, then captured by log analyzer.

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #14390

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Sep 3, 2024
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Sep 3, 2024
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #14392

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #14391

hdwhdw pushed a commit to hdwhdw/sonic-mgmt that referenced this pull request Sep 20, 2024
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
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.

3 participants