Bug 2169361 - Mismatch of golang version in downstream virtctl builds
Summary: Mismatch of golang version in downstream virtctl builds
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Infrastructure
Version: 4.14.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.14.0
Assignee: Felix Matouschek
QA Contact: Geetika Kapoor
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-13 12:41 UTC by Felix Matouschek
Modified: 2023-11-08 14:05 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:05:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CNV-25464 0 None None None 2023-02-13 12:42:22 UTC
Red Hat Issue Tracker CNV-25940 0 None None None 2023-03-01 11:43:52 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:05:33 UTC

Description Felix Matouschek 2023-02-13 12:41:41 UTC
Description of problem:

Upstream sources of virtctl expect the golang 1.19 featureset to be available but downstream builds of virtctl still use older versions of golang (RHEL8/9 -> golang 1.18, RHEL7 -> golang 1.17). This breaks builds when using language features not available in older golang versions. (see [1] for an example)

As a start my suggestion is to drop virtctl support for RHEL7, because the OpenShift CLI client already dropped RHEL7 support in version 4.11. (see [2])

Further we should try to better keep golang versions between upstream and downstream builds in sync.

[1]: https://github.com/kubevirt/kubevirt/pull/9086
[2]: https://access.redhat.com/articles/6968945 

Version-Release number of selected component (if applicable):
4.13

How reproducible:
Always

Steps to Reproduce:
1. Try to build virtctl with golang version 1.17 or older
2.
3.

Actual results:
The build fails because latest virtctl sources use language features not available in golang 1.17 / RHEL 7 builds.

Expected results:
The build succeeds because the required golang featureset is available.

or

No builds with old golang versions of sources requiring later golang versions.

Additional info:

Comment 1 Felix Matouschek 2023-06-29 08:47:00 UTC
Builds of virtctl for RHEL7 and RHEL9 are dropped in CNV 4.14. This leaves us with RHEL8 builds, which currently do not have this issue.

Comment 5 errata-xmlrpc 2023-11-08 14:05:04 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 (Important: OpenShift Virtualization 4.14.0 Images 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-2023:6817


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