RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2040812 - Logging role "logging_purge_confs" option not properly working
Summary: Logging role "logging_purge_confs" option not properly working
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.5
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.6
Assignee: Rich Megginson
QA Contact: David Jež
Eliane Ramos Pereira
Whiteboard: role:logging
: 1990985 2039107 (view as bug list)
Depends On:
Blocks: 2047195
TreeView+ depends on / blocked
Reported: 2022-01-14 18:20 UTC by Brian Smith
Modified: 2022-05-10 14:40 UTC (History)
8 users (show)

Fixed In Version: rhel-system-roles-1.12.0-1.el8
Doc Type: Bug Fix
Doc Text:
.The `logging_purge_confs` option no longer fails to delete unnecessary configuration files Previously, the `logging_purge_confs` variable was prepared to delete unnecessary logging configuration files, but failed to clean them up. Consequently, even though the `logging_purge_confs` variable was set to true, unnecessary configuration files were not cleaned up, but left in the configuration directory. This issue is now fixed and the `logging_purge_confs` variable has been redefined to work as follows. * If `logging_purge_confs` is set to `true`, it removes files in `rsyslog.d` which do not belong to any rpm packages. That includes configuration files generated by the previous `logging` role run. The `logging_purge_confs` default value is `false`.
Clone Of:
: 2047195 (view as bug list)
Last Closed: 2022-05-10 14:12:46 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github linux-system-roles logging pull 264 0 None Merged Refactor logging_purge_confs and logging_restore_confs. 2022-01-18 16:50:27 UTC
Github linux-system-roles logging pull 265 0 None open make purge and reset idempotent 2022-01-21 20:12:34 UTC
Red Hat Issue Tracker RHELPLAN-108221 0 None None None 2022-01-14 18:23:18 UTC
Red Hat Product Errata RHBA-2022:1896 0 None None None 2022-05-10 14:13:12 UTC

Description Brian Smith 2022-01-14 18:20:46 UTC
Description of problem:
The logging role "logging_purge_confs" option is not properly working.  

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

How reproducible: 

Steps to Reproduce:
1. Call logging role with "logging_purge_confs" set to true

Additional info:
Issue being worked on upstream: https://github.com/linux-system-roles/logging/pull/240

Comment 2 Noriko Hosoi 2022-01-18 20:47:41 UTC
*** Bug 2039107 has been marked as a duplicate of this bug. ***

Comment 3 Noriko Hosoi 2022-01-18 21:34:10 UTC
*** Bug 1990985 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2022-05-10 14:12:46 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 (rhel-system-roles 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.


Note You need to log in before you can comment on or make changes to this bug.