[SE-2741] Clean up tmp folder if OCIM appserver provisioning fails
requested to merge github/fork/fferrin/SE-2741-clean-up-tmp-folder-if-ocim-appserver-provisioning-fails into master
Created by: fferrin
This PR cleans up tmp folder if OCIM appserver provisioning fails. These folders are used to store git checkouts and virtual environments in /tmp
folder. If provisioning fails and the size of /tmp
is large, tmpreaper
cannot seem to delete unused files.
JIRA tickets: SE-2741
Testing instructions:
- Edit this line to raise an
Error
. - From any other branch other than this one, launch new appservers and wait until it fails. Check that a folder
tmp <8 chars or number>
appears in the/tmp
folder with datetime after launching the appserver. - Do the same with this branch and verify that the temporary folders are deleted.
Reviewers
-
@swalladge