Bug 2052980
| Summary: | kubectl version is not showing expected version details | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Maciej Szulik <maszulik> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| oc sub component: | oc | QA Contact: | RamaKasturi <knarra> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | aos-bugs, knarra, mfojtik, sreber, travi, yinzhou |
| Version: | 4.8 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.8.z | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2051626 | Environment: | |
| Last Closed: | 2022-06-16 18:23:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2051626 | ||
| Bug Blocks: | |||
|
Comment 5
Maciej Szulik
2022-05-31 11:05:40 UTC
Verified with the payload below and i do not see any warning if client & server versions are same also if server version is one step higher than client version.
[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2022-06-01-233644]$ ./kubectl get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.8.0-0.nightly-2022-06-01-233644 True False 25m Cluster version is 4.8.0-0.nightly-2022-06-01-233644
[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2022-06-01-233644]$ ./kubectl version -o yaml
clientVersion:
buildDate: "2022-06-01T10:52:06Z"
compiler: gc
gitCommit: 7c3760ea7dc4576f62e8b183a622b1ff2e5ce240
gitTreeState: clean
gitVersion: v1.21.9
goVersion: go1.16.12
major: "1"
minor: "21"
platform: linux/amd64
serverVersion:
buildDate: "2022-05-04T12:09:18Z"
compiler: gc
gitCommit: 047f86f8e2212f25394de1c8bad35d9426ae0f4c
gitTreeState: clean
gitVersion: v1.21.11+6b3cbdd
goVersion: go1.16.12
major: "1"
minor: "21"
platform: linux/amd64
[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2022-06-01-233644]$ ./kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.9", GitCommit:"7c3760ea7dc4576f62e8b183a622b1ff2e5ce240", GitTreeState:"clean", BuildDate:"2022-06-01T10:52:06Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.11+6b3cbdd", GitCommit:"047f86f8e2212f25394de1c8bad35d9426ae0f4c", GitTreeState:"clean", BuildDate:"2022-05-04T12:09:18Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2022-06-01-233644]$ ./kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.9", GitCommit:"7c3760ea7dc4576f62e8b183a622b1ff2e5ce240", GitTreeState:"clean", BuildDate:"2022-06-01T10:52:06Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.8+c02bd9d", GitCommit:"496de02aacae03fbbd977e802b08b71ca76f390a", GitTreeState:"clean", BuildDate:"2022-04-18T05:31:01Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
warning is seen for versions which are two steps higher than client version as shown below:
==============================================================================================
[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2022-06-01-233644]$ ./kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.9", GitCommit:"7c3760ea7dc4576f62e8b183a622b1ff2e5ce240", GitTreeState:"clean", BuildDate:"2022-06-01T10:52:06Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.5+3afdacb", GitCommit:"3c28e7a79b58e78b4c1dc1ab7e5f6c6c2d3aedd3", GitTreeState:"clean", BuildDate:"2022-05-10T16:30:48Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.21) and server (1.23) exceeds the supported minor version skew of +/-1
[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2022-06-01-233644]$ ./oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.10.0-0.nightly-2022-06-01-204608 True False 48m Cluster version is 4.10.0-0.nightly-2022-06-01-204608
[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2022-06-01-233644]$ ./kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.9", GitCommit:"7c3760ea7dc4576f62e8b183a622b1ff2e5ce240", GitTreeState:"clean", BuildDate:"2022-06-01T10:52:06Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.3+ad897c4", GitCommit:"6f5a5295923a614a4202a7ad274b38b69f9ca8c0", GitTreeState:"clean", BuildDate:"2022-05-19T17:24:45Z", GoVersion:"go1.18", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.21) and server (1.23) exceeds the supported minor version skew of +/-1
Based on the above moving bug to verified state.
[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2022-06-01-233644]$ ./oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.11.0-0.nightly-2022-05-25-193227 True False 24h Cluster version is 4.11.0-0.nightly-2022-05-25-193227
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.8.43 bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:4952 |