Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-40266

CDI get stuck when DV source is blank and destination is lvms (block), breaking MTV imports from vmware

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • CNV v4.14.5
    • CNV v4.14.0
    • CNV Storage
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • No
    • ---
    • ---
    • Storage Core Sprint 252
    • High

      Description of problem:

      User is unable to import VM from VMware, DataVolume created by MTV is stuck in pending state for the blank block disk 

        kind: DataVolume
        metadata:
          annotations:
            cdi.kubevirt.io/storage.bind.immediate.requested: "true"
            cdi.kubevirt.io/storage.deleteAfterCompletion: "false"
            cdi.kubevirt.io/storage.pod.retainAfterCompletion: "true"
            cdi.kubevirt.io/storage.usePopulator: "true"
            forklift.konveyor.io/disk-source: '[DATASTORE-2] RHCOS1/RHCOS1.vmdk'
            migration: 11750a6f-e9ad-47f3-8c5e-1a1c7f56e65a
            plan: 9a438696-422e-45d3-a538-adddace1252d
            vmID: vm-4186
          creationTimestamp: "2024-03-27T10:40:14Z"
          generateName: vmtoos-vm-4186-
          generation: 1
          labels:
            migration: 11750a6f-e9ad-47f3-8c5e-1a1c7f56e65a
            plan: 9a438696-422e-45d3-a538-adddace1252d
            vmID: vm-4186
            manager: forklift-controller
            operation: Update
            time: "2024-03-27T10:40:14Z"
          name: vmtoos-vm-4186-bxvx7
          namespace: openshift-storage
          resourceVersion: "18110520"
          uid: 0f39a53e-1dfb-4875-9056-36b872dd4532
        spec:
          source:
            blank: {}
          storage:
            resources:
              requests:
                storage: 16Gi
            storageClassName: lvms-vg1
        status:
          claimName: vmtoos-vm-4186-bxvx7
          conditions:
          - lastHeartbeatTime: "2024-03-27T10:40:14Z"
            lastTransitionTime: "2024-03-27T10:40:14Z"
            message: PVC vmtoos-vm-4186-bxvx7 Pending
            reason: Pending
            status: "False"
            type: Bound
          - lastHeartbeatTime: "2024-03-27T10:40:14Z"
            lastTransitionTime: "2024-03-27T10:40:14Z"
            status: "False"
            type: Ready
          - lastHeartbeatTime: "2024-03-27T10:40:14Z"
            lastTransitionTime: "2024-03-27T10:40:14Z"
            status: "False"
            type: Running
          progress: N/A

      CDI never spawns the pod to bind the LVMs PVs, keeps logging this

       

      attempting to create blank disk for block mode, this is a no-op, marking pvc with pod-phase succeeded

       

      Apparently this was improved in https://github.com/kubevirt/containerized-data-importer/pull/2917/commits/84500d0797e647d213682566d514ef1681fb08e1, and the customer updated to 4.15, solving the issue.

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

      4.14

      How reproducible:

      Always

      Steps to Reproduce:

      1. Use MTV to import VM from vmware to block storage (lvms)
      

      Actual results:

      Import is stuck

      Expected results:

      Import succeeds

            akalenyu Alex Kalenyuk
            rhn-support-gveitmic Germano Veit Michel
            Kevin Alon Goldblatt Kevin Alon Goldblatt
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: