Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1321308

Summary: Overriding Builder Image Scripts by "scripts" in buildConfig doesn't output any message when it failed to download scripts
Product: OpenShift Container Platform Reporter: Kenjiro Nakayama <knakayam>
Component: BuildAssignee: Cesar Wong <cewong>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: aos-bugs, bparees, dyan, tdawson
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: 2016-05-12 16:34:28 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 Kenjiro Nakayama 2016-03-25 10:52:52 UTC
Description of problem:

- I configured buildconfig to override builder image script followed by doc[1]. When if I configured with invalid URL, it doesn't output "script download error" or stop build process.

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

- OSE v3.1.1.6-21-gcd70c35

How reproducible:

Steps to Reproduce:
1. Setup invlid URL in "script: http://xxx" on buildConfig. (please refer to [1])
2. Start build by oc start-build <BC>
3. Check the log

Actual results:

- It outputs build failur message, but it is not scripts download error message.

E0325 10:19:47.667712       1 util.go:85] /bin/sh: http:/foo.bar.com/invalid/assemble: No such file or directory

Expected results:

- S2I outputs "s2i script download error" message or stop the build process.

[1] https://docs.openshift.com/enterprise/3.1/dev_guide/builds.html#override-builder-image-scripts

Comment 1 Dongbo Yan 2016-03-28 03:10:32 UTC
QE has reproduced this bug

Comment 3 Cesar Wong 2016-03-29 21:36:46 UTC
Origin Pull: https://github.com/openshift/origin/pull/8281

Comment 4 Troy Dawson 2016-03-30 19:02:51 UTC
Should be in atomic-openshift-3.2.0.9-1.git.0.b99af7d.el7, which is now built and ready for testing.

Comment 5 Dongbo Yan 2016-03-31 08:34:10 UTC
Verified this bug, it is fixed. Error output like this:
Error: build error: Could not download any scripts from URL https://xxxxx

openshift v3.2.0.9
kubernetes v1.2.0-36-g4a3f9c5
etcd 2.2.5

Comment 7 errata-xmlrpc 2016-05-12 16:34:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2016:1064