Bug 904081 - Failed to create scalable jbossas-7 apps
Summary: Failed to create scalable jbossas-7 apps
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Bill DeCoste
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-25 12:23 UTC by jizhao
Modified: 2015-05-14 23:04 UTC (History)
4 users (show)

Fixed In Version: https://github.com/openshift/origin-server/pull/1215
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-14 00:53:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
broker log (76.22 KB, text/x-log)
2013-01-25 12:24 UTC, jizhao
no flags Details

Description jizhao 2013-01-25 12:23:28 UTC
Description of problem:
It always fails with "Node execution faliure" while creating scalable jbossas-7 apps.

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

How reproducible:
Always

Steps to Reproduce:
1.Try to create a scalable jbossas-7 app
$ rhc app create app1 jbossas-7 -s
2.
3.
  
Actual results:
I'll attach the broker log.

<----------------------client output-------------------------->
root@ubuntu-0:~# rhc app create app1 jbossas-7 -s -d

DEBUG: Connecting to https://ec2-23-20-51-169.compute-1.amazonaws.com/broker/rest/api
DEBUG: Getting all cartridges
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: Getting all domains
Password: 
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: Getting all domains
DEBUG: Finding domain jizhao1
DEBUG: Getting all domains

Application Options
-------------------
DEBUG: Getting all domains
  Namespace:  jizhao1
  Cartridges: jbossas-7
  Gear Size:  default
  Scaling:    yes

Creating application 'app1' ... DEBUG: Creating application 'app1' with these options - {:scale=>true, :cartridges=>["jbossas-7"]}
DEBUG: Adding application app1 to domain jizhao1
DEBUG: SSL Verification failed -- Using self signed cert
Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support.
<--------------------------------------------------------->


Expected results:
The app should be created.

Additional info:

Comment 1 jizhao 2013-01-25 12:24:25 UTC
Created attachment 687439 [details]
broker log

Comment 2 Paul Morie 2013-01-25 16:35:00 UTC
Recreated in my devenv.  Looks like app-create action is failing with this error:


I, [2013-01-25T11:06:22.124856 #1156]  INFO -- : openshift.rb:556:in `cartridge_do_action' cartridge_do_action validation = openshift-origin-node app-create {"--with-app-uuid"=>"5102ad77a267b76a0b00002e", "--wit
h-app-name"=>"jtest", "--with-container-uuid"=>"5102ad77a267b76a0b00002e", "--with-container-name"=>"jtest", "--with-namespace"=>"pmorie094"}
I, [2013-01-25T11:06:22.125153 #1156]  INFO -- : openshift.rb:30:in `oo_app_create' COMMAND: oo-app-create
I, [2013-01-25T11:06:22.154673 #1156]  INFO -- : openshift.rb:47:in `rescue in oo_app_create' ERROR: unable to create user account(9): useradd -u 501 -d /var/lib/openshift/5102ad77a267b76a0b00002e/ -s /usr/bin/o
o-trap-user -c 'OpenShift guest' -m -k /etc/openshift/skel 5102ad77a267b76a0b00002e stdout: useradd: user '5102ad77a267b76a0b00002e' already exists
 stderr: useradd: user '5102ad77a267b76a0b00002e' already exists

I was able to create jbossews-1.0, ruby-1.9 scaled apps, as well as non-scaled jbossas-7.  I think this bug must have been recently introduced, since I created a scaled jboss app successfully earlier this week.

Comment 3 Bill DeCoste 2013-01-25 16:58:01 UTC
Broken in the latest devenv, but is working in INT. So definitely looks like recently introduced. I'm guessing it might have to do with the new logic to have scaled apps only have 1 gear initially.

Comment 4 Bill DeCoste 2013-01-25 17:17:13 UTC
Bug does not exist in STG either.

Comment 5 Bill DeCoste 2013-01-25 17:46:19 UTC
typo in manifest.yml

Comment 6 jizhao 2013-01-28 06:17:04 UTC
Verified this bug on devenv_2734.


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