Description of problem: Create a pod with multiple containers, check each containter's log on web console. The logs for all the containers are the same with the first container. Version-Release number of selected component (if applicable): openshift v1.0.6-1053-gbd6a762 kubernetes v1.2.0-alpha.1-1107-g4c8e6f4 etcd 2.1.2 How reproducible: Always Steps to Reproduce: 1.Create a pod with multiple containers. $ oc create -f multiple-container.yaml -n prozyp 2.Check all the containers's log on cli. 3.View all the containers's log on web console. Actual results: 2. $ oc logs multiplecontainers -c hello-openshift -n prozyp Started, serving at 8080 $ oc logs multiplecontainers -c hello-two -n prozyp * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) $ oc logs multiplecontainers -c hello-openshift-fedora -n prozyp serving on 8081 serving on 8888 3.All the logs are the same with the first container's log. Pls refer to the attachments. Expected results: 3.On web console,the logs should be same with the output of `oc logs`. Additional info:
Created attachment 1087376 [details] first-container
Created attachment 1087377 [details] second-container
Created attachment 1087378 [details] third-container
Ben, I saw this at the end of the day yesterday, its because of this line: https://github.com/openshift/origin/commit/a03cd35eb8f7a332503022ebc6b3e9fc1152d459#diff-e81d5d378cb83bfc99a6fb64f5e492b6R102 Any time runLogs gets called its resetting container to containers[0].name
PR https://github.com/openshift/origin/pull/5489
5489 was closed in place of 5537 https://github.com/openshift/origin/pull/5537
Tested on devenv-rhel7_2619. openshift v1.0.7-109-g3cf7f3c kubernetes v1.2.0-alpha.1-1107-g4c8e6f4 etcd 2.1.2 Steps to verify: 1.Create a pod with multiple containers. $ oc create -f multiple-container.yaml -n prozyp 2.View all the containers' log on web console. When switch container, the log is displayed correctly for the container. The bug has been fixed, so move the bug to Verified.