[jbosstools-issues] [JBoss JIRA] (JBIDE-10502) Could not embed cartridges to application

Andre Dietisheim (Commented) (JIRA) jira-events at lists.jboss.org
Fri Dec 16 11:53:10 EST 2011


    [ https://issues.jboss.org/browse/JBIDE-10502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651675#comment-12651675 ] 

Andre Dietisheim commented on JBIDE-10502:
------------------------------------------

I tried to reproduce this and could not. things went perfectly well here, I tried several times. The error log shows the following error:

{code}
Caused by: org.jboss.tools.openshift.express.internal.client.httpclient.InternalServerErrorException: {"debug":"Cartridge return code: 1\nFailed to embed 'jenkins-client-1.4 in 'jirkotest3'\n","data":null,"api_c":["placeholder"],"result":"\nCould not add job 'jirkotest3-build' in Jenkins server:\n   \nYou'll need to correct this error before attempting to embed the Jenkins client again.\n","messages":"","broker":"1.1.1","broker_c":["namespace","rhlogin","ssh","app_uuid","debug","alter","cartridge","cart_type","action","app_name","api"],"exit_code":143,"api":"1.1.1"}
{code}

According to the response you recieved from OpenShift, jenkins was not ready/reachable. 
Did you hit a temporary outage on openshift? The only other reason I can spot in the code is that the code that creates the jenkins is not waiting for the jenkins app to become ready:

ApplicationWizardModel#createApplication() does:

{code}
IApplication application = createApplication(name, cartridge);
final boolean isApplicationAvailable = application.waitForAccessible(APP_CREATION_TIMEOUT * 1000);
{code}

whereas EmbedCartridgeWizardPageModel#createJenkinsApplication() does only (the wait is missing):

{code}
IApplication application = wizardModel.getUser().createApplication(name, ICartridge.JENKINS_14);
return application;
{code}
                
> Could not embed cartridges to application
> -----------------------------------------
>
>                 Key: JBIDE-10502
>                 URL: https://issues.jboss.org/browse/JBIDE-10502
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 3.3.0.M5
>         Environment: jbdevstudio-product-linux-gtk-5.0.0.v201112150534M-H62-M5.jar
>            Reporter: Pavol Srna
>            Assignee: Andre Dietisheim
>             Fix For: 3.3.0.Beta1
>
>         Attachments: stack.txt
>
>
> See attached stack trace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list