Bug 977564 - Ruby cart is leaving tmp/vendor
Summary: Ruby cart is leaving tmp/vendor
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Hiro Asari
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-24 22:56 UTC by Dan McPherson
Modified: 2015-05-14 23:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-09 13:45:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dan McPherson 2013-06-24 22:56:42 UTC
Description of problem:
We hit several apps in production which were leaving tmp/vendor.

Version-Release number of selected component (if applicable):


How reproducible:
Not sure.  Need to validate we do everything we can to clean up tmp/vendor when the build is complete.  Technically we should be moving the contents from tmp/vendor and not copying so not sure why we hit this in the first place.

Actual results:
tmp/vendor exists for several gears

Expected results:
tmp/vendor shouldn't exist after the builds are complete

Additional info:
For the gears we looked at it didn't appear jenkins was involved.

Comment 2 Dan McPherson 2013-07-03 14:02:43 UTC
There may be nothing we can do.  But an example of a case that's broken:


User has used 995mb of their quota and their app size is 10mb (old app size before the latest push is 1mb let's say).  So we:

- Backup their bundles
- try to git archive their git repo contents into app-root/repo
- Fail because they don't have 10mb free
- Never get to the build step were we remove tmp/vendor

We basically need a rescue on build failures to be able to clean up tmp/vendor in this case.

Comment 3 Hiro Asari 2013-07-03 15:35:37 UTC
In this particular example, we need to agree on a signal that the failure (disk quota reached) would send, and trap that signal on the 'control' side, and perform cleanup.

This should happen on all cartridges, not just ruby.

Seems to me that this is a much bigger issue than just a simple bug.


Note You need to log in before you can comment on or make changes to this bug.