Bug 1419810
| Summary: | No failure reason displayed when build failed using invalid contextDir | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Wang Haoran <haowang> |
| Component: | Build | Assignee: | Corey Daley <cdaley> |
| Status: | CLOSED ERRATA | QA Contact: | Wenjing Zheng <wzheng> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.5.0 | CC: | aos-bugs, tdawson |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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 19:11:54 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
Wang Haoran
2017-02-07 06:29:12 UTC
Submitted PR https://github.com/openshift/origin/pull/12873 This has been merged into ocp and is in OCP v3.5.0.32 or newer. 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 Should be fixed now by https://github.com/openshift/origin/pull/13203 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. Troy, This one was submitted about the same time and has been merged: https://github.com/openshift/origin/pull/13206 Thank you, I didn't see that. This has been merged into ocp and is in OCP v3.5.0.38 or newer. 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.) 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 |