Bug 1028974 - Jenkins build fails for download cartridge
Summary: Jenkins build fails for download cartridge
Keywords:
Status: CLOSED DUPLICATE of bug 995807
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-11 11:56 UTC by Qiushui Zhang
Modified: 2015-05-14 23:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-11 14:34:20 UTC
Target Upstream Version:


Attachments (Terms of Use)
jenkins log (29.57 KB, text/plain)
2013-11-11 11:56 UTC, Qiushui Zhang
no flags Details
manifest file used (2.61 KB, text/x-vhdl)
2013-11-11 11:59 UTC, Qiushui Zhang
no flags Details

Description Qiushui Zhang 2013-11-11 11:56:05 UTC
Created attachment 822375 [details]
jenkins log

Description of problem:
Jenkins build fails for application of download cartridge.


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

How reproducible:
always

Steps to Reproduce:
1. Prepare a download cartridge
The one used is https://github.com/qiushui/php
It is created from the instance.
The menifest.yml is using "Source-Url: file:///root/php/"
On instance, copy php cartridge to /root
cp -r /usr/libexec/openshift/cartridges/php/ /root/
Modify cartridge vendor as "Cartridge-Vendor: qiushui"

2. Create an application of download cartridge and enable-jenkins
rhc app create php1 https://raw.github.com/qiushui/php/master/metadata/manifest.yml --enable-jenkins

3. Make some changes to the local repo. Git push the change. Tail jenkins application for reference.
rhc tail jenkins

Actual results:
Application build with jenkins will fail. No jenkins builder is created.

Expected results:
Jenkins build should be done successfully.

Additional info:
The output of "rhc tail jenkins" is added as an attachment to the bug.

Part of the logs is as followng:
Nov 11, 2013 6:45:53 AM hudson.plugins.openshift.OpenShiftCloud provision
WARNING:  Caught com.openshift.client.OpenShiftException: Cartridge for  qiushui-php-5.3 not found. Will retry 4 more times before canceling  build.

Comment 1 Qiushui Zhang 2013-11-11 11:59:49 UTC
Created attachment 822376 [details]
manifest file used

Comment 2 Michal Fojtik 2013-11-11 13:59:46 UTC
I guess the problem here is the 'file://' schema. We switched to use 'httpclient' and the 'file://' is not supported i guess.

Jhon, do we want to handle the 'file://' schema as well? If answer is yes, I can update the code around 'httpclient' to read the file using File.read if the schema is 'file://'

Comment 3 Dan Mace 2013-11-11 14:34:20 UTC

*** This bug has been marked as a duplicate of bug 995807 ***


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