Bug 1907151 - kubevirt version is not reported correctly via virtctl
Summary: kubevirt version is not reported correctly via virtctl
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 2.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 2.6.0
Assignee: Igor Bezukh
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-13 10:52 UTC by Tareq Alayan
Modified: 2021-03-10 11:23 UTC (History)
7 users (show)

Fixed In Version: kubevirt-virtctl-2.6.0-161.el7.x86_64
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-10 11:22: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:0799 0 None None None 2021-03-10 11:23:19 UTC

Description Tareq Alayan 2020-12-13 10:52:24 UTC
Description of problem:
virtctl returns 
Server Version: version.Info{GitVersion:"v0.0.0-master+$Format:%h$", GitCommit:"$Format:%H$", GitTreeState:"", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.14.7", Compiler:"gc", Platform:"linux/amd64"}



Version-Release number of selected component (if applicable):
virtctl-v0.36.0-rc.0-linux-amd64 version 
Client Version: version.Info{GitVersion:"v0.36.0-rc.0", GitCommit:"8dd2584c4aff3cb3fa7a3cae80ebe6921cb3ed31", GitTreeState:"clean", BuildDate:"2020-12-01T16:47:08Z", GoVersion:"go1.13.14", Compiler:"gc", Platform:"linux/amd64"}


NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   

STATUS
version   4.7.0-0.nightly-2020-12-13-031811   True        False         160m    Cluster version is 4.7.0-0.nightly-2020-12-13-031811

NAME                                      DISPLAY                    VERSION   REPLACES                                  PHASE
kubevirt-hyperconverged-operator.v2.6.0   OpenShift Virtualization   2.6.0     kubevirt-hyperconverged-operator.v2.5.0   Succeeded


How reproducible:
always

Steps to Reproduce:
1. run virtctl version

Comment 1 sgott 2020-12-14 13:18:49 UTC
At first glance I would have assumed this was related to https://bugzilla.redhat.com/show_bug.cgi?id=1832769

The root cause of that was that GO111MODULE needed to be explicitly disabled. Unclear why this has cropped up again.

Comment 3 Daniel Hiller 2020-12-16 18:03:31 UTC
Problem was that go modules got disabled in the Dockerfile builds explicitly although they had been enabled in general. 

Patch for this is https://code.engineering.redhat.com/gerrit/#/c/221484/

Comment 4 Denis Ollier 2021-01-08 13:11:21 UTC
Hi,

First CNV 2.7 build is also affected by this issue:

- hco-bundle-registry:v2.7.0-1
- registry-proxy.engineering.redhat.com/rh-osbs/iib:36708

> 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"}

Regards

Comment 5 sgott 2021-01-11 18:47:04 UTC
Fixed in https://github.com/kubevirt/kubevirt/pull/4728

Comment 6 Tareq Alayan 2021-01-15 08:31:27 UTC
removed automation blocker becuase we have workaround

Comment 7 Tareq Alayan 2021-01-15 08:32:58 UTC
we still don't see version reported correctly with 
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.13.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.36.0-24-gf87ed2c", GitCommit:"f87ed2c9127005f8262c7b674a1c16195ac7fae5", GitTreeState:"clean", BuildDate:"2021-01-13T19:03:41Z", GoVersion:"go1.14.12", Compiler:"gc", Platform:"linux/amd64"}

Comment 8 Israel Pinto 2021-01-26 11:07:12 UTC
I download virtcrl https://github.com/kubevirt/kubevirt/releases/download/v0.36.1/virtctl-v0.36.1-linux-amd64
I get error with virtctl version:

Client Version: version.Info{GitVersion:"v0.36.1", GitCommit:"bc17be9b096e0b7912ed8f4096ad5092bc59d444", GitTreeState:"clean", BuildDate:"2021-01-22T16:26:38Z", GoVersion:"go1.13.14", Compiler:"gc", Platform:"linux/amd64"}
dial tcp [::1]:8080: connect: connection refused

Comment 9 sgott 2021-01-26 13:04:11 UTC
Your cluster is not running or you are not able to reach it.

Comment 12 zhe peng 2021-01-27 06:33:18 UTC
verify with kubevirt-virtctl-2.6.0-161
$ virtctl version
Client Version: version.Info{GitVersion:"v0.36.1-6-ge9d66a5", GitCommit:"e9d66a55ddb0f7caafc5523c58ede7fec54cf8e7", GitTreeState:"clean", BuildDate:"2021-01-24T09:34:10Z", GoVersion:"go1.14.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.36.1-6-ge9d66a5", GitCommit:"e9d66a55ddb0f7caafc5523c58ede7fec54cf8e7", GitTreeState:"clean", BuildDate:"2021-01-22T11:53:22Z", GoVersion:"go1.14.12", Compiler:"gc", Platform:"linux/amd64"}

test with https://github.com/kubevirt/kubevirt/releases/download/v0.36.1/virtctl-v0.36.1-linux-amd64
$ ./virtctl-v0.36.1-linux-amd64 version
Client Version: version.Info{GitVersion:"v0.36.1", GitCommit:"bc17be9b096e0b7912ed8f4096ad5092bc59d444", GitTreeState:"clean", BuildDate:"2021-01-22T16:26:38Z", GoVersion:"go1.13.14", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.36.1-6-ge9d66a5", GitCommit:"e9d66a55ddb0f7caafc5523c58ede7fec54cf8e7", GitTreeState:"clean", BuildDate:"2021-01-22T11:53:22Z", GoVersion:"go1.14.12", Compiler:"gc", Platform:"linux/amd64"}

Comment 13 Igor Bezukh 2021-01-27 12:34:05 UTC
Using build 161 Worked of me as well, tested against latest Kubevirt master branch

 ยป virtctl version
Client Version: version.Info{GitVersion:"v0.36.1-6-ge9d66a5", GitCommit:"e9d66a55ddb0f7caafc5523c58ede7fec54cf8e7", GitTreeState:"clean", BuildDate:"2021-01-24T09:35:16Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.37.0-rc.0.227+319b736c232637-dirty", GitCommit:"319b736c2326372aaa033e9cbb42885347a032c4", GitTreeState:"dirty", BuildDate:"2021-01-27T12:02:51Z", GoVersion:"go1.13.14", Compiler:"gc", Platform:"linux/amd64"}

Comment 16 errata-xmlrpc 2021-03-10 11:22: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 2.6.0 security and 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/RHSA-2021:0799


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