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
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.
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/
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
Fixed in https://github.com/kubevirt/kubevirt/pull/4728
removed automation blocker becuase we have workaround
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"}
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
Your cluster is not running or you are not able to reach it.
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"}
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"}
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