Bug 1754117

Summary: firewalld logs are not rotated
Product: Red Hat Enterprise Linux 7 Reporter: Robert McSwain <rmcswain>
Component: firewalldAssignee: Eric Garver <egarver>
Status: CLOSED ERRATA QA Contact: Tomas Dolezal <todoleza>
Severity: high Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: high    
Version: 7.7CC: egarver, jmaxwell, todoleza
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: firewalld-0.6.3-10.el7 Doc Type: Bug Fix
Doc Text:
.RHEL rotates `firewalld` log files Previously, RHEL did not rotate `firewalld` log files. As a consequence, the `/var/log/firewalld` log file grew indefinitely. This update adds the `/etc/logrotate.d/firewalld` log rotation configuration file for the `firewalld` service. As a result, the `/var/log/firewalld` log is rotated, and users can customize the rotation settings in the `/etc/logrotate.d/firewalld` file.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 19:21:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert McSwain 2019-09-20 20:48:07 UTC
Description of problem:
as long as logs are not rotated they will grow indefinitely and eventually take unnecessary amounts of disk space, it'd seem best to add log rotation regardless in an upcoming version.

Version-Release number of selected component (if applicable):
RHV-M 4.2.8 and 4.3.5, and the latest hypervisors for both releases

How reproducible:
100%

Steps to Reproduce:
1. Install the hypervisor and observe that firewall logs do not rotate. 
2. Observe that there is no policy to rotate logs in /etc/logrotate.d/

Actual results:
Logs grow indefinitely

Expected results:
Logs rotate once a week or more

Comment 1 Sandro Bonazzola 2019-09-23 06:47:08 UTC
Moving this to platform firewalld component. Assuming this is a real issue, it should be solved at platform level.

Comment 10 Eric Garver 2020-02-19 12:56:19 UTC
upstream:

   bd17df59bc34 ("fix: add logrotate policy")

Comment 21 errata-xmlrpc 2020-09-29 19:21:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (firewalld bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3863