Red Hat Bugzilla – Bug 977563
The ruby cart should not process templates under ruby/tmp
Last modified: 2015-05-14 19:22:28 EDT
Description of problem:
The ruby cart in managed_files.yml has:
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.
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
Fails because the erb can't be processed
The tmp erb shouldn't be processed.
PR for master: https://github.com/openshift/origin-server/pull/2939
for stage: https://github.com/openshift/origin-server/pull/2940
Commits pushed to master at https://github.com/openshift/origin-server
Instead of using glob, explicitly list templates belonging to the Ruby
Merge pull request #2939 from BanzaiMan/dev/hasari/bz977563
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.