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

NSFS | Logrotate is not performing for noobaa logs #7998

Merged
merged 1 commit into from
May 9, 2024

Conversation

naveenpaul1
Copy link
Contributor

@naveenpaul1 naveenpaul1 commented Apr 25, 2024

Explain the changes

  1. add script to run logrotate in regular interval

Issues: Fixed #xxx / Gap #xxx

  1. logrotate is not performing for noobaa logs if it is inside the noobaa dir under logrotate.d directory #7993

Testing Instructions:

  1. Verify the noobaa log is getting zipped once log size is more than configure limit.
  • Doc added/updated
  • Tests added

@naveenpaul1 naveenpaul1 marked this pull request as ready for review April 25, 2024 08:16
@guymguym guymguym added this to the 5.15.3 milestone Apr 25, 2024
src/deploy/standalone/logrotate_noobaa.conf Outdated Show resolved Hide resolved
src/deploy/RPM_build/noobaa.spec Outdated Show resolved Hide resolved
@pull-request-size pull-request-size bot added size/M and removed size/S labels May 6, 2024
@naveenpaul1 naveenpaul1 force-pushed the logrotate_not_working branch 3 times, most recently from 761cf09 to f393237 Compare May 6, 2024 09:37
Copy link
Contributor

@aspandey aspandey left a comment

Choose a reason for hiding this comment

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

LGTM

src/deploy/standalone/logrotate_noobaa.sh Outdated Show resolved Hide resolved
src/deploy/standalone/noobaa_syslog.conf Outdated Show resolved Hide resolved
src/deploy/standalone/noobaa_syslog.conf Outdated Show resolved Hide resolved
src/deploy/standalone/logrotate_noobaa.conf Outdated Show resolved Hide resolved
src/deploy/RPM_build/noobaa.spec Outdated Show resolved Hide resolved
@naveenpaul1 naveenpaul1 force-pushed the logrotate_not_working branch 2 times, most recently from dcf3e74 to ea5c177 Compare May 7, 2024 05:36
@naveenpaul1 naveenpaul1 requested a review from guymguym May 7, 2024 05:53
@guymguym guymguym modified the milestones: 5.15.3, 5.15.4 May 8, 2024
@naveenpaul1 naveenpaul1 force-pushed the logrotate_not_working branch 2 times, most recently from de2b20b to 71b2eb5 Compare May 8, 2024 18:39
Copy link
Member

@guymguym guymguym left a comment

Choose a reason for hiding this comment

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

Minor fix suggested to docs.
Looks good!
Thanks for the hard work on this.

Remember to create an issue for technical gap to "NC | syslogs are sent twice" - Since debug_module sends every log message to two targets (but native code logs only to stderr at the moment) -

  1. syslog facility local0 - then rsyslog omfile copies it to /var/log/noobaa.log
  2. stdout/stderr - then systemd copies it into its journal and then rsyslog imjournal copies it to the file /var/log/messages.

docs/non_containerized_NSFS.md Outdated Show resolved Hide resolved
Signed-off-by: naveenpaul1 <napaul@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants