Bug 2139738

Summary: [4.12]Can't restore cloned VM
Product: Container Native Virtualization (CNV) Reporter: dalia <dafrank>
Component: StorageAssignee: Álvaro Romero <alromero>
Status: CLOSED ERRATA QA Contact: dalia <dafrank>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12.0CC: alromero, yadu
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.12.0-238 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-24 13:41:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dalia 2022-11-03 10:19:56 UTC
This bug was initially created as a copy of Bug #2128872

I am copying this bug because: 



Description of problem:
Fail to restore a cloned VM.

Version-Release number of selected component (if applicable):
4.12

How reproducible:
100%

Steps to Reproduce:
1. Create a VM

2. Clone from it PVC to a  new VM

3. Snapshot the cloned VM

4. Restore the VM


Actual results:
VM restored 

Expected results:
restore failed

Additional info:

restore status:

reason: 'PersistentVolumeClaim "restore-3327a680-b539-4604-8358-69f3a0b25d69-dv-disk"
      is invalid: spec: Invalid value: field.Path{name:"dataSource", index:"", parent:(*field.Path)(0xc0955e66c0)}:
      must match dataSourceRef'
    status: "False"

-----------------------------

PVC spec:

  dataSource:
    apiGroup: snapshot.storage.k8s.io
    kind: VolumeSnapshot
    name: cloned-dv
  dataSourceRef:
    apiGroup: snapshot.storage.k8s.io
    kind: VolumeSnapshot
    name: cloned-dv

Comment 1 dalia 2022-11-24 10:58:43 UTC
verified on cnv 4.12

Comment 5 errata-xmlrpc 2023-01-24 13:41:51 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 (Important: OpenShift Virtualization 4.12.0 Images security 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-2023:0408