Bug 1373095 - Task export shall add extracted log files in foreman-debug
Summary: Task export shall add extracted log files in foreman-debug
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Debug
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium vote
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Adam Ruzicka
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-05 07:22 UTC by Lukas Zapletal
Modified: 2019-04-01 20:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-23 11:48:56 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14878 0 None None None 2016-09-05 08:02:26 UTC
Red Hat Bugzilla 1274694 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Bugzilla 1370224 0 high CLOSED foreman-debug does not properly collect foreman-tasks export 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1416119 0 medium CLOSED [RFE] foreman-debug takes > 1 hour to complete at scale 2021-09-09 12:08:36 UTC

Internal Links: 1274694 1370224 1416119

Description Lukas Zapletal 2016-09-05 07:22:36 UTC
Task exported creates a tar.gz file which is then added to foreman-debug via add_file statement, but the contract requires only plain text (log) files to be added. There is additional filtering going on underneath, which fails for tarballs creating an output file in invalid format (broken tar).

We need to change the task export foreman-debug statement to create those files unextracted. They can be added all via

add_files /path/to/foreman-export/directory/*
Everything will be compressed, there is no need to create tarballs or compressed tarballs.

TRIAGE NOTES: We need to backport this to improve debug experience for 6.2.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=1274694

Comment 3 Bryan Kearney 2016-09-05 10:19:03 UTC
Upstream bug assigned to inecas

Comment 4 Bryan Kearney 2016-09-05 10:19:05 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/14878 has been resolved.

Comment 5 Adam Ruzicka 2017-08-23 11:48:56 UTC
This is not relevant anymore, 6.3 dropped task export in favor of csv export[1], 6.2.z has this fixed and verified as [2]

[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1416119
[2] - https://bugzilla.redhat.com/show_bug.cgi?id=1370224


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