Bug 2040812

Summary: Logging role "logging_purge_confs" option not properly working
Product: Red Hat Enterprise Linux 8 Reporter: Brian Smith <briasmit>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: David Jež <djez>
Severity: unspecified Docs Contact: Eliane Ramos Pereira <elpereir>
Priority: urgent    
Version: 8.5CC: djez, elpereir, fkrska, gfialova, nhosoi, pkettman, rmeggins, spetrosi
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 8.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:logging
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`.
Story Points: ---
Clone Of:
: 2047195 (view as bug list) Environment:
Last Closed: 2022-05-10 14:12:46 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:    
Bug Blocks: 2047195    

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