Skip to content

[action] [PR:10867] Fix issue with test_syslog_rate_limit#10982

Merged
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/10867
Dec 8, 2023
Merged

[action] [PR:10867] Fix issue with test_syslog_rate_limit#10982
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/10867

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

There is a race condition in the rate-limit-host test code.
Changing the rate limit via the cli triggers hostcfgd to restart rsyslogd. However there is no wait to make sure this actually happens. This leads to some flakyness where loganalyzer.py would try to put a marker while the rsyslog systemd service is being restarted and crash.

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205
  • 202305

Approach

What is the motivation for this PR?

Fix flaky test to enhance pass rate reliability.

How did you do it?

Reproduced on my testbed, investigated the issue, fixed the issue

How did you verify/test it?

Stressed the test overnight without further failure

There is a race condition in the rate-limit-host
Changing the rate limit via the cli triggers hostcfgd to restart rsyslogd.
However there is no wait to make sure this actually happens.
This leads to some flakyness where loganalyzer.py would try to put a marker while
the rsyslog systemd service is being restarted and crash.
@mssonicbld
Copy link
Collaborator Author

Original PR: #10867

@mssonicbld mssonicbld merged commit b8bd66c into sonic-net:202305 Dec 8, 2023
@mssonicbld mssonicbld deleted the cherry/202305/10867 branch February 4, 2024 09:16
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.

2 participants