Bug 1937307 - kubevirt version is not reported correctly
Summary: kubevirt version is not reported correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 4.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.8.0
Assignee: Igor Bezukh
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-10 10:50 UTC by Denis Ollier
Modified: 2021-07-27 14:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 14:28:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2920 0 None None None 2021-07-27 14:29:15 UTC

Description Denis Ollier 2021-03-10 10:50:49 UTC
This is the same bug as BZ#1907151 but for CNV-4.8.

KubeVirt version reported by the API server is v0.0.0-master+$Format:%h$

> kubectl get --raw /apis/subresources.kubevirt.io/v1alpha3/version
> 
> {
>  "gitVersion": "v0.0.0-master+$Format:%h$",
>  "gitCommit": "$Format:%H$",
>  "gitTreeState": "",
>  "buildDate": "1970-01-01T00:00:00Z",
>  "goVersion": "go1.14.12",
>  "compiler": "gc",
>  "platform": "linux/amd64"
> }

> virtctl version
> 
> Client Version: version.Info{GitVersion:"v0.36.1-19-g0894c57", GitCommit:"0894c57319a7129f31b9a054eb64003546e8438a", GitTreeState:"clean", BuildDate:"2021-02-11T10:06:23Z", GoVersion:"go1.14.12", Compiler:"gc", Platform:"linux/amd64"}
> Server Version: version.Info{GitVersion:"v0.0.0-master+$Format:%h$", GitCommit:"$Format:%H$", GitTreeState:"", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.14.12", Compiler:"gc", Platform:"linux/amd64"}

Comment 1 Denis Ollier 2021-03-24 10:09:22 UTC
Tested OK
---------

- kubevirt-virtctl-4.8.0-185.el8.x86_64
- registry-proxy.engineering.redhat.com/rh-osbs/container-native-virtualization-virt-api:v4.8.0-24

Server version
--------------

> kubectl get --raw /apis/subresources.kubevirt.io/v1alpha3/version
> 
> {
>  "gitVersion": "v0.39.0-rc.0-279-ga27a05b",
>  "gitCommit": "a27a05b4cec83101be7444031606f8fb3441450b",
>  "gitTreeState": "clean",
>  "buildDate": "2021-03-22T18:36:47Z",
>  "goVersion": "go1.14.12",
>  "compiler": "gc",
>  "platform": "linux/amd64"
> }

Client version
--------------

> virtcl version
> 
> Client Version: version.Info{GitVersion:"v0.39.0-rc.0-279-ga27a05b", GitCommit:"a27a05b4cec83101be7444031606f8fb3441450b", GitTreeState:"clean", BuildDate:"2021-03-22T18:03:21Z", GoVersion:"go1.14.12", Compiler:"gc", Platform:"linux/amd64"}
> Server Version: version.Info{GitVersion:"v0.39.0-rc.0-279-ga27a05b", GitCommit:"a27a05b4cec83101be7444031606f8fb3441450b", GitTreeState:"clean", BuildDate:"2021-03-22T18:36:47Z", GoVersion:"go1.14.12", Compiler:"gc", Platform:"linux/amd64"}

Comment 4 errata-xmlrpc 2021-07-27 14:28:41 UTC
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 (Moderate: OpenShift Virtualization 4.8.0 Images), 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/RHSA-2021:2920


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