Bug 1937307

Summary: kubevirt version is not reported correctly
Product: Container Native Virtualization (CNV) Reporter: Denis Ollier <dollierp>
Component: VirtualizationAssignee: Igor Bezukh <ibezukh>
Status: CLOSED ERRATA QA Contact: Israel Pinto <ipinto>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.8.0CC: acardace, cnv-qe-bugs
Target Milestone: ---   
Target Release: 4.8.0   
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: 2021-07-27 14:28:41 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:

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