Bug 2028154 - VM restore fails for VM with runstrategy
Summary: 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.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.9.2
Assignee: skagan
QA Contact: dalia
URL:
Whiteboard:
Depends On:
Blocks: 2028580
TreeView+ depends on / blocked
 
Reported: 2021-12-01 15:43 UTC by skagan
Modified: 2022-01-19 17:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2028580 (view as bug list)
Environment:
Last Closed: 2022-01-19 17:50:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 6839 0 None Merged vm restore fixes + add snapshots and restore to kubevirt upgrade test 2021-12-01 15:43:20 UTC
Github kubevirt kubevirt pull 6895 0 None Merged [release-0.44] fix vm restore of vm with runstrategy 2021-12-02 14:42:05 UTC
Red Hat Product Errata RHSA-2022:0191 0 None None None 2022-01-19 17:50:06 UTC

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


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