Automation to set size for log rotate and parse dbg logs for specific… #4362
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… strings
JIRA:
Set size for log rotate : https://issues.redhat.com/browse/RHCEPHQE-17348
Log parser : https://issues.redhat.com/browse/RHCEPHQE-17349
Fix Description:
Set size for log rotate : Add size str in logrotate.d conf file on each node so that for any debug log in /var/log/caph/
when log size reaches the value set in size string, rotation triggers.
Log parser: Parse through debug logs for specified daemon for specified expected and unexpected strings and report pass when expected strings found and unexpected strings not foudn and fail if vice-versa.
File with above changes:
tests/cephfs/cephfs_system/cephfs_system_utils.py
Wrapper python script updated to use these two tools:
tests/cephfs/cephfs_logs_util.py
Test suite invoking log rotate and log parser:
suites/squid/cephfs/tier-3_cephfs_system_test.yaml
Automation logs:
set size for log rotate: http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-A5LY9D
log parser: http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-X9RPYI
Description
Please include Automation development guidelines. Source of Test case - New Feature/Regression Test/Close loop of customer BZs
click to expand checklist