Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-3451

When doing a cross cluster live migration with a hotplugged disk, the ownerRef is not copied properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 2.10.0
    • 2.10.0
    • Controller
    • None

      Description of problem:

      I did a migration with a VM with 2 disks. The OS disk, and an additional hotplugged disk. After the migration was done, I checked the datavolumes created on the target cluster, and the hotplugged disk didn't have an ownerRef set.

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

      2.10

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a VM and add a persistent hotplugged disk to the VM.
      2. Cross cluster live migrate the VM

      Actual results:

      The hotplugged disk on the target cluster does not have an owner reference

      Expected results:

      The hotplugged disk on the target cluster should have an owner reference to the newly created target VM.

      Additional info:
      Source hotplugged DV

      apiVersion: cdi.kubevirt.io/v1beta1
      kind: DataVolume
      metadata: 
        annotations: 
          cdi.kubevirt.io/storage.usePopulator: "true"
        creationTimestamp: "2025-09-12T12:51:22Z"
        generation: 1
        name: dv-win11-tan-chicken-59-disk-cyan-clam-87-a3mw3z
        namespace: awels
        ownerReferences: 
        - apiVersion: kubevirt.io/v1
          blockOwnerDeletion: false
          kind: VirtualMachine
          name: win11-tan-chicken-59
          uid: d87a4a5b-0381-4bf1-9903-dd33fe660035
        resourceVersion: "33174324"
        uid: ed18e938-723f-455a-8bd8-9ffd8d1bccd2
      spec: 
        source: 
          blank: {}
        storage: 
          accessModes: 
          - ReadWriteMany
          resources: 
            requests: 
              storage: 1Gi
          storageClassName: ocs-storagecluster-ceph-rbd
          volumeMode: Block

      Target hotplugged DV

      apiVersion: cdi.kubevirt.io/v1beta1
      kind: DataVolume
      metadata:   annotations:     cdi.kubevirt.io/storage.bind.immediate.requested: "true"
          cdi.kubevirt.io/storage.deleteAfterCompletion: "false"
          cdi.kubevirt.io/storage.usePopulator: "true"
          forklift.konveyor.io/disk-source: awels/dv-win11-tan-chicken-59-disk-cyan-clam-87-a3mw3z
          forklift.konveyor.io/volume: disk-cyan-clam-87
          migration: e89d0dae-f4bc-47f2-8134-d80e64a882f2
          plan: 0e0f8ca7-aeb8-42cd-a91c-395b2728f2f2
          vmID: d87a4a5b-0381-4bf1-9903-dd33fe660035
        creationTimestamp: "2025-09-12T18:41:05Z"
        generation: 1
        labels: 
          migration: e89d0dae-f4bc-47f2-8134-d80e64a882f2
          plan: 0e0f8ca7-aeb8-42cd-a91c-395b2728f2f2
          vmID: d87a4a5b-0381-4bf1-9903-dd33fe660035
        name: dv-win11-tan-chicken-59-disk-cyan-clam-87-a3mw3z
        namespace: awels
        resourceVersion: "32690047"
        uid: 1df50f1c-6df0-4c03-bae2-49978c6120cb
      spec: 
        source: 
          blank: {}
        storage: 
          resources: 
            requests: 
              storage: 1Gi
          storageClassName: ocs-storagecluster-ceph-rbd 

       

              slucidi@redhat.com Samuel Lucidi
              rhn-support-awels Alexander Wels
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: