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

MAC Address Conflict Not Properly Propagated in ImageConversion Step

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False

      When a MAC address conflict occurs between the source VM being migrated and an existing VM on the destination (CNV/OpenShift) cluster, the failure is not clearly surfaced at the Plan or Migration level. Instead, the error is buried deep in the Plan YAML under the VM status section, specifically within the ImageConversion step under status.migration.vms[].pipeline[].error.reasons.

      As a result, users do not see the conflict reflected in the overall failure reason of the plan, leading to difficulty in diagnosing the root cause without manually inspecting the full Plan YAML.

      main error from the plan : 

      Source VM has a mac address conflict with one or more destination VMs: [openshift-mtv/500gb-offload]
       

      Plan

       [root@f01-h07-000-r640 ~]# oc describe  plan/500gb-1vm -nopenshift-mtv
      Name:         500gb-1vm
      Namespace:    openshift-mtv
      Labels:       <none>
      Annotations:  populatorLabels: True
      API Version:  forklift.konveyor.io/v1beta1
      Kind:         Plan
      Metadata:
        Creation Timestamp:  2025-06-16T14:42:47Z
        Generation:          2
        Managed Fields:
          API Version:  forklift.konveyor.io/v1beta1
          Fields Type:  FieldsV1
          fieldsV1:
            f:spec:
              .:
              f:map:
                .:
                f:network:
                f:storage:
              f:migrateSharedDisks:
              f:provider:
                .:
                f:destination:
                f:source:
              f:pvcNameTemplateUseGenerateName:
              f:skipGuestConversion:
              f:targetNamespace:
              f:vms:
              f:warm:
          Manager:      Mozilla
          Operation:    Update
          Time:         2025-06-16T14:43:36Z
          API Version:  forklift.konveyor.io/v1beta1
          Fields Type:  FieldsV1
          fieldsV1:
            f:status:
              .:
              f:conditions:
              f:migration:
                .:
                f:completed:
                f:history:
                f:started:
                f:vms:
              f:observedGeneration:
          Manager:         forklift-controller
          Operation:       Update
          Subresource:     status
          Time:            2025-06-16T15:02:08Z
        Resource Version:  1186558779
        UID:               a92563f2-e27a-4f23-95de-ca60af79ff22
      Spec:
        Map:
          Network:
            API Version:  forklift.konveyor.io/v1beta1
            Kind:         NetworkMap
            Name:         vc7-1-offload-g9vkr
            Namespace:    openshift-mtv
            UID:          89f59072-abe9-466e-960d-a8e4f2609654
          Storage:
            API Version:       forklift.konveyor.io/v1beta1
            Kind:              StorageMap
            Name:              ontap-offload-iscsi-vc7-1
            Namespace:         openshift-mtv
            UID:               bb1766ea-eff1-497a-aab2-222108ab71f1
        Migrate Shared Disks:  true
        Provider:
          Destination:
            API Version:  forklift.konveyor.io/v1beta1
            Kind:         Provider
            Name:         host
            Namespace:    openshift-mtv
            UID:          271e948d-700d-48d3-8636-8c2b88dd421a
          Source:
            API Version:                      forklift.konveyor.io/v1beta1
            Kind:                             Provider
            Name:                             vc7-1-offload
            Namespace:                        openshift-mtv
            UID:                              66207c8c-7ee0-47f5-bb36-e9aa6c17882f
        Pvc Name Template Use Generate Name:  true
        Skip Guest Conversion:                false
        Target Namespace:                     500gb-1vm
        Vms:
          Id:  vm-28599
          Luks:
            Name:  500gb-1vm-t77zq
          Name:    500gb-offload
        Warm:      false
      Status:
        Conditions:
          Category:              Required
          Last Transition Time:  2025-06-16T14:42:47Z
          Message:               The migration plan is ready.
          Status:                True
          Type:                  Ready
          Category:              Advisory
          Durable:               true
          Last Transition Time:  2025-06-16T15:02:08Z
          Message:               The plan execution has FAILED.
          Status:                True
          Type:                  Failed
        Migration:
          Completed:  2025-06-16T15:02:08Z
          History:
            Conditions:
              Category:              Advisory
              Durable:               true
              Last Transition Time:  2025-06-16T15:02:08Z
              Message:               The plan execution has FAILED.
              Status:                True
              Type:                  Failed
            Map:
              Network:
                Generation:  1
                Name:        vc7-1-offload-g9vkr
                Namespace:   openshift-mtv
                UID:         89f59072-abe9-466e-960d-a8e4f2609654
              Storage:
                Generation:  1
                Name:        ontap-offload-iscsi-vc7-1
                Namespace:   openshift-mtv
                UID:         5b2ddb4f-42bc-447a-8fa6-ad656b2047aa
            Migration:
              Generation:  1
              Name:        500gb-1vm-cnt6h
              Namespace:   openshift-mtv
              UID:         c0e88939-5634-438f-8044-6e3f942f5577
            Plan:
              Generation:  2
              Name:        500gb-1vm
              Namespace:   openshift-mtv
              UID:         a92563f2-e27a-4f23-95de-ca60af79ff22
            Provider:
              Destination:
                Generation:  1
                Name:        host
                Namespace:   openshift-mtv
                UID:         271e948d-700d-48d3-8636-8c2b88dd421a
              Source:
                Generation:  1
                Name:        vc7-1-offload
                Namespace:   openshift-mtv
                UID:         66207c8c-7ee0-47f5-bb36-e9aa6c17882f
          Started:           2025-06-16T14:43:46Z
          Vms:
            Completed:  2025-06-16T15:02:08Z
            Conditions:
              Category:              Advisory
              Durable:               true
              Last Transition Time:  2025-06-16T15:02:05Z
              Message:               The VM migration has FAILED.
              Status:                True
              Type:                  Failed
            Error:
              Phase:  CreateGuestConversionPod
              Reasons:
                Source VM has a mac address conflict with one or more destination VMs: [openshift-mtv/500gb-offload]
            Id:  vm-28599
            Luks:
              Name:  500gb-1vm-t77zq
            Name:    500gb-offload
            Phase:   Completed
            Pipeline:
              Completed:    2025-06-16T14:43:59Z
              Description:  Initialize migration.
              Name:         Initialize
              Phase:        Completed
              Progress:
                Completed:  0
                Total:      1
              Started:      2025-06-16T14:43:46Z
              Annotations:
                Unit:       MB
              Completed:    2025-06-16T15:02:00Z
              Description:  Allocate disks.
              Name:         DiskAllocation
              Phase:        Completed
              Progress:
                Completed:  512000
                Total:      512000
              Started:      2025-06-16T14:44:02Z
              Tasks:
                Annotations:
                  Unit:     MB
                Completed:  2025-06-16T15:02:00Z
                Name:       [v2v_general_porpuse_ISCSI_DC] 500gb-offload/500gb-offload_3.vmdk
                Phase:      Completed
                Progress:
                  Completed:  512000
                  Total:      512000
                Reason:       Transfer completed.
                Started:      2025-06-16T15:02:00Z
              Description:    Convert image to kubevirt.
              Error:
                Phase:  Running
                Reasons:
                  Source VM has a mac address conflict with one or more destination VMs: [openshift-mtv/500gb-offload]
              Name:   ImageConversion
              Phase:  Running
              Progress:
                Completed:  0
                Total:      1
              Started:      2025-06-16T15:02:03Z
              Annotations:
                Unit:       MB
              Description:  Copy disks.
              Name:         DiskTransferV2v
              Phase:        Pending
              Progress:
                Completed:  0
                Total:      512000
              Tasks:
                Annotations:
                  Unit:  MB
                Name:    [v2v_general_porpuse_ISCSI_DC] 500gb-offload/500gb-offload_3.vmdk
                Progress:
                  Completed:  0
                  Total:      512000
              Description:    Create VM.
              Name:           VirtualMachineCreation
              Phase:          Pending
              Progress:
                Completed:        0
                Total:            1
            Restore Power State:  Off
            Started:              2025-06-16T14:43:46Z
        Observed Generation:      2
      Events:                     <none>

      Build :  quay.io/redhat-user-workloads/rh-mtv-1-tenant/forklift-fbc-prod-v418:on-pr-76657e65fa4e6ff445965976200aed1ad7adbb7d

              gcheresh@redhat.com Genadi Chereshnya
              tzahia Tzahi Ashkenazi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: