Bug 1881742 - Error "invalid apiGroup" for field "spec.source.apiGroup" when take snapshot for VM
Summary: Error "invalid apiGroup" for field "spec.source.apiGroup" when take snapshot ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.6.0
Assignee: Gilad Lekner
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-23 01:06 UTC by Guohua Ouyang
Modified: 2020-10-27 16:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:44:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error on vm snapshot (123.53 KB, image/png)
2020-09-23 01:06 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 6718 0 None open Bug 1881742: Error "invalid apiGroup" when taking snapshot for VM 2020-09-23 09:04:56 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:44:26 UTC

Description Guohua Ouyang 2020-09-23 01:06:35 UTC
Created attachment 1715874 [details]
error on vm snapshot

Description of problem:
Error "invalid apiGroup" for field "spec.source.apiGroup" when take snapshot for VM

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

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Tomas Jelinek 2020-09-23 06:48:41 UTC
The API changed, we need to adapt. 

apiVersion: snapshot.kubevirt.io/v1alpha1
kind: VirtualMachineSnapshot
metadata:
  name: my-vmsnapshot
spec:
  source:
    apiGroup: kubevirt.io/v1alpha3 #eventually just kubevirt.io
    kind: VirtualMachine
    name: testvm


(e.g. the "apiGroup: kubevirt.io/v1alpha3" should be just "apiGroup: kubevirt.io")

Comment 5 errata-xmlrpc 2020-10-27 16:44:05 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196


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