Bug 1643587
| Summary: | default of "nsslapd-errorlog-maxlogsperdir: 1" causing huge log files | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Josip Vilicic <jvilicic> |
| Component: | 389-ds-base | Assignee: | mreynolds |
| Status: | CLOSED ERRATA | QA Contact: | RHDS QE <ds-qe-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.5 | CC: | aadhikar, cpelland, gparente, lkrispen, msauton, nkinder, pasik, rmeggins, spichugi, tbordaz, tmihinto, vashirov |
| Target Milestone: | rc | ||
| Target Release: | 7.7 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-base-1.3.9.1-1.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: Setting a verbose error logging level
Consequence: The error log will not be rotated once it hits the maximum file size
Fix: There was code logic that prevented the error log from being rotated if there is only one log set for "maximum number of logs". We changed the default to allow 2 error logs.
Result: The errors log is rotated as expected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-08-06 12:58:51 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
Josip Vilicic
2018-10-26 15:39:31 UTC
If the maximum number of logs is set to "1" then unfortunately we never rotate it. We should set the errors log default to "2" (which is the workaround), otherwise maxlogsize is just ignored and the log growth is unchecked. Upstream ticket: https://pagure.io/389-ds-base/issue/50153 Build Tested: 389-ds-base-1.3.9.1-5.el7.x86_64 Steps: 1) Do a ldapsearch on a fresh LDAP instance to check the default value for nsslapd-errorlog-maxlogsperdir attribute. [root@aadhikar ~]# ldapsearch -xLLL -p 389 -h localhost -D "cn=Directory Manager" -w password -b "cn=config" | grep nsslapd-errorlog-maxlogsperdir nsslapd-errorlog-maxlogsperdir: 2 The default value is correct, hence Marking it as VERIFIED. 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, 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-2019:2152 |