Bug 2028154

Summary: VM restore fails for VM with runstrategy
Product: Container Native Virtualization (CNV) Reporter: skagan
Component: StorageAssignee: skagan
Status: CLOSED ERRATA QA Contact: dalia <dafrank>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.9.0CC: alitke, cnv-qe-bugs, ycui
Target Milestone: ---   
Target Release: 4.9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2028580 (view as bug list) Environment:
Last Closed: 2022-01-19 17:50:02 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 2028580    

Description skagan 2021-12-01 15:43:20 UTC
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:13:02 UTC
verified:
kubevirt    v0.44
CDI 4.9.2

Comment 7 errata-xmlrpc 2022-01-19 17:50:02 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 Virtualization 4.9.2 Images security and bug fix 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.

https://access.redhat.com/errata/RHSA-2022:0191