Bug 1950776 - virtctl version returns wrong client version
Summary: virtctl version returns wrong client version
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
medium
Target Milestone: ---
: 4.8.0
Assignee: Igor Bezukh
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-18 16:00 UTC by Alex Kalenyuk
Modified: 2021-07-27 14:30 UTC (History)
2 users (show)

Fixed In Version: kubevirt-virtctl-4.8.0-205
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 14:29:42 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:30:51 UTC

Description Alex Kalenyuk 2021-04-18 16:00:07 UTC
Description of problem:
`virtctl version` returns wrong client version

Version-Release number of selected component (if applicable):
[cnv-qe-jenkins@verify-48-6k7pv-executor ~]$ sudo yum list installed | grep virtctl
kubevirt-virtctl.x86_64                       4.8.0-176.el8                              @@commandline

How reproducible:
100%

Steps to Reproduce:
1. run `virtctl version`

Actual results:
Wrong version:

[cnv-qe-jenkins@verify-48-6k7pv-executor ~]$ virtctl version
Client 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"}
Server Version: version.Info{GitVersion:"v0.40.0-rc.0-138-ge66a61a", GitCommit:"e66a61a81627066fceaae686fe25ee5a75dc5923", GitTreeState:"clean", BuildDate:"2021-04-15T18:54:23Z", GoVersion:"go1.15.7", Compiler:"gc", Platform:"linux/amd64"}

Expected results:
Something along the lines of:

[cnv-qe-jenkins@verify-26-bv842-executor ~]$ virtctl version
Client Version: version.Info{GitVersion:"v0.36.2-22-g95642d8", GitCommit:"95642d83cf41954bca0da31ab6b2727433102dcd", GitTreeState:"clean", BuildDate:"2021-04-14T07:34:32Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.36.2-22-g95642d8", GitCommit:"95642d83cf41954bca0da31ab6b2727433102dcd", GitTreeState:"clean", BuildDate:"2021-04-14T08:47:11Z", GoVersion:"go1.14.12", Compiler:"gc", Platform:"linux/amd64"}

Additional info:
HCO 4.8.0-272
iib 67912

Comment 1 Igor Bezukh 2021-05-03 21:19:58 UTC
Hi,

We already fixed that, attached link to the gerrit patch.

BR
Igor

Comment 2 Kevin Alon Goldblatt 2021-05-18 17:50:49 UTC
Moving to VERIFIED

virtctl version
Client Version: version.Info{GitVersion:"v0.40.0-rc.0-138-ge66a61a", GitCommit:"e66a61a81627066fceaae686fe25ee5a75dc5923", GitTreeState:"clean", BuildDate:"2021-04-15T17:40:56Z", GoVersion:"go1.15.7", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.40.0-rc.0-361-gfad712e", GitCommit:"fad712e84076801588412c47f7d4b9d657adb3c5", GitTreeState:"clean", BuildDate:"2021-04-30T18:50:27Z", GoVersion:"go1.15.7", Compiler:"gc", Platform:"linux/amd64"}
[cnv-qe-jenkins@stg03-kevin-b2sfj-executor ~]$ oc version
Client Version: 4.8.0-202105072225.p0.git.4c2094c-4c2094c
Server Version: 4.8.0-fc.2
Kubernetes Version: v1.21.0-rc.0+4bbda77
[cnv-qe-jenkins@stg03-kevin-b2sfj-executor ~]$ sudo yum list installed | grep virtctl
kubevirt-virtctl.x86_64                       4.8.0-200.el8                             @@commandline

Comment 5 errata-xmlrpc 2021-07-27 14:29:42 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.