Bug 978018

Summary: Unable to create an app from reflector URL
Product: OpenShift Online Reporter: Jeffrey Bride <jbride2001>
Component: ContainersAssignee: Hiro Asari <hasari>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: dmcphers, hasari, jkeck
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-07-03 21:25:08 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 Jeffrey Bride 2013-06-25 20:03:10 UTC
Hi,
  I'm attempting to create a new cartridge called 'jbpmengine' by initially leveraging the  jbosseap cartridge (https://github.com/openshift/origin-server/tree/master/cartridges/openshift-origin-cartridge-jbosseap ).
  
thus far i've followed along Clayton's cartridge 2.0 tutorial  (https://www.openshift.com/blogs/introducing-the-openshift-cartridge-api-version-2 .....  excellent overview,  by the way) and am executing this command :

rhc create-app jbpmengine "http://cartreflect-claytondev.rhcloud.com/reflect?github=jbride/openshift-origin-cartridge-jbpm-engine&commit=master"

i know the broker is doing a lot behind the scenes but in this case exits with the following response to my rhc client:

Unable to complete the requested operation due to: Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support..
Reference ID: 8a1bcec071e9678567638a059cbb05b9


i suspect i've hosed something up in my cart but it's difficult to pinpoint the problem because the node provides little clues.

thanks!  jeff

Comment 1 Hiro Asari 2013-07-03 21:25:08 UTC
The application creation is failing with something like:

2013-07-03 16:31:32.624 [DEBUG] DEBUG: server results: Failed to execute: 'control start' for /var/lib/openshift/4c0275aee41f11e2b5f512313b06d0b2/jbpmengine (pid:4472)

I tracked this down to your malformed manifest.yml; you edited "Name:" element to 'jbpmengine', which caused disconnect between the cartridge scripts (including bin/control) and the various environment variables. This, in turn, caused 'ishttpup()' function to never succeed. Changing "Name:" back to 'jbosseap' should allow application to be created successfully.

This should be documented in https://github.com/openshift/origin-server/blob/master/node/README.writing_cartridges.md but it is not. I created https://bugzilla.redhat.com/show_bug.cgi?id=981051 to further track that issue.

In the meantime, you should be able to move forward.

Let us know if you need further assistance.

Comment 2 Hiro Asari 2013-07-03 21:39:27 UTC
The exact failure may be different, actually, not the environment variables issue that I described above. The cause, however, is the same: manifest.yml was internally inconsistent.

We should improve our documentation.