Bug 1386144 - [infrastructure_public_216]update port-forward output from glog to fmt
Summary: [infrastructure_public_216]update port-forward output from glog to fmt
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: dhodovsk
QA Contact: Weihua Meng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-18 09:38 UTC by Weihua Meng
Modified: 2021-03-03 14:18 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-09 14:39:46 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Weihua Meng 2016-10-18 09:38:33 UTC
Description of problem:
part of port-forward output is still using glog, which should use fmt now

Version-Release number of selected component (if applicable):
openshift v3.4.0.11
kubernetes v1.4.0+776c994
etcd 3.1.0-alpha.1

How reproducible:
Always

Steps to Reproduce:
1. oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/pods/double_containers.json
2. oc port-forward doublecontainers 5000:58087
3. open another terminal, curl http://127.0.0.1:5000
4. on oc client terminal, the output is
Forwarding from 127.0.0.1:5000 -> 58087
Forwarding from [::1]:5000 -> 58087
Handling connection for 5000
E1018 16:26:12.467018   17866 portforward.go:327] an error occurred forwarding 5000 -> 58087: error forwarding port 58087 to pod doublecontainers_wmeng, uid : exit status 1: 2016/10/18 04:26:12 socat[73274] E connect(3, AF=2 127.0.0.1:58087, 16): Connection refused

5. oc port-forward -p doublecontainers 5001:8080
W1018 16:35:57.589265   18421 cmd.go:269] -p POD is DEPRECATED and will be removed in a future version. Use port-forward POD instead.
Forwarding from 127.0.0.1:5001 -> 8080
Forwarding from [::1]:5001 -> 8080

Actual results:


Expected results:
4. line 4 should not contain "E1018 16:26:12.467018   17866 portforward.go:327]"
5. output should not contain "W1018 16:35:57.589265   18421 cmd.go:269]"
Additional info:

Comment 1 Weihua Meng 2017-11-09 07:40:52 UTC
any update?

Comment 2 Weihua Meng 2017-11-09 08:10:52 UTC
json file updated.
for step 1
# oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/pods/double_containers.json

Comment 3 Weihua Meng 2017-11-09 08:16:10 UTC
Sorry for incorrect link. should be this one:
# oc  create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/pods/pod_with_two_containers.json

Comment 4 dhodovsk 2017-11-09 14:39:46 UTC
Error output in the actual result is invoked by global runtime error handler. Changing glog to simple output would affect more commands.

Comment 5 Weihua Meng 2017-11-10 02:50:15 UTC
This request is from Trello card [infrastructure_public_216] 
I cannot find the card now since 1 year passed.
It is likely in "ClusterInfra" board at bug reported time, which is called "Pod" board now.

We had better double confirm that we surely do not want to do it.
Thanks.


Note You need to log in before you can comment on or make changes to this bug.