Skip to content

Add script for logrotate test#6895

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
echuawu:log_rotate_script
Nov 28, 2022
Merged

Add script for logrotate test#6895
liat-grozovik merged 1 commit intosonic-net:masterfrom
echuawu:log_rotate_script

Conversation

@echuawu
Copy link
Copy Markdown
Contributor

@echuawu echuawu commented Nov 25, 2022

Add test for logrotate test to cover PR #9504 [rsyslog]Setting log file size to 16Mb

Description of PR

Summary:
Add logrotate test for rotate size of 16MB and 1MB

  1. For normal size var log partition:
    There should be no logrotate process when rsyslog size is smaller than threshold 16M
    There will be logrotate process when rsyslog size is larger than threshold 16M
  2. For small size var log partition(simulate a 100MB var log partition)
    There should be no logrotate process when rsyslog size is smaller than threshold 1024K
    There will be logrotate process when rsyslog size is larger than threshold 1024K

Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Add test for sonic-net/sonic-buildimage#9504

How did you do it?

Execute test script for logrotate

How did you verify/test it?

Add logrotate test for rotate size of 16MB and 1MB

  1. For normal size var log partition:
    There should be no logrotate process when rsyslog size is smaller than threshold 16M
    There will be logrotate process when rsyslog size is larger than threshold 16M
  2. For small size var log partition(simulate a 100MB var log partition)
    There should be no logrotate process when rsyslog size is smaller than threshold 1024K
    There will be logrotate process when rsyslog size is larger than threshold 1024K

Any platform specific information?

Any platform

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

Any topology

Documentation

Add test for logrotate test
PR sonic-net#9504 [rsyslog]Setting log file size to 16Mb
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Nov 25, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

@echuawu
Copy link
Copy Markdown
Contributor Author

echuawu commented Nov 25, 2022

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@echuawu
Copy link
Copy Markdown
Contributor Author

echuawu commented Nov 25, 2022

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik liat-grozovik merged commit 34c8ce6 into sonic-net:master Nov 28, 2022
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.

5 participants