Bug 1654184
Summary: | Messages in oc client logs is useless and lower response | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Yadan Pei <yapei> |
Component: | oc | Assignee: | Juan Vallejo <jvallejo> |
Status: | CLOSED NOTABUG | QA Contact: | Xingxing Xia <xxia> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.1.0 | CC: | aos-bugs, jokerman, mmccomas, yapei |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-11-28 15:47:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yadan Pei
2018-11-28 08:25:05 UTC
As of release 3.12, `oc get` makes use of server-side printing by default [1]. This means that instead of having the server send back a list of api resources, it instead sends back a "Table" object containing the columns and rows for `oc` to display. The error you are seeing is logged here [2]. In order to maintain compatibility between newer clients against servers that don't send back a Table object, `oc get` treats the object sent back from the server as a non-Table object, which it must convert to an internal version before printing. For newer servers that do reply back with a Table object, this conversion will always fail. Because we cannot guarantee that the error returned will always be caused by a Table object (it could be that we are talking to an old server which replied with a PodList, for example, and that conversion failed for some other reason), we have chosen to keep that log there. That conversion will be removed altogether in a future version once we no longer need to support old servers that might reply with a non-Table response. 1. https://kubernetes.io/docs/reference/kubectl/overview/#server-side-columns 2. https://github.com/openshift/origin/blob/master/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/get/get.go#L443 Thank you Juan |