Bug 1962099

Summary: Creating a VM from a template via console is using the v1alpha3 API with a v1 VM manifest
Product: Container Native Virtualization (CNV) Reporter: Sarah Bennert <sbennert>
Component: User ExperienceAssignee: Tal Nisan <tnisan>
Status: CLOSED DUPLICATE QA Contact: Oded Ramraz <oramraz>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.8.0CC: cnv-qe-bugs
Target Milestone: ---   
Target Release: ---   
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-05-24 13:24:55 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 Sarah Bennert 2021-05-19 10:13:11 UTC
Description of problem:

Creating a VM from a template via console is using the v1alpha3 API with a v1 VM manifest, which fails.


Version-Release number of selected component (if applicable):
# Openshift cluster
4.8.0-fc.2

# HCO Operator
registry.redhat.io/container-native-virtualization/hyperconverged-cluster-operator@sha256:508529059070b9fc4cb701416f7911e6954b15424af7e68ff161e93fda805dd3
hyperconverged-cluster-operator-container-v4.8.0-51

# SSP Operator
registry.redhat.io/container-native-virtualization/kubevirt-ssp-operator@sha256:572b2ed7d34667520874e99402863f3011cd6f13452600451e715a4230c1f9b1
kubevirt-ssp-operator-container-v4.8.0-33


How reproducible:
100%

Steps to Reproduce:
1. Create a VM from a template in console
2.
3.

Actual results:

POST https://console.example/api/kubernetes/apis/kubevirt.io/v1alpha3/namespaces/default/virtualmachines

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {
    
  },
  "status": "Failure",
  "message": "the API version in the data (kubevirt.io/v1) does not match the expected API version (kubevirt.io/v1alpha3)",
  "reason": "BadRequest",
  "code": 400
}


Expected results:
VM Created


Additional info:

Comment 1 Tal Nisan 2021-05-24 13:24:55 UTC

*** This bug has been marked as a duplicate of bug 1958811 ***