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

Change the test case name to not include 'teamd_' in it #16456

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nhe-NV
Copy link
Contributor

@nhe-NV nhe-NV commented Jan 10, 2025

If the test case name has the 'teamd_' in it, in the loganalyzer, when add the marker, the log will be writen to the /var/log/teamd.log, but not the /var/log/syslog, it will fail the loganalyzer

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
    • Add ownership here(Microsft required only)
  • Test case improvement

Back port request

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

Approach

What is the motivation for this PR?

Change the test cases name to not fail the loganalyzer

When run the test case: tests/pc/test_retry_count.py:: TestNeighborRetryCount:: test_kill_teamd_lag_up, it failed when add_end_marker in the loganalyzer, and could reproduce it by manual.

sudo python /tmp/loganalyzer.py --action add_end_marker --run_id test_kill_teamd_lag_up.2025-01-05-03:24:03
Traceback (most recent call last):
File "/tmp/loganalyzer.py", line 878, in
main(sys.argv[1:])
File "/tmp/loganalyzer.py", line 859, in main
analyzer.place_marker(
File "/tmp/loganalyzer.py", line 262, in place_marker
raise RuntimeError(
RuntimeError: cannot find marker end-LogAnalyzer-test_kill_teamd_lag_up.2025-01-05-03:24:03 in /var/log/syslog

The root cause of the failure is due to the “teamd_” in the log msg. then the log will be direct to the “ /var/log/teamd.log”, so we could not find it in the /var/log/syslog.

In the file, /etc/rsyslog.d/00-sonic.conf, we could found the redirect logic of the log

How did you do it?

How did you verify/test it?

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nhe-NV
Copy link
Contributor Author

nhe-NV commented Jan 11, 2025

/azp run

Copy link

Commenter does not have sufficient privileges for PR 16456 in repo sonic-net/sonic-mgmt

@nhe-NV nhe-NV requested a review from roy-sror January 11, 2025 11:48
@wangxin
Copy link
Collaborator

wangxin commented Jan 14, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nhe-NV
Copy link
Contributor Author

nhe-NV commented Jan 17, 2025

/azp run

Copy link

Commenter does not have sufficient privileges for PR 16456 in repo sonic-net/sonic-mgmt

@nhe-NV
Copy link
Contributor Author

nhe-NV commented Jan 17, 2025

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

If the test case name has the 'teamd_' in it, in the loganalyzer, when add the marker, the log will be writen to the /var/log/teamd.log, but not the /var/log/syslog, it will fail the loganalyzer
@mssonicbld
Copy link
Collaborator

/azp run

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants