Bug 2040812 - Logging role "logging_purge_confs" option not properly working
Summary: Logging role "logging_purge_confs" option not properly working
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.5
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: rc
: 8.6
Assignee: Rich Megginson
QA Contact: David Jež
Eliane Ramos Pereira
URL:
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)
Environment:
Last Closed: 2022-05-10 14:12:46 UTC
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)


Links
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):
rhel-system-roles-1.7.3-2.el8.noarch

How reproducible: 
Everytime

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.

https://access.redhat.com/errata/RHBA-2022:1896


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