Bug 1057447
| Summary: | Rails app can not be restarted when created from code with missing dependency | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ma xiaoqiang <xiama> |
| Component: | Templates | Assignee: | Brenton Leanhardt <bleanhar> |
| Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.0.0 | CC: | adellape, jolamb, libra-onpremise-devel, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openshift-origin-cartridge-ruby-1.17.5-1.el6op | Doc Type: | Bug Fix |
| Doc Text: |
During a restart, the Ruby cartridge attempted to modify a file in the {OPENSHIFT_REPO_DIR}/tmp directory, which in some cases did not exist. Therefore, the Ruby cartridge would fail to restart on gears that were missing this directory. This bug fix adds a test to ensure ${OPENSHIFT_REPO_DIR}/tmp exists before creating or modifying any files in that directory. The following command must be run after applying this fix:
# oo-admin-upgrade upgrade-node --version=2.0.3
See the Solution section in the errata advisory for full details.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-25 15:43:56 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1052276 | ||
| Bug Blocks: | |||
|
Description
Ma xiaoqiang
2014-01-24 06:51:22 UTC
I'm 99% certain this doesn't have anything to do with the nodejs dependency. I see the same behavior regardless of whether or not I have it installed.
Checking the logs I see that it is unable to touch tmp/restart.txt in the gear. Upstream addressed this with the following commit:
commit 8538a1b2dac7ae49bafe671ba89b1be4f13e5131
Author: Michal Fojtik <mfojtik>
Date: Tue Jan 14 10:49:41 2014 +0100
Bug 1052276 - Check if tmp/ directory exists before ruby restart
Once this is built you test this as follows: 1) Reproduce the broken environment On the node(s) 2) Update to the new ruby cartridge package 3) service ruby193-mcollective restart On the rhc client 4) create a new rails-example (this one should work) On the broker 5) rm /tmp/oo-upgrade 6) oo-admin-upgrade upgrade-node --version 2.0.3 After the oo-admin-upgrade step the broken restarts should now work as expected. check it on puddle [2.0.3/2014-02-06.1] 1.setup the env, make sure the "nodejs.x86_64" is not installed on node 2.create a rails app with "--from-code" option #rhc app create testapp ruby-1.9 mysql --from-code=https://github.com/openshift/rails-example 3.restart the app #rhc app restart testapp RESULT: testapp restarted Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0209.html |