Bug 1519389

Summary: Foreman-debug must avoid using tmpfs and clean on error
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: Foreman DebugAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Renzo Nuccitelli <rnuccite>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, cwelton, ehelms, inecas
Target Milestone: UnspecifiedKeywords: FieldEngineering, Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/21824
Whiteboard:
Fixed In Version: foreman-1.15.6.34-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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:
Bug Depends On:    
Bug Blocks: 1533259    

Description Lukas Zapletal 2017-11-30 16:37:00 UTC
With increased limits, tarballs are now bigger which can lead into two issues:

1) Directory /tmp can run of space, it is on tmpfs, we need to use /var/tmp

2) When there is a fatal error, there is no cleanup hook in the shell script, collected data are left.

Running out of space in /tmp can be fatal, we need this in 6.3 GA.

Comment 5 Lukas Zapletal 2018-01-25 15:36:29 UTC
The upstream patch is now ready to be merged. Awaiting test pass.

Comment 6 Ivan Necas 2018-01-26 12:59:09 UTC
Adding additional issue that was discovered as part of the testing of the PR

Comment 7 Ivan Necas 2018-01-26 13:05:00 UTC
Adding the katello part of the issue

Comment 9 Renzo Nuccitelli 2018-01-31 20:21:00 UTC
Tar saved on /tmp/var on Satellite 6.3 snap 34.

Comment 10 Satellite Program 2018-02-21 16:54:17 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