Bug 995807 - Jenkins builds fail on downloadable cartridges
Summary: Jenkins builds fail on downloadable cartridges
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: libra bugs
URL:
Whiteboard:
: 1028974 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-11 09:46 UTC by gideon
Modified: 2015-05-15 00:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 16:00:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description gideon 2013-08-11 09:46:00 UTC
Jenkins builds fail for downloadable cartridges. The output from git push is:

remote: Executing Jenkins build.
remote: 
remote: You can track your build at https://jenkins-domain.rhcloud.com/job/cart-build
remote: 
remote: Waiting for build to schedule...............
remote: **BUILD FAILED/CANCELLED**
remote: Please see the Jenkins log for more details via 'rhc tail'
remote: !!!!!!!!
remote: Deployment Halted!
remote: If the build failed before the deploy step, your previous
remote: build is still running.  Otherwise, your application may be
remote: partially deployed or inaccessible.
remote: Fix the build and try again.
remote: !!!!!!!!
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: Failed to execute: 'control post-receive' for /var/lib/openshift/gear/jenkins-client

The Jenkins log contains the error:

WARNING: Caught com.openshift.client.OpenShiftException: Cartridge for cart not found. Will retry 0 more times before canceling build.
com.openshift.client.OpenShiftException: Cartridge for cart not found
	at hudson.plugins.openshift.OpenShiftSlave.getCartridge(OpenShiftSlave.java:107)
	at hudson.plugins.openshift.OpenShiftSlave.createApp(OpenShiftSlave.java:235)
	at hudson.plugins.openshift.OpenShiftSlave.provision(OpenShiftSlave.java:225)
	at hudson.plugins.openshift.OpenShiftCloud.provisionSlave(OpenShiftCloud.java:470)
	at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:401)
	at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:264)
	at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51)
	at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:347)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)

BTW, "canceling" is misspelled.

Comment 1 Qiushui Zhang 2013-08-13 10:25:22 UTC
I use https://raw.github.com/qiushui/perlv2cart/master/metadata/manifest.yml. As long as we have additional/spare gear, I can get successful result.

Comment 2 gideon 2013-08-13 10:34:14 UTC
Another report of the same issue: http://lists.openshift.redhat.com/openshift-archives/dev/2013-July/msg00169.html

Comment 3 gideon 2013-08-13 12:01:29 UTC
Here's the cartridge that I'm trying to enable Jenkins on: https://github.com/accursoft/Haskell-Cloud

Comment 4 Dan McPherson 2013-08-18 04:00:10 UTC
This is currently a limitation of the openshift java client.  Once the support is added there for the upcoming eclipse tools release we will add the support to the jenkins implementation as well.

Comment 5 Dan Mace 2013-11-11 14:34:20 UTC
*** Bug 1028974 has been marked as a duplicate of this bug. ***

Comment 6 openshift-github-bot 2014-01-15 04:05:57 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/e985ee5f2c5511069d3ce801fbcf3556f5bfd711
Bug 995807 - Jenkins builds fail on downloadable cartridges

Comment 7 Ben Parees 2014-01-15 14:22:57 UTC
PR: https://bugzilla.redhat.com/show_bug.cgi?id=995807

Comment 8 openshift-github-bot 2014-01-15 19:40:00 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/a9f5b8ba9302fb78ac60925b9f527c73071cb7fe
Bug 995807 - Jenkins builds fail on downloadable cartridges

Comment 9 Meng Bo 2014-01-16 06:48:59 UTC
The issue still can be reproduced on devenv_4230.


WARNING: Caught com.openshift.client.OpenShiftException: Cartridge for bmeng-p2rl-5.10 not found. Will retry 0 more times before canceling build.
Jan 16, 2014 1:47:15 AM hudson.plugins.openshift.OpenShiftCloud provision
WARNING: Cancelling build due to earlier exceptions
com.openshift.client.OpenShiftException: Cartridge for bmeng-p2rl-5.10 not found
	at hudson.plugins.openshift.OpenShiftSlave.getCartridge(OpenShiftSlave.java:110)
	at hudson.plugins.openshift.OpenShiftSlave.createApp(OpenShiftSlave.java:235)
	at hudson.plugins.openshift.OpenShiftSlave.provision(OpenShiftSlave.java:226)
	at hudson.plugins.openshift.OpenShiftCloud.provisionSlave(OpenShiftCloud.java:474)
	at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:402)
	at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:264)
	at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51)
	at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:347)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Jan 16, 2014 1:47:15 AM hudson.plugins.openshift.OpenShiftCloud cancelItem
INFO: Cancelling Item 
Jan 16, 2014 1:47:15 AM hudson.plugins.openshift.OpenShiftCloud cancelItem
WARNING: Build custom1-build custom1bldr has been canceled

Comment 10 Ben Parees 2014-01-16 14:49:17 UTC
Working for me on devenv_4232.

Perhaps I am missing something about your scenario, here are the steps i'm using:

1) create an application with jenkins enabled using a downloadable cartridge:
 rhc app create mygo "https://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-go-cart"  --enable-jenkins
2) confirm the build definition in jenkins.
  Specifically, confirm that the "builder type" for the "mygo-build" configuration contains:   
https://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-go-cart

3) push a change to the mygo application:
  cd mygo
  edit web.go
  git commit -am . ; git push
4) a gear for the mygobldr application is created and the go cartridge is placed on that gear
  rch ssh mygo
  ls  (output includes "go" cartridge directory)
5) the build completes successfully.  mygo application is updated.


Please also confirm your devenv has the 0.6.28 version of the jenkins plugin rpm:
jenkins-plugin-openshift-0.6.28-0.el6oso.x86_64

Comment 11 Ben Parees 2014-01-17 00:20:16 UTC
We're going to back this change out for this sprint as we want to solve it a different way, so I'm going to move this back to assigned for now.

Comment 12 openshift-github-bot 2014-01-17 23:09:25 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/0e9e75f37af22ff2fea091cca24cfdbc4e48accb
Revert "Bug 995807 - Jenkins builds fail on downloadable cartridges"

This reverts commit a9f5b8ba9302fb78ac60925b9f527c73071cb7fe.

Comment 13 openshift-github-bot 2014-01-30 15:04:21 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/47b49f44ec28144f617d3edb1502dc122ddff50a
Bug 995807 - Jenkins builds fail on downloadable cartridges


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