Bug 1967885

Summary: 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)"
Product: OpenShift Container Platform Reporter: Simone Tiraboschi <stirabos>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: high    
Version: 4.9CC: aos-bugs, cnv-qe-bugs, gouyang, tnisan, yzamir
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:32:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1971188    
Attachments:
Description Flags
UI error 1
none
UI error 2
none
vm.yaml none

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