Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1419810 - No failure reason displayed when build failed using invalid contextDir
No failure reason displayed when build failed using invalid contextDir
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build (Show other bugs)
3.5.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Corey Daley
Wenjing Zheng
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-07 01:29 EST by Wang Haoran
Modified: 2017-07-24 10 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Build failure reason was not getting set/saved correctly Consequence: Build failure reason could not be shown in command output Fix: Updated code to correctly save build failure reason Result: Build failure reason now shows correctly in command output
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-04-12 15:11:54 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 18:50:07 EDT

  None (edit)
Description Wang Haoran 2017-02-07 01:29:12 EST
Description of problem:
No failure reason displayed when using invalid branch

Version-Release number of selected component (if applicable):
openshift v3.5.0.17+c55cf2b
kubernetes v1.5.2+43a9be4
etcd 3.1.0


How reproducible:

always
Steps to Reproduce:
1.oc new-app -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/build/ruby20rhel7-invalidcontext-docker.json
2.oc get build
oc get build
NAME                    TYPE      FROM          STATUS    STARTED          DURATION
ruby20-sample-build-1   Docker    Git@4e7c264   Failed    10 minutes ago   2s

3.

Actual results:


Expected results:
We should have reason telling the use why failed

Additional info:
Comment 1 Corey Daley 2017-02-08 16:34:46 EST
Submitted PR https://github.com/openshift/origin/pull/12873
Comment 2 Corey Daley 2017-02-17 15:59:52 EST
https://github.com/openshift/origin/pull/12873
Comment 3 Troy Dawson 2017-02-21 17:38:04 EST
This has been merged into ocp and is in OCP v3.5.0.32 or newer.
Comment 5 Wang Haoran 2017-03-01 00:38:27 EST
Failed with :
openshift v3.5.0.35
kubernetes v1.5.2+43a9be4
etcd 3.1.0


 oc get build
NAME                    TYPE      FROM          STATUS    STARTED         DURATION
ruby20-sample-build-1   Docker    Git@4e7c264   Failed    3 minutes ago   1s
ruby20-sample-build-2   Docker    Git@4e7c264   Failed    2 minutes ago   1s

Error logs:
F0301 05:35:13.756573       1 helpers.go:116] error: build error: open /tmp/docker-build771301835/invalid/Dockerfile: no such file or directory
Comment 6 Corey Daley 2017-03-03 10:09:31 EST
Should be fixed now by https://github.com/openshift/origin/pull/13203
Comment 7 Troy Dawson 2017-03-03 12:54:40 EST
Correy, origin-1.5 / ose-3.5 has already branched.  So pull requests for master are for 3.6 now.
Can you please backport this to the origin-1.5 branch so it can be merged into ose 3.5.
Comment 8 Corey Daley 2017-03-03 14:53:10 EST
Troy, 
This one was submitted about the same time and has been merged: https://github.com/openshift/origin/pull/13206
Comment 9 Troy Dawson 2017-03-03 15:18:11 EST
Thank you, I didn't see that.
This has been merged into ocp and is in OCP v3.5.0.38 or newer.
Comment 10 Wenjing Zheng 2017-03-07 21:52:26 EST
Verified with below version: 
openshift v3.5.0.45
kubernetes v1.5.2+43a9be4
etcd 3.1.0

$ oc get builds
NAME                    TYPE      FROM      STATUS                             STARTED              DURATION
ruby20-sample-build-1   Docker    Git       Failed (InvalidContextDirectory)   About a minute ago   
[wzheng@openshiftqe v3]$ oc describe builds ruby20-sample-build-1
Name:		ruby20-sample-build-1
Namespace:	wzheng2
Created:	About a minute ago
Labels:		app=ruby-helloworld-sample
		buildconfig=ruby20-sample-build
		name=ruby20-sample-build
		openshift.io/build-config.name=ruby20-sample-build
		openshift.io/build.start-policy=Serial
		template=application-template-dockerbuild
Annotations:	openshift.io/build-config.name=ruby20-sample-build
		openshift.io/build.number=1
		openshift.io/build.pod-name=ruby20-sample-build-1-build

Status:		Failed (The supplied context directory does not exist.)
Comment 12 errata-xmlrpc 2017-04-12 15:11:54 EDT
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/RHBA-2017:0884

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