Bug 922711

Summary: [Origin]Error when installing jenkins-client cartridge just after creating the jenkins application on LiveCD
Product: OKD Reporter: Xavier Coulon <xcoulon>
Component: ContainersAssignee: Dan McPherson <dmcphers>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.xCC: adietish, bhatiam, bmeng, dmcphers, mmcgrath, wdecoste
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:21:18 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 Xavier Coulon 2013-03-18 10:49:21 UTC
In REST API version 1.0 (running a LiveCD on VirtualBox), I got the following error message when I tried to install a jenkins-client on my application. 

Could not embed cartridges for application test2
Could not request https://192.168.56.101/broker/rest/domains/devoxx/applications/test2/cartridges: Operation failed on parameter "cartridge", sevirty "ERROR" with exit code "157".Reason given: "Error contacting Jenkins server.
Could not download https://jenkins-devoxx.example.com/jnlpJars/jenkins-cli.jar"

I also created the jenkins application since I did not have one in my domain before, so my guess is that the lib download occurred before the application was available, which ended up with that error message.

Trying to install the same jenkins-client embedded cartridge a few minutes later worked.

Comment 1 Mike McGrath 2013-04-16 16:16:02 UTC
We think this is fixed upstream in v2 which means it should be fixed in origin fairly soon.

Comment 2 Dan McPherson 2013-07-22 19:23:54 UTC
Should have been fixed with v2

Comment 3 Meng Bo 2013-11-15 06:55:34 UTC
Checked on the latest Origin vm (https://mirror.openshift.com/pub/origin-server/release/2/images/openshift-origin.zip)

Create app with the --enable-jenkins option, the app can be created and the jenkins-client can be added.

Move bug to verified.

# rhc app create app2 php-5 --enable-jenkins --no-dns
Using php-5.5 (PHP 5.5) for 'php-5'

Application Options
-------------------
  Domain:     domain1
  Cartridges: php-5.5
  Gear Size:  default
  Scaling:    no

Creating application 'app2' ... done


Setting up a Jenkins application ... done

  Jenkins created successfully.  Please make note of these credentials:
   User: admin
   Password: tiV2MTFBi-g4
Note:  You can change your password at: https://jenkins-domain1.openshift.local/me/configure

Setting up Jenkins build ... done

  Associated with job 'app2-build' in Jenkins server.

Your application 'app2' is now available.

  URL:        http://app2-domain1.openshift.local/
  SSH to:     5285c49748d98b8282000082.local
  Git remote: ssh://5285c49748d98b8282000082.local/~/git/app2.git/

Run 'rhc show-app app2' for more details about your app.