Project

General

Profile

Bug #12978

foreman-debug -m 0 to collect all files

Added by Pavel Moravec over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
foreman-debug
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Description of problem:
foreman-debug should have an option to collect all logs. It already has option -m to limit number of lines per file collected, but -m0 means files are emtpy ("tail -n0" is called).

Please fix -m 0 to collect whole file, not its zero-length tail.

Version-Release number of selected component (if applicable):
foreman-debug-1.7.2.49-1.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. foreman-debug m 0
2. unpack the generated archive
3. wc foreman-debug
*/var/log/katello-installer/katello-installer.log

Actual results:
3. shows empty logfile collected

Expected results:
the collected log file should be the same like original

Additional info:

Associated revisions

Revision 51f005e1 (diff)
Added by Pavel Moravec over 3 years ago

Fixes #12978 - foreman-debug -m 0 to collect all files

For -m 0, call "cat" instead of "tail -n $MAXLINES"

Signed-off-by: Pavel Moravec <>

History

#1 Updated by Dominic Cleal over 3 years ago

  • Category set to foreman-debug

#2 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3021 added

#3 Updated by Pavel Moravec over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal over 3 years ago

  • Assignee set to Pavel Moravec
  • Legacy Backlogs Release (now unused) set to 71

Also available in: Atom PDF