Bug 1787456
Summary: | [RFE] Candlepin log rotation settings should be user-configurable | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | patalber | |
Component: | Candlepin | Assignee: | candlepin-bugs | |
Status: | CLOSED ERRATA | QA Contact: | Vladimír Sedmík <vsedmik> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 6.6.0 | CC: | bkearney, b.prins, csnyder, dsynk, jentrena, nmoumoul, pcreech, pdwyer, rvdwees | |
Target Milestone: | 6.13.0 | Keywords: | FutureFeature, Triaged | |
Target Release: | Unused | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | candlepin-4.2.8-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2112308 (view as bug list) | Environment: | ||
Last Closed: | 2023-05-03 13:20:29 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: | ||||
Bug Depends On: | 2112308 | |||
Bug Blocks: |
Description
patalber
2020-01-02 22:45:12 UTC
Would we rather implement this as requested or implement the option to have candlepin log to journalctl or rsyslog? Chris, I will take this back to the customer and ask. As stated, it appears that they would like the option of configuring this via the installer, but they may change their minds if it is logged via journalctl or rsyslog. Thank you for the response. --Patrick Hi Chris, Here is the response from the customer: "I'm pretty un-opinionated about the mechanism that handles the log rotation. Just glancing at the history, it looks like it was originally in logrotate then moved to logback. As long as we can get some control over tuning the log retention policy I think it will satisfy our needs." Looks like the method isn't as important to them as being able to control tuning of the log retention policy. Thanks! --Patrick Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team. Thank you. Verified in Satellite 6.13.0 snap 10 (candlepin-4.2.13-1.el8sat.noarch): Option 1 (Set the logback.xml file as a noreplace-configfile in the candlepin rpm spec) was implemented as solution. Steps to verify: 1) Downgraded candlepin to 4.1.19-1.el8sat 2) In /var/lib/tomcat/webapps/candlepin/WEB-INF/classes/logback.xml, changed the MAX_HISTORY value to 1. 3) Upgraded candlepin back to 4.2.13-1.el8sat 4) Checked the MAX_HISTORY value persisted. 5) Verified that after next logrotate no candlepin logs older than MAX_HISTORY remained in /var/log/candlepin/ Note: For more information how to set rotation of the other logs (audit.log and error.log) see https://access.redhat.com/solutions/4741091 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 (Important: Satellite 6.13 Release), 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/RHSA-2023:2097 |