Bug 1391032 - foreman-debug does not include compressed /var/log/messages
Summary: foreman-debug does not include compressed /var/log/messages
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Debug
Version: 6.2.2
Hardware: Unspecified
OS: Unspecified
medium
medium vote
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Ondřej Pražák
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2016-11-02 12:43 UTC by Peter Vreman
Modified: 2019-04-01 20:27 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 17044 0 None None None 2017-08-07 16:04:00 UTC

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


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