Project

General

Profile

Feature #33193

Add a logrotate entry for /var/log/foreman-maintain

Added by Amit Upadhye 3 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
RPMs
Target version:

Description

Description of problem:
foreman-maintain tool can easily generate a lot of logs (i.e. when used as a services check tool every few minutes). Default Satellite deployment should housekeep those logs automatically, similarly like e.g. /var/log/foreman or /var/log/foreman-proxy .

Please provide in part of foreman-maintain package a file like (copy from foreman logs):

  1. cat /etc/logrotate.d/foreman-maintain
  2. Foreman-maintain logs:
    /var/log/foreman-maintain/*.log {
    daily
    missingok
    rotate 14
    compress
    delaycompress
    notifempty
    copytruncate
    } #

Version-Release number of selected component (if applicable):
Sat6.9

How reproducible:
100%

Steps to Reproduce:
1. Repeatedly run "foreman-maintain service status" or any other f-m command
2. Check that the /var/log/foreman-maintain/foreman-maintain.log* logs are never logrotated / housekept.

Actual results:
2. No logrotation.

Expected results:
2. Some reasonable logrotation (not necessarily the one I suggested).

Additional info:

Associated revisions

Revision 9d53d0d2 (diff)
Added by Amit Upadhye 3 months ago

Fixes #33193 - Add logrotate configuration file

History

#1 Updated by Amit Upadhye 3 months ago

  • Bugzilla link set to 1963956
  • Tracker changed from Support to Feature

#2 Updated by Amit Upadhye 3 months ago

  • Project changed from Foreman Maintain to Packaging

#3 Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/6964 added

#4 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases 3.0.0 added

#5 Updated by Amit Upadhye 3 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Amit Upadhye 3 months ago

  • Target version set to 3.0.0
  • Category set to RPMs

#7 Updated by The Foreman Bot about 1 month ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/7127 added

Also available in: Atom PDF