Bug 2028580 - [4.8.z] VM restore fails for VM with runstrategy
Summary: [4.8.z] VM restore fails for VM with runstrategy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.8.4
Assignee: skagan
QA Contact: dalia
URL:
Whiteboard:
Depends On: 2028154
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-02 16:47 UTC by Adam Litke
Modified: 2022-01-20 17:21 UTC (History)
6 users (show)

Fixed In Version: CNV v4.8.4-1, virt-operator v4.8.4-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2028154
Environment:
Last Closed: 2022-01-20 17:21:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 6897 0 None Merged [release-0.41] fix vm restore of vm with runstrategy 2021-12-02 16:50:26 UTC
Red Hat Product Errata RHBA-2022:0213 0 None None None 2022-01-20 17:21:33 UTC

Description Adam Litke 2021-12-02 16:47:40 UTC
+++ This bug was initially created as a clone of Bug #2028154 +++

Description of problem:
Trying to restore a VM with any RunStrategy instead of Running variable (they are mutually exclusive) fails. The restore controller sets the Spec.Running false regardless if it was set before or not. The webhook of creating a vm refuses to set Running and RunStrategy at the same time.

Version-Release number of selected component (if applicable):
CNV 4.8.0
CNV 4.9.0


How reproducible:
Always


Steps to Reproduce:
1. Create a vm with spec.RunStrategy instead of spec.Running
2. Create a snapshot
3. restore from that snapshot

Actual results:
restore is stuck since the create of the restored VM fails due to the webhook


Expected results:
restore completes successfully


Additional info:

Comment 1 dalia 2021-12-19 15:03:16 UTC
Verified on CNV 4.8.4

Comment 7 errata-xmlrpc 2022-01-20 17:21:21 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 Virtualization 4.8.4 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-2022:0213


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