Bug 1036578

Summary: python and ruby app fail to be started after update ose from 1.2 to 2.0
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: Cluster Version OperatorAssignee: Jason DeTiberus <jdetiber>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.0.0CC: bleanhar, jdetiber, libra-onpremise-devel
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: 2014-02-04 14:43:51 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:

Description Johnny Liu 2013-12-02 10:15:14 UTC
Description of problem:
After upgrade to 2.0 from 1.2, python and ruby app could not be started via rhc command, ssh into gear, run "ctl_app start", still failed, see the following to get more details.


Version-Release number of selected component (if applicable):
openshift-enterprise-release-2.0.0c-1.git.2.acc7a39.el6op.noarch.rpm
openshift-enterprise-upgrade-broker-2.0.0c-1.git.2.acc7a39.el6op.noarch.rpm
openshift-enterprise-upgrade-node-2.0.0c-1.git.2.acc7a39.el6op.noarch.rpm
openshift-enterprise-yum-validator-2.0.0c-1.git.2.acc7a39.el6op.noarch.rpm

How reproducible:
Always

Steps to Reproduce:
1. Setup ose-1.2 env
2. Create python-2.6, ruby-1.8 and ruby-1.9 app on the node
3. Upgrade env from 1.2 to 2.0
4. Access the app


Actual results:
"503 Service Temporarily Unavailable" error is seen, try to start this app using rhc, still failed. Ssh into gear, run "ctl_app start" get the following error.

For ptyon-2.6:
> ctl_app start
Starting gear...
Starting PYTHON cart
Syntax error on line 8 of /var/lib/openshift/529c4c58f16d955c76000201/python/etc/conf.d/performance.conf:
Invalid thread count for WSGI daemon process.
An error occurred executing 'gear start' (exit code: 1)
Error message: Failed to execute: 'control start' for /var/lib/openshift/529c4c58f16d955c76000201/python

For ruby-1.8 and ruby-1.9:
Starting gear...
Starting Ruby cartridge
Syntax error on line 5 of /var/lib/openshift/529c4cc3f16d955c7600022b/ruby/etc/conf.d/performance.conf:
Value for PassengerMaxPoolSize must be greater than or equal to 1.
An error occurred executing 'gear start' (exit code: 1)
Error message: Failed to execute: 'control start' for /var/lib/openshift/529c4cc3f16d955c7600022b/ruby

After upgrade, in the /var/lib/openshift/<uuid>/<cartridge>/etc/conf.d/, two config files are added, but its valued is not configured correctly.
performance.conf
passenv.conf


Expected results:
App could be started successfully.

Additional info:

Comment 2 Jason DeTiberus 2013-12-03 21:50:14 UTC
Please try with the latest pad: http://etherpad.corp.redhat.com/ose-2-0-upgrade-2013-12-03

After fixing a broken upgrade with the mysql cartridge (which is included in the puddle on the pad above) I was not able to replicate.

Comment 3 Johnny Liu 2013-12-05 09:31:27 UTC
Verified this bug following http://etherpad.corp.redhat.com/ose-2-0-upgrade-2013-12-04, and PASS.