Skip to content

Ignore loganalyzer errors for rsyslog RELP#13853

Merged
yxieca merged 3 commits intosonic-net:masterfrom
saiarcot895:loganalyzer-ignore-errors-for-relp
Aug 1, 2024
Merged

Ignore loganalyzer errors for rsyslog RELP#13853
yxieca merged 3 commits intosonic-net:masterfrom
saiarcot895:loganalyzer-ignore-errors-for-relp

Conversation

@saiarcot895
Copy link
Contributor

@saiarcot895 saiarcot895 commented Jul 26, 2024

Description of PR

Summary:
Fixes # (issue)

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?

Ignore loganalyzer error messages about rsyslog not being able to send messages from the container to the host if either the host's rsyslogd is going down, or the container is going down.

This is in preparation for sonic-net/sonic-buildimage#18113.

How did you do it?

Modify the loganalyzer ignore list to ignore syslog messages matching the two regexes.

How did you verify/test it?

Run syslog/test_syslog.py test case and verify that it doesn't fail because of loganalyzer.

Any platform specific information?

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

Documentation

If rsyslogd on the host goes down, and rsyslogd on the containers is
configured to use librelp to forward messages to the host rsyslogd
(instead of UDP), then there will be error messages from the container
rsyslogd about not being able to forward messages.

Ignore these error messages as they are expected when running tests
which may restart rsyslogd.

This is in preparation for sonic-net/sonic-buildimage#18113

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This appears to happen when the container's rsyslogd is going down.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@saiarcot895 saiarcot895 requested a review from yxieca August 1, 2024 20:35
@yxieca yxieca merged commit 101c257 into sonic-net:master Aug 1, 2024
@saiarcot895 saiarcot895 deleted the loganalyzer-ignore-errors-for-relp branch August 1, 2024 20:47
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
* Ignore errors about rsyslogd w/ librelp not being able to send syslogs

If rsyslogd on the host goes down, and rsyslogd on the containers is
configured to use librelp to forward messages to the host rsyslogd
(instead of UDP), then there will be error messages from the container
rsyslogd about not being able to forward messages.

Ignore these error messages as they are expected when running tests
which may restart rsyslogd.

This is in preparation for sonic-net/sonic-buildimage#18113

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
* Ignore errors about rsyslogd w/ librelp not being able to send syslogs

If rsyslogd on the host goes down, and rsyslogd on the containers is
configured to use librelp to forward messages to the host rsyslogd
(instead of UDP), then there will be error messages from the container
rsyslogd about not being able to forward messages.

Ignore these error messages as they are expected when running tests
which may restart rsyslogd.

This is in preparation for sonic-net/sonic-buildimage#18113

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
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