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

"Did not find CDI importer pod for DataVolume" is logged in forklift controller logs during CopyDisks phase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.7.4
    • 2.7.2
    • Controller
    • None
    • False
    • None
    • True

      Description of problem:

      During ""CopyDisks" phase of warm migration, the forklift controller is continuously logging following message:

      level":"info","ts":"2024-10-31 11:48:49.124","logger":"plan","msg":"Did not find CDI importer pod for DataVolume.","vm":" id:vm-43263 name:'nijin-cloud-init' ","dv":"openshift-mtv/nijin-cloud-init-vm-43263-h6wxs"}

       

      The message is wrong and the import pod was created and is downloading the disk:

      # oc get pod |grep importer
      importer-prime-03de31bc-e6fb-4ada-bab5-063267c78f3c-checkpoint-snapshot-69124   1/1     Running     0          5m2s
      # oc get dv
      NAME                              PHASE              PROGRESS   RESTARTS   AGE
      nijin-cloud-init-vm-43263-h6wxs   ImportInProgress   24.00%                5m5s
       
      

      It is looking for pod name on the original disk PVC instead of prime PVC which is why it is unable to find the import pod as per https://github.com/kubev2v/forklift/blob/e4c08befc9f3f28ae1ed2f8630e5743fad6414c7/pkg/controller/plan/migration.go#L1571

      # oc get pvc prime-03de31bc-e6fb-4ada-bab5-063267c78f3c -o yaml |yq '.metadata.annotations["cdi.kubevirt.io/storage.import.importPodName"]'
       importer-prime-03de31bc-e6fb-4ada-bab5-063267c78f3c-checkpoint-snapshot-69124
      
      
      # oc get pvc nijin-cloud-init-vm-43263-h6wxs -o yaml |yq '.metadata.annotations["cdi.kubevirt.io/storage.import.importPodName"]' 
      null 

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

      Migration Toolkit for Virtualization Operator   2.7.2

      How reproducible:

      100%

      Steps to Reproduce:

      Start a warm migration and while it is downloading the disk, look at the forklift-controller logs.

      Actual results:

      The message is invalid and can cause confusion during troubleshooting.

       

              mnecas@redhat.com Martin Necas
              rhn-support-nashok Nijin Ashok
              Chenli Hu Chenli Hu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: