Bug 1534916
| Summary: | oc new-app with different way of parameter passing should have consistent behavior | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | shahan <hasha> |
| Component: | Build | Assignee: | Mangirdas Judeikis <mjudeiki> |
| Status: | CLOSED DUPLICATE | QA Contact: | Wenjing Zheng <wzheng> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 3.9.0 | CC: | aos-bugs, bparees |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-26 12:40:52 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
shahan
2018-01-16 09:45:38 UTC
Since it wasn't clear to me.. the issue here is not that the app ultimately doesn't build, it's that in (1) the components of the app are successfully created (even though the repo does not exist) and in (2) the components are not created because we can't clone the repo. MJ, I think this is related to https://bugzilla.redhat.com/show_bug.cgi?id=1470374 It might be solved already. I will check and confirm. I suspect the problem root cause is similar. Its problem here: https://github.com/openshift/origin/blob/master/pkg/git/repository.go#L228 So its different issue, but same "source code detection flow". We can work it by adding some error checking here: https://github.com/openshift/origin/blob/master/pkg/oc/generate/cmd/resolve.go#L264 Which would "/dev/null" errors, if they come from certain git behavior. In example: 1. No git available. 2. Remote repo is secure. Any other errors would be threaded as normal errors and passed down the stream for proper handling. Overall some of the oc & git interaction should be revisited? doing a small bugfix, which might solve this too https://bugzilla.redhat.com/show_bug.cgi?id=1470374 *** This bug has been marked as a duplicate of bug 1470374 *** |