Hide Forgot
Description of problem: When resource file contains slash, failed to `oc create -f <resource_file>` Version-Release number of selected component (if applicable): openshift v3.1.1.10 oc 3.4.0.33 How reproducible: always Steps to Reproduce: 1. # oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/deployment/deployment1.json --loglevel=8I1207 15:02:26.092971 3389 loader.go:354] Config loaded from file /root/.kube/config I1207 15:02:26.102382 3389 round_trippers.go:296] GET https://xxx.rdu2.redhat.com:8443/oapi I1207 15:02:26.102413 3389 round_trippers.go:303] Request Headers: I1207 15:02:26.102424 3389 round_trippers.go:306] Accept: application/json, */* I1207 15:02:26.102433 3389 round_trippers.go:306] User-Agent: oc/v3.4.0.33+71c05b2 (linux/amd64) openshift/71c05b2 I1207 15:02:26.102442 3389 round_trippers.go:306] Authorization: Bearer ENsMxxxGoUFG0u1YfftlWyQsQ I1207 15:02:27.221981 3389 round_trippers.go:321] Response Status: 200 OK in 1119 milliseconds I1207 15:02:27.222011 3389 round_trippers.go:324] Response Headers: I1207 15:02:27.222021 3389 round_trippers.go:327] Date: Wed, 07 Dec 2016 07:02:27 GMT I1207 15:02:27.222031 3389 round_trippers.go:327] Content-Length: 32 I1207 15:02:27.222039 3389 round_trippers.go:327] Cache-Control: no-store I1207 15:02:27.222049 3389 round_trippers.go:327] Content-Type: application/json I1207 15:02:27.222136 3389 request.go:908] Response Body: { "versions": [ "v1" ] } I1207 15:02:27.222688 3389 cached_discovery.go:80] returning cached discovery info from /root/.kube/xxx.rdu2.redhat.com_8443/servergroups.json I1207 15:02:27.222918 3389 cached_discovery.go:38] returning cached discovery info from /root/.kube/xxx.rdu2.redhat.com_8443/extensions/v1beta1/serverresources.json I1207 15:02:27.223310 3389 cached_discovery.go:38] returning cached discovery info from /root/.kube/xxx.rdu2.redhat.com_8443/v1/serverresources.json I1207 15:02:27.223812 3389 cached_discovery.go:80] returning cached discovery info from /root/.kube/xxx.rdu2.redhat.com_8443/servergroups.json I1207 15:02:27.223931 3389 cached_discovery.go:38] returning cached discovery info from /root/.kube/xxx.rdu2.redhat.com_8443/extensions/v1beta1/serverresources.json I1207 15:02:27.224306 3389 cached_discovery.go:38] returning cached discovery info from /root/.kube/xxx.rdu2.redhat.com_8443/v1/serverresources.json I1207 15:02:27.535804 3389 decoder.go:203] decoding stream as JSON F1207 15:02:27.536324 3389 helpers.go:115] error: unable to recognize "https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/deployment/deployment1.json": no matches for /, Kind=DeploymentConfig Actual results: error: unable to recognize "https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/deployment/deployment1.json": no matches for /, Kind=DeploymentConfig Expected results: Should be created successful. Additional info: Both oc v3.4.0.33 against openshift v3.4.0.33 and oc v3.1.1.10 against openshfit v3.1.1.10 do not reproduce.
Hi Fabiano, For oc compatibility issues, how should we determine the priority and severity? I saw this was changed to L/L. We found that lots of resources such as Services & Pods couldn't be created successfully either on OpenShift 3.1 using OC 3.4.0.33 caused by this issue
I think the reason why the error "error: unable to recognize "https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/deployment/deployment1.json": no matches for /, Kind=DeploymentConfig" is happening is not because of a "slash" in the filename (in fact, it works fine on newer versions of oc), but rather because the server that you are using does not support "DeploymentConfig" resource kinds.
Closing due to age.