Bug 1979114

Summary: Cannot create vm from 'With YAML' on CNV 2.6.5 + OCP 4.8
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: high    
Version: 4.8CC: aos-bugs, ctomasko, fdeutsch, gouyang, mgarrell, tnisan, ycui
Target Milestone: ---Keywords: Regression, ZStream
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: apiVersion mismatch without backward compatability Consequence: YAML get created with apiVersion newer that available in the cluster Fix: Check apiVersion available before creating the YAML Result: YAML with available apiVersion
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:38:01 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:
Description Flags
error on with yaml none

Description Guohua Ouyang 2021-07-05 03:01:28 UTC
Created attachment 1797981 [details]
error on with yaml

Description of problem:
Cannot create vm from 'With YAML' on CNV 2.6.5 + OCP 4.8, error is "The server doesn't have a resource type "kind: VirtualMachine, apiVersion: kubevirt.io/v1"."

Version-Release number of selected component (if applicable):
OCP 4.8.0-rc.1 + CNV 2.6.5

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Comment 1 Yaacov Zamir 2021-07-05 09:41:29 UTC

a. open the create vm from 'With YAML'

edit the apiVersion:

apiVersion: kubevirt.io/v1

shlould be:

apiVersion: kubevirt.io/v1alpha3

Comment 3 Guohua Ouyang 2021-07-13 08:33:42 UTC
verified on CNV 2.6.6 + OCP master

Comment 4 mgarrell 2021-07-22 19:06:22 UTC
Merged PR for 4.8 release notes - https://github.com/openshift/openshift-docs/pull/34736

Comment 7 errata-xmlrpc 2021-10-18 17:38:01 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.