Bug 2139738 - [4.12]Can't restore cloned VM
Summary: [4.12]Can't restore cloned VM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.12.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.12.0
Assignee: Álvaro Romero
QA Contact: dalia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-03 10:19 UTC by dalia
Modified: 2023-01-24 13:41 UTC (History)
2 users (show)

Fixed In Version: v4.12.0-238
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-24 13:41:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 8697 0 None open [release-0.58] Fix bug in restore-controller when creating a restore PVC with both dataSource and dataSourceRef 2022-11-03 12:16:02 UTC
Red Hat Issue Tracker CNV-22218 0 None None None 2022-11-03 12:24:12 UTC
Red Hat Product Errata RHSA-2023:0408 0 None None None 2023-01-24 13:41:58 UTC

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


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