-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When insights client is killed the directories in /var/tmp are not removed rhbz#2009773 #3396
Conversation
insights/client/archive.py
Outdated
try: | ||
os.makedirs(keep_archive_dir) | ||
except OSError as e: | ||
logger.error(e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We often get bug reports complaining about stack traces in console output. Maybe we can change this line to logger.debug
? Does printing the exception here print the entire stack trace or just the exception's class & message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It prints the stack trace but it was a leftover of debugging it, also I have noticed the test wasn't good for this method
@xiangce This PR still needs review. |
Signed-off-by: ahitacat <[email protected]>
Signed-off-by: ahitacat <[email protected]>
@xiangce this PR is reviewed and can be merged |
…moved rhbz#2009773 (#3396) * New prefix for temp archive directory and tests Signed-off-by: ahitacat <[email protected]> * keep-archive is stored in /var/cache Signed-off-by: ahitacat <[email protected]> (cherry picked from commit d11d4e7)
…moved rhbz#2009773 (#3396) * New prefix for temp archive directory and tests Signed-off-by: ahitacat <[email protected]> * keep-archive is stored in /var/cache Signed-off-by: ahitacat <[email protected]>
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
rhbz#200973
When insights-client is killed with a SIGKILL signal, as does the
oom-killer
, the directories for the archive created in/var/tmp
aren't removed. That leaves a lot of directories in this path, increasing the size of the/var/tmp
folder.This fix adds the following:
--keep-archive
will be storing the archive outside/var/tmp
, and is up to each user to manage those stored archives