Bug 2018519

Summary: [Storage] Failed to restore VirtualMachineSnapshot after CNV upgrade
Product: Container Native Virtualization (CNV) Reporter: Yan Du <yadu>
Component: StorageAssignee: Adam Litke <alitke>
Status: CLOSED DUPLICATE QA Contact: Ying Cui <ycui>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.9.0CC: cnv-qe-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-29 15:15:29 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:

Description Yan Du 2021-10-29 15:05:52 UTC
Description of problem:
Failed to restore VirtualMachineSnapshot after upgrade

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.4 -> CNV4.9.0-249

How reproducible:
Always

Steps to Reproduce:
1. Create vm snapshot
2. Do upgrade to 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:09:43 UTC
correct above description: the cluster upgrade CNV-v4.8.4 to CNV-v4.9.0-262

Comment 2 Yan Du 2021-10-29 15:15:29 UTC

*** This bug has been marked as a duplicate of bug 2018521 ***