Bug 978069

Summary: app restart reverts node to old version
Product: OpenShift Online Reporter: Sumana Annam <sannam>
Component: TemplatesAssignee: Mrunal Patel <mpatel>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: agrimm, dmcphers, jofernan, mpatel, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-29 12:47:49 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:

Description Sumana Annam 2013-06-25 22:46:49 UTC
Description of problem:

I created Node.js Application by following steps: https://www.openshift.com/blogs/any-version-of-nodejs-you-want-in-the-cloud-openshift-does-it-paas-style

All looked good until i did 'rhc app restart', after that node.js version went back to 0.6

'rhc app force-stop appName; rhc app start appName' retains and starts up the right node version.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Andy Grimm 2013-08-15 17:58:03 UTC
I did not see the described behavior with stop/start, but I did see it with a restart, so I suspect the description is wrong.  I have added a .openshift/action_hooks/pre_restart_nodejs-0.6 script, which should fix the problem.

Comment 3 Andy Grimm 2013-08-15 17:59:03 UTC
Ha, I completely misread the original description.  It looks like it was correct, and that's the behavior I fixed.  I feel better now.

Comment 4 Wei Sun 2013-08-16 02:11:49 UTC
Verified on devenv_3658,after restarting quickstart app,node.js version didn't go back to 0.6