Bug 1028974

Summary: Jenkins build fails for download cartridge
Product: OpenShift Online Reporter: Qiushui Zhang <qiuzhang>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: dmace, mfojtik, xtian
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-11-11 14:34:20 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:
Attachments:
Description Flags
jenkins log
none
manifest file used none

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 ***