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

Port-forward: use out and error streams instead of glog #17030

Merged
merged 1 commit into from
Apr 29, 2016

Conversation

csrwng
Copy link
Contributor

@csrwng csrwng commented Nov 9, 2015

Switches use of glog with command out and error streams

@csrwng
Copy link
Contributor Author

csrwng commented Nov 9, 2015

@ncdc ptal

@k8s-bot
Copy link

k8s-bot commented Nov 9, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

1 similar comment
@k8s-bot
Copy link

k8s-bot commented Nov 9, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 9, 2015
@wojtek-t
Copy link
Member

@csrwng - what is the motivation for this change?

@csrwng
Copy link
Contributor Author

csrwng commented Nov 10, 2015

@wojtek-t 2 reasons: 1) the default glog format includes module and line number which is great for a debug log but not for interactive command output and 2) it makes the portforward command more usable from other commands if those commands can supply the output streams.

@ncdc
Copy link
Member

ncdc commented Nov 10, 2015

@k8s-bot this this

@ncdc ncdc assigned ncdc and unassigned smarterclayton Nov 10, 2015
@eparis
Copy link
Contributor

eparis commented Nov 13, 2015

@k8s-bot add to whitelist

@ncdc
Copy link
Member

ncdc commented Nov 13, 2015

@csrwng not sure what the exact failures are, given the build log is missing. You may want to download all the individual JUnit test artifacts to search for the failure :-/

@ncdc
Copy link
Member

ncdc commented Nov 16, 2015

@ixdy this has failed e2e 3 times but there's no build log. Any ideas what's going on?

@ixdy
Copy link
Member

ixdy commented Nov 16, 2015

@ncdc see #17282

@ncdc
Copy link
Member

ncdc commented Nov 17, 2015

@csrwng finally got the failure info:

• Failure [33.408 seconds]
Port forwarding
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:240
  With a server that expects a client request
  /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:203
    should support a client that connects, sends data, and disconnects [Conformance] [It]
    /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:202

    Nov 17 09:11:49.279: Failed to parse kubectl port-forward output: E1117 09:11:49.278868    9382 portforward.go:207] Unable to create listener: Error listen tcp6 [::1]:38007: bind: cannot assign 

    /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:104

Do you think your output changes would cause this? Can you try to run this e2e locally?

@csrwng
Copy link
Contributor Author

csrwng commented Nov 17, 2015

@ncdc yes, I'll try it locally later today. Thank you much for getting the log of the failure. And yes, it looks like the e2e test is expecting the old output of the portforward command, so it needs to be fixed.

@csrwng
Copy link
Contributor Author

csrwng commented Nov 24, 2015

Fixed the e2e test to expect output on stdout instead of stderr

@ncdc
Copy link
Member

ncdc commented Jan 18, 2016

LGTM. @liggitt care to sanity check?

@ncdc ncdc added this to the v1.2-candidate milestone Jan 18, 2016
@k8s-bot
Copy link

k8s-bot commented Feb 17, 2016

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 29, 2016
@k8s-github-robot
Copy link

PR needs rebase

@bgrant0607 bgrant0607 assigned liggitt and unassigned ncdc Mar 4, 2016
@bgrant0607
Copy link
Member

We need to decide if this is in or out ASAP.

@ncdc
Copy link
Member

ncdc commented Mar 4, 2016

I think this can wait until 1.3. You ok with that @csrwng @liggitt ?

@bgrant0607 bgrant0607 removed this from the v1.2-candidate milestone Mar 4, 2016
@liggitt
Copy link
Member

liggitt commented Mar 4, 2016

yeah

@csrwng
Copy link
Contributor Author

csrwng commented Mar 4, 2016

that's fine with me... will rebase as well

@fejta
Copy link
Contributor

fejta commented Apr 26, 2016

Please rebase and push

@csrwng
Copy link
Contributor Author

csrwng commented Apr 27, 2016

rebased

@k8s-github-robot k8s-github-robot removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. needs-ok-to-merge labels Apr 27, 2016
@ncdc ncdc added this to the v1.3 milestone Apr 28, 2016
@ncdc ncdc added lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Apr 28, 2016
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Apr 29, 2016

GCE e2e build/test passed for commit 55114ef.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.