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:
this actually crashes my master api server, so raising severity.
pr: https://github.com/openshift/origin/pull/18461
Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/e38767685c1ee644354d4ba17598855f20173f65 check all buildrequest options for validity against build type bug 1541914 https://bugzilla.redhat.com/show_bug.cgi?id=1541914
Verified with below version: # 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-56 ~]# openshift version openshift v3.9.0-0.42.0 kubernetes v1.9.1+a0ce1bc657 etcd 3.2.8