Bug 2028580

Summary: [4.8.z] VM restore fails for VM with runstrategy
Product: Container Native Virtualization (CNV) Reporter: Adam Litke <alitke>
Component: StorageAssignee: skagan
Status: CLOSED ERRATA QA Contact: dalia <dafrank>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.8.0CC: alitke, cnv-qe-bugs, dafrank, mrashish, skagan, yadu
Target Milestone: ---   
Target Release: 4.8.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: CNV v4.8.4-1, virt-operator v4.8.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2028154 Environment:
Last Closed: 2022-01-20 17:21:21 UTC Type: ---
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: 2028154    
Bug Blocks:    

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