Bug 1542247 - [3.7] Unclear warning if set --no-cache for source build
Summary: [3.7] Unclear warning if set --no-cache for source build
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
urgent
Target Milestone: ---
: 3.7.z
Assignee: Ben Parees
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On: 1541914
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-05 22:13 UTC by Ben Parees
Modified: 2018-04-05 09:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Clone Of: 1541914
Environment:
Last Closed: 2018-04-05 09:38:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0636 0 None None None 2018-04-05 09:39:21 UTC

Description Ben Parees 2018-02-05 22:13:48 UTC
+++ This bug was initially created as a clone of Bug #1541914 +++

Description of problem:
Below warning appears if try to set --no-cache for source build
# oc start-build ruby-ex --no-cache=false
Unable to connect to the server: unexpected EOF; some request body already written

Version-Release number of selected component (if applicable):
oc v3.9.0-0.36.0
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth GSSAPI Kerberos SPNEGO

How reproducible:
always

Steps to Reproduce:
1.oc new-app ruby~https://github.com/openshift/ruby-ex
2.oc start-build ruby-ex --no-cache=false
3.

Actual results:
# oc start-build ruby-ex --no-cache=false
Unable to connect to the server: unexpected EOF; some request body already written

Expected results:
Should warn --no-cache only work for docker build.

Additional info:

--- Additional comment from Ben Parees on 2018-02-05 16:59:45 EST ---

this actually crashes my master api server, so raising severity.

--- Additional comment from Ben Parees on 2018-02-05 17:13:01 EST ---

pr: https://github.com/openshift/origin/pull/18461

Comment 1 Ben Parees 2018-02-07 18:44:00 UTC
https://github.com/openshift/ose/pull/1051

Comment 3 Wenjing Zheng 2018-02-13 06:40:27 UTC
Verified with below expected result:
[root@host-172-16-120-119 ~]# oc start-build ruby-ex --no-cache=false
Error from server (BadRequest): Cannot specify Docker build specific options on default/ruby-ex, not a Docker build.
[root@host-172-16-120-119 ~]# oc version
oc v3.7.29
kubernetes v1.7.6+a08f5eeb62
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://172.16.120.119:8443
openshift v3.7.29
kubernetes v1.7.6+a08f5eeb62
[root@host-172-16-120-119 ~]# openshift version
openshift v3.7.29
kubernetes v1.7.6+a08f5eeb62
etcd 3.2.8

Comment 7 errata-xmlrpc 2018-04-05 09:38:31 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/RHBA-2018:0636


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