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

Automation to set size for log rotate and parse dbg logs for specific… #4362

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

sumabai
Copy link
Contributor

@sumabai sumabai commented Jan 8, 2025

… 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
  • Create a test case in Polarion reviewed and approved.
  • Create a design/automation approach doc. Optional for tests with similar tests already automated.
  • Review the automation design
  • Implement the test script and perform test runs
  • Submit PR for code review and approve
  • Update Polarion Test with Automation script details and update automation fields
  • If automation is part of Close loop, update BZ flag qe-test_coverage “+” and link Polarion test

… strings

Signed-off-by: Suma R <sumar@Sumas-MacBook-Pro.local>
Copy link
Contributor

@hkadam134 hkadam134 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Add this label when the PR is good to be merged label Jan 8, 2025
Copy link
Contributor

openshift-ci bot commented Jan 9, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hkadam134, Manimaran-MM, sumabai

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot removed the lgtm Add this label when the PR is good to be merged label Jan 9, 2025
Copy link
Contributor

openshift-ci bot commented Jan 9, 2025

New changes are detected. LGTM label has been removed.

@mergify mergify bot merged commit 88fad30 into red-hat-storage:main Jan 9, 2025
7 of 8 checks passed
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.

3 participants