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

[Log Analyzer] Update the log analyzer init flow #16610

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

congh-nvidia
Copy link
Contributor

Description of PR

Summary:

Because we have the rsyslog rate limit, there could be wrong loganalyzer failures in the below scenario:

  1. log analyzer is disabled in test A, and it produces a lot of syslogs including errors, which is expected.
  2. The errors are suppressed due to the log rate limit.
  3. Test B starts with loganalyzer, and the errors are printed to syslog during test B.
  4. Log analyzer reports the errors which should be ignored in test A.

We should flush the rsyslog before the log analyzer adds start marker.

Type of change

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

Back port request

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

Approach

What is the motivation for this PR?

See the summary.

How did you do it?

See the summary.

How did you verify/test it?

Run regression with the change, issue not reproduced, no side effects observed.

Any platform specific information?

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

Documentation

Because we have the rsyslog rate limit, there could be wrong loganalyzer failures in the below scenario:
1. log analyzer is disabled in test A, and it produces a lot of syslogs including errors, which is expected.
2. The errors are suppressed due to the log rate limit.
3. Test B starts with loganalyzer, and the errors are printed to syslog during test B.
4. Log analyzer reports the errors which should be ignored in test A.

We should flush the rsyslog before the log analyzer adds start marker.

Change-Id: I54b2923589926a9bef9ea696f7384108fd461e61
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@congh-nvidia
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@congh-nvidia
Copy link
Contributor Author

/azp run

Copy link

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

@congh-nvidia
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@congh-nvidia
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

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

Successfully merging this pull request may close these issues.

2 participants