Description of problem: contextDir is ignored when fetching from a git repository. Version-Release number of selected component (if applicable): # oc version oc v3.5.0.6+87f6173 kubernetes v1.5.2+43a9be4 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://ip-172-31-16-51.us-west-2.compute.internal:8443 openshift v3.5.0.6+87f6173 kubernetes v1.5.2+43a9be4 How reproducible: always Steps to Reproduce: 1. oc new-project eap64 2. wget https://raw.githubusercontent.com/openshift/svt/master/openshift_scalability/content/quickstarts/eap/eap64-mysql.json 3. oc process -f eap64-mysql.json | oc create -f- 4. oc get pods NAME READY STATUS RESTARTS AGE eap-app-1-7hp50 1/1 Running 0 4m eap-app-1-build 0/1 Completed 0 6m eap-app-mysql-1-48vd5 1/1 Running 0 6m 5. oc get route NAME HOST/PORT PATH SERVICES PORT TERMINATION eap-app eap-app-eap64.router.default.svc.cluster.local eap-app <all> secure-eap-app secure-eap-app-eap64.router.default.svc.cluster.local secure-eap-app <all> passthrough Actual results: $ oc exec eap-app-1-7hp50 -- ls /tmp/src README.md datagrid decisionserver helloworld-mdb kitchensink-managed-ds kitchensink-mongodb settings.xml todolist tomcat-jdbc tomcat-websocket-chat $ curl -I eap-app-eap64.router.default.svc.cluster.local HTTP/1.1 404 Not Found Server: Apache-Coyote/1.1 Content-Length: 0 Date: Thu, 19 Jan 2017 19:58:39 GMT Set-Cookie: d6491ff8aac7a15ec6bc2b78b690ae1e=5a80edef759869b002f1b52c3d3ccd5d; path=/; HttpOnly Expected results: $ oc exec eap-app-1-7hp50 -- ls /tmp/src pom.xml src $ curl -I eap-app-eap64.router.default.svc.cluster.local HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Content-Length: 2005 Date: Thu, 19 Jan 2017 20:03:12 GMT Set-Cookie: d6491ff8aac7a15ec6bc2b78b690ae1e=fa8b97780776744bd4302c225730443d; path=/; HttpOnly Cache-control: private Additional info:
this is actually pretty bad(and a regression), raising severity.
*** Bug 1414566 has been marked as a duplicate of this bug. ***
https://github.com/openshift/origin/pull/12628
*** Bug 1414861 has been marked as a duplicate of this bug. ***
This has been merged into ocp and is in OCP v3.5.0.10 or newer.
Verified in following release openshift v3.5.0.10+e377fa2 kubernetes v1.5.2+43a9be4 etcd 3.1.0 I can curl the url # oc exec eap-app-1-bdsjb -- ls /tmp/src README.md datagrid decisionserver helloworld-mdb kitchensink-managed-ds kitchensink-mongodb pom.xml settings.xml src todolist tomcat-jdbc tomcat-websocket-chat root@ip-172-31-1-243: ~ # curl -I eap-app-vlaad.0127-jzz.qe.rhcloud.com HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Content-Length: 2005 Date: Fri, 27 Jan 2017 20:38:20 GMT Set-Cookie: e057d9c1deb5bf7c9fe39e819f5c6d1f=369c7a3ede32feb7e7a34ff14e40331a; path=/; HttpOnly Cache-control: private
I can confirm this is fixed in oc v3.5.0.10+e377fa2 kubernetes v1.5.2+43a9be4 Thanks.
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