Description of problem: Run oc attach to a running pod gives error instead of attaching to it Version-Release number of selected component (if applicable): oc v1.0.6-835-g4c014f5 kubernetes v1.2.0-alpha.1-1107-g4c8e6f4 How reproducible: Always Steps to Reproduce: 1.Create a pod and wait to be Running $ oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/pods/pod_with_two_containers.json $ oc get pods NAME READY STATUS RESTARTS AGE doublecontainers 2/2 Running 0 2h 2.oc attach doublecontainers Actual results: error: unable to upgrade connection: you must specify at least 1 of stdin, stdout, stderr Expected results: Should get output from running pod doublecontainers Additional info:
Likely the same issue as https://github.com/smarterclayton/kubernetes/commit/7f6f85bd7b47db239868bcd868ae3472373a4f05 fixed in https://github.com/kubernetes/kubernetes/pull/15053 Might need to cherry pick that
should be fixed in https://github.com/openshift/origin/pull/4819
Verified on oc v3.0.2.903-29-g49953d6 kubernetes v1.2.0-alpha.1-1107-g4c8e6f4 $ oc attach doublecontainers -c hello-openshift-fedora serving on 8081 serving on 8888 $ oc attach doublecontainers Started, serving at 8080 $ oc attach doublecontainers -c hello-openshift Started, serving at 8080 it could attach to a running container
This fix is available in OpenShift Enterprise 3.1.