Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc logs dc/name -c container is broken #17999

Closed
0xmichalis opened this issue Jan 5, 2018 · 1 comment
Closed

oc logs dc/name -c container is broken #17999

0xmichalis opened this issue Jan 5, 2018 · 1 comment
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P1 sig/master

Comments

@0xmichalis
Copy link
Contributor

0xmichalis commented Jan 5, 2018

$ oc logs -f dc/tracer -c oauth-proxy
Error from server (BadRequest): a container name must be specified for pod tracer-10-thg2m, choose one of: [oauth-proxy tracer]
$ oc version
oc v3.9.0-alpha.0+4d15c88-84
kubernetes v1.8.1+0d5291c
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://api.ci.openshift.org:443
openshift v3.7.0-rc.0+bd64aab-99
kubernetes v1.7.6+a08f5eeb62

/kind bug
/sig master

@mfojtik

@openshift-ci-robot openshift-ci-robot added kind/bug Categorizes issue or PR as related to a bug. sig/master labels Jan 5, 2018
@0xmichalis
Copy link
Contributor Author

/assign mfojtik

openshift-merge-robot added a commit that referenced this issue Jan 9, 2018
Automatic merge from submit-queue.

Fix passing container to pod logs from dc

Fixes: #17999

@Kargakis FYI
  
```
~/.../openshift/origin → oc logs dc/docker-registry -c second
openshift v3.9.0-alpha.1+5643835
kubernetes v1.9.0-beta1
etcd 3.2.8
~/.../openshift/origin → oc logs dc/docker-registry
Error from server (BadRequest): a container name must be specified for pod docker-registry-3-f6grl, choose one of: [second registry]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P1 sig/master
Projects
None yet
Development

No branches or pull requests

3 participants