Red Hat Bugzilla – Bug 1280353
Failed data uploads cause data to be left in /var/tmp
Last modified: 2016-11-07 22:48:31 EST
Across our environment, we see occasional failures to upload data to redhat-access-insights for various reasons. The problem is that when such failures occur, temp directories are left in /var/tmp. I have found some node with dozens of these which have accumulated over several months.
We can tmpwatch the directory, but since the top-level directory doesn't have a special prefix, it's hard to specifically target directories generated by RHAI.
So I'm suggesting two things here:
1) When an upload fails, remove the temp dir (people might want a boolean config option for this)
2) name the temp dir with a prefix, maybe "rhai-", so we can more easily find and delete these.
please, could you share the information on
1) how was this BZ fixed and
2) how to test it?
This BZ was fixed by
1) Always deleting the archive after upload
2) An exit handler that will delete temporary files if the upload is interrupted
Both, will, however retain the archive if "--keep-archive" is specified.
Path 1 can be tested by running a normal upload, path 2 can be tested by canceling the upload with a Ctrl+C interrupt.
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.