Bug 946987 - [fork][v2carts]Can not create php-5.3/ruby-1.8/ruby-1.9/python-2.6/perl-5.10 application successfully
Summary: [fork][v2carts]Can not create php-5.3/ruby-1.8/ruby-1.9/python-2.6/perl-5.10 ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Krishna Raman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-01 06:20 UTC by Wei Sun
Modified: 2015-05-14 23:07 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-20 03:36:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
mcollective.log (29.90 KB, text/x-log)
2013-04-01 06:21 UTC, Wei Sun
no flags Details
development.log (118.62 KB, text/x-log)
2013-04-01 06:22 UTC, Wei Sun
no flags Details

Description Wei Sun 2013-04-01 06:20:51 UTC
Description of problem:
Try to create php-5.3/ruby-1.8/ruby-1.9/python-2.6/perl-5.10 application in v2 mode,but can not create them successfully.Show error message "Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support."

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

How reproducible:
Always

Steps to Reproduce:
1.create a php-5.3 application
2.
3.
  
Actual results:
rhc app create phpt php-5.3 --no-git -p test
Application Options
-------------------
  Namespace:  wsundevv2auto
  Cartridges: php-5.3
  Gear Size:  default
  Scaling:    no

Creating application 'phpt' ... Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support.

Expected results:
Can create these applications successfully.

Additional info:
Can create diy-0.1,jbosseap-6.0.1,jbossews-2.0,jenkins-1.4

Comment 1 Wei Sun 2013-04-01 06:21:37 UTC
Created attachment 730196 [details]
mcollective.log

Comment 2 Wei Sun 2013-04-01 06:22:01 UTC
Created attachment 730198 [details]
development.log

Comment 3 xjia 2013-04-01 07:55:52 UTC
For php:
origin-server / cartridges / openshift-origin-cartridge-php / bin / setup
mkdir -p $OPENSHIFT_PHP_DIR/configuration/etc/conf.d
cp $OPENSHIFT_PHP_DIR/versions/$version/configuration/etc/conf.d/* $OPENSHIFT_PHP_DIR/configuration/etc/conf.d/  
===> This should be cp $OPENSHIFT_PHP_DIR/versions/shared/configuration/etc/conf.d/* $OPENSHIFT_PHP_DIR/configuration/etc/conf.d/

mkdir -p $OPENSHIFT_PHP_DIR/configuration/etc/conf
cp $OPENSHIFT_PHP_DIR/versions/$version/configuration/etc/conf/* $OPENSHIFT_PHP_DIR/configuration/etc/conf/  
====>cp $OPENSHIFT_PHP_DIR/versions/shared/configuration/etc/conf/* $OPENSHIFT_PHP_DIR/configuration/etc/conf/  

After modify the script "setup" and re-create php cartridge:

The error message:/var/log/openshift/node/platform-trace.log:

<--snip-->
D, [2013-04-01T02:42:49.511937 #1026] DEBUG -- : oo_spawn buffer(6/) Syntax error on line 5 of /var/lib/openshift/633277344880784452878336/redhat-php/configuration/etc/conf.d/php.conf:

D, [2013-04-01T02:42:49.512161 #1026] DEBUG -- : oo_spawn buffer(6/) Invalid command 'AddType', perhaps misspelled or defined by a module not included in the server configuration
<--snip-->

Check the configure file, $OPENSHIFT_PHP_DIR/configuration/etc/conf/ and $OPENSHIFT_PHP_DIR/configuration/etc/conf.d/ only have one configure file php.conf. Others are "httpd.conf.erb" "httpd_nolog.conf.erb" "openshift.config.erb" ...

Comment 4 Yujie Zhang 2013-04-01 08:38:53 UTC
Besides about cartridge, mysql-5.1 can not be added to application, error log in broker as following:


2013-04-01 04:34:43.386 [ERROR] Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support. (pid:7365)
2013-04-01 04:34:43.387 [ERROR] ["/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.7.1/lib/openshift/mcollective_application_container_proxy.rb:2535:in `parse_result'", "/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.7.1/lib/openshift/mcollective_application_container_proxy.rb:2683:in `run_cartridge_command'", "/var/www/openshift/broker/lib/online/broker/mcollective_ext.rb:13:in `run_cartridge_command'", "/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.7.1/lib/openshift/mcollective_application_container_proxy.rb:2286:in `add_component'", "/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.7.1/lib/openshift/mcollective_application_container_proxy.rb:698:in `configure_cartridge'", "/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.7.1/app/models/gear.rb:122:in `add_component'", "/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.7.1/app/models/pending_app_op_group.rb:185:in `block in execute'", "/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.7.1/app/models/pending_app_op_group.rb:146:in `each'", "/opt/rh/ruby193/root/usr/share....

Comment 5 Paul Morie 2013-04-01 16:12:33 UTC
I was able to successfully create an app of each type indicated here except for php, which appears to have a problem specific to the php cart.  Reassigning to mrunal to fix.

Comment 6 Paul Morie 2013-04-01 17:09:48 UTC
It looks like the root cause is actually a change made to the v2 cart model on Friday.  Reassigning to Krishna.

Comment 7 Paul Morie 2013-04-01 17:14:23 UTC
Krishna-

You can exercise the V2 cucumber tests using the following command in a devenv:

cucumber openshift-test/tests/cartridge-* -t @runtime_other

Comment 8 Wei Sun 2013-04-03 08:14:06 UTC
Check this bug in devenv_3034
Can  create php-5.3/ruby-1.8/ruby-1.9/python-2.6/perl-5.10 application successfully

Comment 9 Mike McGrath 2013-04-16 16:13:39 UTC
We think this should be working now.  Please confirm.

Comment 10 Wei Sun 2013-04-17 02:30:53 UTC
Verified in devenv_3108

Can create php-5.3/ruby-1.8/ruby-1.9/python-2.6/perl-5.10 application successfully


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