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

There is no error in OCP console while migration failed in DataVolume

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Normal Normal
    • None
    • 2.6.2
    • Controller
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • True

      I have freeze migration plan without any errors in UI OCP console
       

      Despite the plan is failed on
      "Warning  ErrClaimNotValid  16m (x154 over 18h)  datavolume-import-controller  DataVolume.storage spec is missing accessMode and volumeMode, cannot get access mode from StorageProfile localblock-sc"

      MTV needs to retrieve the error from the DV rather than posting the DV and move the disk-allocation step to completed state

      More details:

      oc -n openshift-mtv describe dv mtv-test-plan-1-vm-8598-cbv4

      Name:         mtv-test-plan-1-vm-8598-cbv4g
      Namespace:    openshift-mtv
      Labels:       migration=6d537870-974a-4973-99b2-a137703c770f
                    plan=f20554a1-901a-418d-a27a-efdcc9ec6412
                    vmID=vm-8598
      Annotations:  cdi.kubevirt.io/storage.deleteAfterCompletion: false
                    cdi.kubevirt.io/storage.pod.retainAfterCompletion: true
                    forklift.konveyor.io/disk-source: [datastore1] mtv-test-rhel-9.3/mtv-test-rhel-9.3.vmdk
                    migration: 6d537870-974a-4973-99b2-a137703c770f
                    plan: f20554a1-901a-418d-a27a-efdcc9ec6412
                    vmID: vm-8598
      API Version:  cdi.kubevirt.io/v1beta1
      Kind:         DataVolume
      Metadata:
        Creation Timestamp:  2024-07-02T22:16:53Z
        Generate Name:       mtv-test-plan-1-vm-8598-
        Generation:          1
        Resource Version:    1232191
        UID:                 1231e699-7e77-46d8-ab43-537195456d1d
      Spec:
        Source:
          Blank:
        Storage:
          Resources:
            Requests:
              Storage:         80Gi
          Storage Class Name:  localblock-sc
      Status:
        Conditions:
          Last Heartbeat Time:   2024-07-02T22:16:53Z
          Last Transition Time:  2024-07-02T22:16:53Z
          Message:               no accessMode defined DV nor on StorageProfile for localblock-sc StorageClass
          Reason:                ErrClaimNotValid
          Status:                Unknown
          Type:                  Bound
          Last Heartbeat Time:   2024-07-03T17:08:09Z
          Last Transition Time:  2024-07-02T22:16:53Z
          Message:               no accessMode defined DV nor on StorageProfile for localblock-sc StorageClass
          Reason:                ErrClaimNotValid
          Status:                False
          Type:                  Ready
          Last Heartbeat Time:   2024-07-02T22:16:53Z
          Last Transition Time:  2024-07-02T22:16:53Z
          Status:                False
          Type:                  Running
      Events:
        Type     Reason            Age                  From                          Message
        ----     ------            ----                 ----                          -------
        Warning  ErrClaimNotValid  10m (x158 over 19h)  datavolume-import-controller  DataVolume.storage spec is missing accessMode and volumeMode, cannot get access mode from StorageProfile localblock-sc
      

       

       

       

       

      oc -n openshift-mtv describe plan mtv-test-rhel93-plan

       

      Name:         mtv-test-rhel93-plan
      Namespace:    openshift-mtv
      Labels:       <none>
      Annotations:  populatorLabels: True
      API Version:  forklift.konveyor.io/v1beta1
      Kind:         Plan
      Metadata:
        Creation Timestamp:  2024-07-03T13:55:52Z
        Generation:          1
        Resource Version:    1067822
        UID:                 52b6c009-a67c-4201-bd91-23706f26aac9
      Spec:
        Map:
          Network:
            API Version:  forklift.konveyor.io/v1beta1
            Kind:         NetworkMap
            Name:         eco-vcenter-server-n5c6x
            Namespace:    openshift-mtv
            UID:          7f3a777b-04ca-4024-9438-02434aa50dc3
          Storage:
            API Version:  forklift.konveyor.io/v1beta1
            Kind:         StorageMap
            Name:         eco-vcenter-server-cxwt8
            Namespace:    openshift-mtv
            UID:          ff74ca1d-0dad-42fc-a527-bd8509b5ac4e
        Provider:
          Destination:
            API Version:  forklift.konveyor.io/v1beta1
            Kind:         Provider
            Name:         host
            Namespace:    openshift-mtv
            UID:          08d78fee-1cbb-4496-a2df-b1120f2a562a
          Source:
            API Version:   forklift.konveyor.io/v1beta1
            Kind:          Provider
            Name:          eco-vcenter-server
            Namespace:     openshift-mtv
            UID:           7a02a5d5-528d-456a-ae0f-4a64e890d276
        Target Namespace:  openshift-mtv
        Vms:
          Id:    vm-8598
          Name:  mtv-test-rhel-9.3
      Status:
        Conditions:
          Category:              Required
          Last Transition Time:  2024-07-03T13:55:58Z
          Message:               The migration plan is ready.
          Status:                True
          Type:                  Ready
          Category:              Advisory
          Durable:               true
          Last Transition Time:  2024-07-03T13:58:21Z
          Message:               The plan is EXECUTING.
          Status:                True
          Type:                  Executing
        Migration:
          History:
            Conditions:
              Category:              Advisory
              Durable:               true
              Last Transition Time:  2024-07-03T13:58:21Z
              Message:               The plan is EXECUTING.
              Status:                True
              Type:                  Executing
            Map:
              Network:
                Generation:  1
                Name:        eco-vcenter-server-n5c6x
                Namespace:   openshift-mtv
                UID:         7f3a777b-04ca-4024-9438-02434aa50dc3
              Storage:
                Generation:  1
                Name:        eco-vcenter-server-cxwt8
                Namespace:   openshift-mtv
                UID:         ff74ca1d-0dad-42fc-a527-bd8509b5ac4e
            Migration:
              Generation:  1
              Name:        mtv-test-rhel93-plan-ltfpv
              Namespace:   openshift-mtv
              UID:         cd227a82-c303-4c03-ae5e-a2360b2210cd
            Plan:
              Generation:  1
              Name:        mtv-test-rhel93-plan
              Namespace:   openshift-mtv
              UID:         52b6c009-a67c-4201-bd91-23706f26aac9
            Provider:
              Destination:
                Generation:  1
                Name:        host
                Namespace:   openshift-mtv
                UID:         08d78fee-1cbb-4496-a2df-b1120f2a562a
              Source:
                Generation:  1
                Name:        eco-vcenter-server
                Namespace:   openshift-mtv
                UID:         7a02a5d5-528d-456a-ae0f-4a64e890d276
          Started:           2024-07-03T13:58:21Z
          Vms:
            Id:     vm-8598
            Name:   mtv-test-rhel-9.3
            Phase:  AllocateDisks
            Pipeline:
              Completed:    2024-07-03T13:58:40Z
              Description:  Initialize migration.
              Name:         Initialize
              Phase:        Completed
              Progress:
                Completed:  0
                Total:      1
              Started:      2024-07-03T13:58:21Z
              Annotations:
                Unit:       MB
              Description:  Allocate disks.
              Name:         DiskAllocation
              Phase:        Completed
              Progress:
                Completed:  0
                Total:      81920
              Started:      2024-07-03T13:58:43Z
              Tasks:
                Annotations:
                  Unit:  MB
                Name:    [datastore1] mtv-test-rhel-9.3/mtv-test-rhel-9.3.vmdk
                Progress:
                  Completed:  0
                  Total:      81920
              Description:    Convert image to kubevirt.
              Name:           ImageConversion
              Phase:          Pending
              Progress:
                Completed:  0
                Total:      1
              Annotations:
                Unit:       MB
              Description:  Copy disks.
              Name:         DiskTransferV2v
              Phase:        Pending
              Progress:
                Completed:  0
                Total:      81920
              Tasks:
                Annotations:
                  Unit:  MB
                Name:    [datastore1] mtv-test-rhel-9.3/mtv-test-rhel-9.3.vmdk
                Progress:
                  Completed:  0
                  Total:      81920
              Description:    Create VM.
              Name:           VirtualMachineCreation
              Phase:          Pending
              Progress:
                Completed:        0
                Total:            1
            Restore Power State:  On
            Started:              2024-07-03T13:58:21Z
        Observed Generation:      1
      Events:                     <none>
      

       

      How reproduce:

      1. Install

      OpenShift version 4.16.0

      OpenShift Virtualization 4.15.2

      Migration Toolkit for Virtualization Operator 2.6.2

      OpenShift Data Foundation 4.15.4-rhodf

      2. From some reason ODF is not configure correctly and doesn't contain

      required for Virtualization Storage classes
      ocs-storagecluster-ceph-rbd or 
      ocs-storagecluster-ceph-rbd-virtualization

      3. Create Provider for vSphere vClient

      4. Select available VM on vSphere and create Migration Plan

      5. Start migration.

      Actual result:

      Migration freeze without errors in UI OCP console

      Expected result:

      MTV needs to retrieve the error from the DV rather than posting the DV and move the disk-allocation step to completed state

       

       

       

       

              Unassigned Unassigned
              yurigaga Yuri Obshansky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: