Bug 2018521 - [Storage] Failed to restore VirtualMachineSnapshot after CNV upgrade
Summary: [Storage] Failed to restore VirtualMachineSnapshot after CNV upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.9.0
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
: 4.9.0
Assignee: Michael Henriksen
QA Contact: Ying Cui
URL:
Whiteboard:
: 2018519 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-29 15:14 UTC by Yan Du
Modified: 2021-11-02 16:01 UTC (History)
3 users (show)

Fixed In Version: virt-cdi-operator-container-v4.9.0-37, CNV-v4.9.0-266
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-02 16:01:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 6703 0 None open Fix vmsnapshot upgrade bug 2021-10-29 18:14:16 UTC
Github kubevirt kubevirt pull 6705 0 None open [release-0.44] Fix vmsnapshot upgrade bug 2021-10-29 22:06:45 UTC
Red Hat Product Errata RHSA-2021:4104 0 None None None 2021-11-02 16:01:48 UTC

Description Yan Du 2021-10-29 15:14:38 UTC
Description of problem:
Failed to restore VirtualMachineSnapshot after CNV upgrade to 4.9.0

22:39:15  HTTP response headers: HTTPHeaderDict({'Audit-Id': 'f567186d-c20e-43a4-a701-515444077150', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Kubernetes-Pf-Flowschema-Uid': '600ea974-cc9c-47f6-aa7d-f7fe3fba42ad', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'f89c2759-d03d-4e56-b60f-edcdcdbb5f98', 'Date': 'Fri, 29 Oct 2021 14:39:14 GMT', 'Content-Length': '534'})
22:39:15  HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"admission webhook \\"virtualmachinerestore-validator.snapshot.kubevirt.io\\" denied the request: VirtualMachineSnapshot \\"snapshot-vm-snapshot-upgrade-b-1635517292-0678403\\" has failed and is invalid to use","reason":"Invalid","details":{"causes":[{"reason":"FieldValueInvalid","message":"VirtualMachineSnapshot \\"snapshot-vm-snapshot-upgrade-b-1635517292-0678403\\" has failed and is invalid to use","field":"spec.virtualMachineSnapshotName"}]},"code":422}\n'

Version-Release number of selected component (if applicable):
CNV4.8.2 -> CNV4.9.0-262

How reproducible:
Always

Steps to Reproduce:
1. Create offline vm snapshot
2. Do CNV upgrade from CNV4.8.2 to CNV 4.9.0
3. Restore

Actual results:
Same as Description

Expected results:
Restore works well

Additional info:

Comment 1 Yan Du 2021-10-29 15:15:29 UTC
*** Bug 2018519 has been marked as a duplicate of this bug. ***

Comment 4 Adam Litke 2021-10-29 16:18:08 UTC
Requesting blocker+ .  This bug will result in the VolumeSnapshots associated with perfectly valid VM Snapshots getting deleted on upgrade.

Comment 6 Ying Cui 2021-10-31 09:30:29 UTC
I will change the bug status to VERIFIED after the bug is moved to ON_QA.

Comment 9 errata-xmlrpc 2021-11-02 16:01:44 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.0 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-2021:4104


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