Bug 1391032

Summary: foreman-debug does not include compressed /var/log/messages
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: Foreman DebugAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Ondřej Pražák <oprazak>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.2CC: bbuckingham, bkearney, ehelms, jcallaha, lzap, oprazak
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/17044
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 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:
Bug Depends On:    
Bug Blocks: 1122832    

Description Peter Vreman 2016-11-02 12:43:28 UTC
Description of problem:
We have enabled compress in logrotate

Our archive /var/log/messages files are named like messages-20161009.gz
These files are not included in foreman-debug


Logrotate setings /etc/logrotate.conf that we use:
----
# use date as a suffix of the rotated file
dateext

# uncomment this if you want your log files compressed
compress
----


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


How reproducible:


Steps to Reproduce:
1. Enable dateext and compress in logroate
2. Force log rotation
3. Run foreman-debug

Actual results:
rotated /var/log/message-YYYYMMDD.gz files are not included

Expected results:
The files /var/log/message-YYYYMMDD.gz are included

Additional info:

Comment 2 Peter Vreman 2016-11-11 10:48:43 UTC
The upstream PR https://github.com/theforeman/foreman/pull/3881 contains also a change that include '/var/log/messages*' that will fix this BZ.

Comment 3 Lukas Zapletal 2016-11-23 11:13:02 UTC
I can confirm, upstream completely changed (and improved) file additions. Unfortunately we passed 6.3 point, so this will be delivered in 6.4.

Comment 4 Lukas Zapletal 2016-11-23 11:14:12 UTC
REL ENG: No patch required for 6.4. Backporting not recommended as this is refactoring of whole foreman-debug.

Comment 9 Lukas Zapletal 2017-08-07 15:32:14 UTC
It is actually in 6.3, sorry about confusion. The change that will fix this is:

http://projects.theforeman.org/issues/17044

Comment 10 Ondřej Pražák 2017-08-16 13:24:26 UTC
Verified.

6.3.0 snap 11

Comment 11 Satellite Program 2018-02-21 16:51:07 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, 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-2018:0336