Bug 1372884
Summary: | foreman-debug to collect whole newest (log)files instead of tailing all (log)files | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Pavel Moravec <pmoravec> |
Component: | Logging | Assignee: | Pavel Moravec <pmoravec> |
Status: | CLOSED ERRATA | QA Contact: | Perry Gagne <pgagne> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2.0 | CC: | aruzicka, cwelton, inecas, jcallaha, oshtaier, pdwyer, pmoravec |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://projects.theforeman.org/issues/16680 | ||
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:54:37 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: |
Description
Pavel Moravec
2016-09-03 08:23:30 UTC
+1 on this approach as opposed to the current one TL;DR -1 does not make much sense, will make things worse actually. This approach has some downsides as well. There are directories with multiple logs very often. If you happen to have two log file sets, one updated often and the other not, you will end up with some files ignored completely. And we have that! /var/log/foreman/production.log /var/log/foreman/cron.log /var/log/foreman/apipie_cache.log /var/log/foreman/db_seed.log /var/log/foreman/plugins /var/log/foreman/db_migrate.log With your approach, you will end up having all production.XXX.log files but once you hit the hard limit, you won't see the others. If a customer have let's say 2 GBs of Apache logs, you somehow need to do the cut at the end of the day, otherwise you'll end up with gigabytes tarballs which is not useful. Today, you can use -m0 option to get all (untruncated) logs. Everytime you encounter a problem with incomplete log file, simply ask the customer to do the full log. I think 5000 lines is a sane default to get orientated in the problem. If you always prefer bigger tarball, ask your customers to use -m0 option. (*) (*) the -m0 is recent change, you can use -m 99999999 for older versions of Satellite. The broken gzip was fixed recently and it's awaiting for 6.2 z-stream errata And to be fair, I think we should change this RFE to: Add an option to ignore files older than X months And we should provide a sane default (let's say 6 months). Since the upstream work affects 3 different projects (foreman, smart proxy and katello packaging), 3 upstream issues created accordingly for the 3 upstream PRs accordingly. Upstream bug component is Uncategorized List of upstream PRs (it's getting broader): - https://github.com/Katello/katello-packaging/pull/297 - (fixes #17114) - https://github.com/theforeman/smart-proxy/pull/461 - (fixes #17069) - https://github.com/theforeman/foreman/pull/3881 - (fixes #17044) - https://github.com/theforeman/foreman-tasks/pull/209 - (fixes #17179) - https://github.com/theforeman/foreman-packaging/pull/1404 - (applies #17179) Upstream bug component is Tasks Plugin As far as I can tell all upstream PRs have been merged, is that correct Pavel? If so please move this bug to POST. Right, all upstream PRs merged. Here is the complete definitive list: - https://github.com/Katello/katello-packaging/pull/297 - (fixes #17114) - https://github.com/theforeman/smart-proxy/pull/461 - (fixes #17069) - https://github.com/theforeman/foreman/pull/3881 - (fixes #17044) - https://github.com/theforeman/foreman-tasks/pull/209 - (fixes #17179) - https://github.com/theforeman/foreman-packaging/pull/1423 - (applies #17179) 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
|