{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/20259","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/20259/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/20259/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/20259/events","html_url":"https://github.com/openshift/origin/issues/20259","id":339506475,"node_id":"MDU6SXNzdWUzMzk1MDY0NzU=","number":20259,"title":"`oc logs --all-containers` throws error","user":{"login":"vrutkovs","id":114501,"node_id":"MDQ6VXNlcjExNDUwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/114501?v=4","gravatar_id":"","url":"https://api.github.com/users/vrutkovs","html_url":"https://github.com/vrutkovs","followers_url":"https://api.github.com/users/vrutkovs/followers","following_url":"https://api.github.com/users/vrutkovs/following{/other_user}","gists_url":"https://api.github.com/users/vrutkovs/gists{/gist_id}","starred_url":"https://api.github.com/users/vrutkovs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrutkovs/subscriptions","organizations_url":"https://api.github.com/users/vrutkovs/orgs","repos_url":"https://api.github.com/users/vrutkovs/repos","events_url":"https://api.github.com/users/vrutkovs/events{/privacy}","received_events_url":"https://api.github.com/users/vrutkovs/received_events","type":"User","site_admin":false},"labels":[{"id":683887368,"node_id":"MDU6TGFiZWw2ODM4ODczNjg=","url":"https://api.github.com/repos/openshift/origin/labels/sig/master","name":"sig/master","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"mfojtik","id":44136,"node_id":"MDQ6VXNlcjQ0MTM2","avatar_url":"https://avatars2.githubusercontent.com/u/44136?v=4","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"assignees":[{"login":"mfojtik","id":44136,"node_id":"MDQ6VXNlcjQ0MTM2","avatar_url":"https://avatars2.githubusercontent.com/u/44136?v=4","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-07-09T15:48:26Z","updated_at":"2018-07-25T20:00:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"`oc logs --all-containers` won't show logs for all containsd\r\n\r\n##### Version\r\n```\r\noc v3.11.0-alpha.0+a8517dd-270\r\nkubernetes v1.11.0+d4cacc0\r\nfeatures: Basic-Auth GSSAPI Kerberos SPNEGO\r\n\r\nServer https://ip-172-18-10-125.ec2.internal:8443\r\nopenshift v3.11.0-alpha.0+a8517dd-270\r\nkubernetes v1.11.0+d4cacc0\r\n```\r\n\r\n##### Steps To Reproduce\r\n1. Run a pod with multiple containers\r\n2. `oc logs --all-containers=true`\r\n\r\n##### Current Result\r\nError:\r\n```\r\n# oc --config=/etc/origin/master/admin.kubeconfig -n openshift-autoheal logs --all-containers=true --tail=50 deployment/autoheal                               \r\nError from server (BadRequest): a container name must be specified for pod autoheal-7df6b98b66-tzqb9, choose one of: [proxy receiver]\r\n```\r\n\r\n##### Expected Result\r\nShows logs for both containers\r\n\r\n##### Additional Information\r\nWorks fine for a pod with one container or container name is specified:\r\n```\r\n# oc --config=/etc/origin/master/admin.kubeconfig -n openshift-autoheal logs -c proxy --tail=50 deployment/autoheal                                            \r\n2018/07/09 15:40:34 provider.go:98: Defaulting client-id to system:serviceaccount:openshift-autoheal:autoheal\r\n2018/07/09 15:40:34 provider.go:103: Defaulting client-secret to service account token /var/run/secrets/kubernetes.io/serviceaccount/token\r\n```\r\n\r\nThis affects openshift-ansible, as it relies on this feature to work correctly in order to display more details"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/407876906","html_url":"https://github.com/openshift/origin/issues/20259#issuecomment-407876906","issue_url":"https://api.github.com/repos/openshift/origin/issues/20259","id":407876906,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzg3NjkwNg==","user":{"login":"liggitt","id":980082,"node_id":"MDQ6VXNlcjk4MDA4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/980082?v=4","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T20:00:42Z","updated_at":"2018-07-25T20:00:42Z","author_association":"MEMBER","body":"> This affects openshift-ansible, as it relies on this feature to work correctly in order to display more details\r\n\r\nthis is a new feature in kubectl 1.11, and is not supported on objects other than pods. see https://github.com/kubernetes/kubernetes/pull/66398 for more details, but it is not supported on deployment objects, at least for now."}}
{"actor":{"display_login":"liggitt"}}