Bug 977563 - The ruby cart should not process templates under ruby/tmp
The ruby cart should not process templates under ruby/tmp
Product: OpenShift Online
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: Hiro Asari
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2013-06-24 18:53 EDT by Dan McPherson
Modified: 2015-05-14 19:22 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-22 11:18:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dan McPherson 2013-06-24 18:53:28 EDT
Description of problem:
The ruby cart in managed_files.yml has:

- '**/*.erb'

but can possibly leave app gems vendored under tmp/vendor as part of its gem caching mechanism.  So when setup is rerun it will hit the erbs under tmp/vendor and both take a long time and fail.

How reproducible:

Steps to Reproduce:
1. create a ruby app and put an erb under ruby/tmp that uses a var not available during setup
2. migrate the app

Actual results:
Fails because the erb can't be processed

Expected results:
The tmp erb shouldn't be processed.

Additional info:
Comment 2 openshift-github-bot 2013-06-27 14:04:25 EDT
Commits pushed to master at https://github.com/openshift/origin-server

Bug 977563

Instead of using glob, explicitly list templates belonging to the Ruby

Merge pull request #2939 from BanzaiMan/dev/hasari/bz977563

Bug 977563
Comment 3 Meng Bo 2013-06-28 04:15:06 EDT
Checked on devenv-stage_382,

1. Create ruby app
2. Write a .erb file under /var/lib/openshift/<app>/ruby/tmp/
3. Migrate the app

Migration will pass, and the OPENSHIFT_TEST_VAR cannot be found in the user shell.

Move bug to verified.

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