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:
verified: kubevirt v0.44 CDI 4.9.2
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