Skip to content

[SE-2741] Clean up tmp folder if OCIM appserver provisioning fails

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:

  1. Edit this line to raise an Error.
  2. 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.
  3. Do the same with this branch and verify that the temporary folders are deleted.

Reviewers

  • @swalladge

Merge request reports