Bug 1967885 - Creating a VM from the UI on OKD 4.7 fails with "the API version in the data (kubevirt/v1) does not match the expected API version (kubevirt/v1alpha3)"
Summary: Creating a VM from the UI on OKD 4.7 fails with "the API version in the data ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.9.0
Assignee: Gilad Lekner
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks: 1971188
TreeView+ depends on / blocked
 
Reported: 2021-06-04 10:09 UTC by Simone Tiraboschi
Modified: 2023-09-15 01:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:32:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
UI error 1 (166.84 KB, image/png)
2021-06-04 10:10 UTC, Simone Tiraboschi
no flags Details
UI error 2 (185.47 KB, image/png)
2021-06-04 10:10 UTC, Simone Tiraboschi
no flags Details
vm.yaml (2.77 KB, text/plain)
2021-06-04 10:10 UTC, Simone Tiraboschi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 9258 0 None open Bug 1967885: Creating a VM from the UI on OKD 4.7 fails 2021-06-15 15:35:05 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:33:12 UTC

Description Simone Tiraboschi 2021-06-04 10:09:27 UTC
Description of problem:
when I try to create a VM from the UI on OKD 4.7 I'm constantly getting:
"the API version in the data (kubevirt/v1) does not match the expected API version (kubevirt/v1alpha3)"
if I copy the vm definition yaml generated by the UI and I try creating it from CLI it works as expected.

See the attached screenshots.


Version-Release number of selected component (if applicable):
upstream kubevirt-hyperconverged 1.3.0, 1.4.0, 1.5.0 on OKD 4.7 (4.7.0-0.okd-2021-05-22-050008)

How reproducible:
100%

Steps to Reproduce:
1. try to create a VM from the UI
2.
3.

Actual results:
the API version in the data (kubevirt/v1) does not match the expected API version (kubevirt/v1alpha3)

Expected results:
I'm able to create a VM

Additional info:
If I save the VM definition created by the UI in a text file and then try to create (on the same cluster!) the vm with `oc create -f vm.yaml` it works as expected.

Comment 1 Simone Tiraboschi 2021-06-04 10:10:08 UTC
Created attachment 1788953 [details]
UI error 1

Comment 2 Simone Tiraboschi 2021-06-04 10:10:33 UTC
Created attachment 1788954 [details]
UI error 2

Comment 3 Simone Tiraboschi 2021-06-04 10:10:58 UTC
Created attachment 1788955 [details]
vm.yaml

Comment 5 Yaacov Zamir 2021-06-14 10:10:47 UTC
blocker -, this bug will be solved by the release of a new version.

Comment 6 Yaacov Zamir 2021-06-14 11:16:28 UTC
This is solved on 4.8
https://bugzilla.redhat.com/show_bug.cgi?id=1958811

on 4.7 we left it v1alpha3 on purpose to work with kubevirt 4.6

@tnisan does kubevirt-ui-4.8 need to work with kubevirt-2.6 ?

Note:
we currently hardcore the CRD API instead of dynamically getting it ...

Comment 9 Guohua Ouyang 2021-06-29 06:26:21 UTC
verified on master

Comment 12 errata-xmlrpc 2021-10-18 17:32:54 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 Container Platform 4.9.0 bug fix and security 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:3759

Comment 13 Red Hat Bugzilla 2023-09-15 01:09:01 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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