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

Deleting storagemap or networkmap for existing Plan causes forklift-controller to crash

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • True
    • Hide
      Unexpected shutdown of `forklift-controller` due to network or storage map deletion::

      Deleting network or storage maps causes the `forklift-controller` to shut down unexpectedly, leaving the migration plan state as `Ready` and causing pods to continue running.
      +
      *Workaround:* Delete and restart the pods manually.
      +
      link:https://issues.redhat.com/browse/MTV-4413[MTV-4413]
      Show
      Unexpected shutdown of `forklift-controller` due to network or storage map deletion:: Deleting network or storage maps causes the `forklift-controller` to shut down unexpectedly, leaving the migration plan state as `Ready` and causing pods to continue running. + *Workaround:* Delete and restart the pods manually. + link: https://issues.redhat.com/browse/MTV-4413 [ MTV-4413 ]
    • Known Issue
    • Done

      Description of problem:

      The issue is when creating a Plan that has a "Ready" state and deleting storagemap or networkmap that is connected to the plan the pods in openshift-mtv kept running but from the logs of the forklift-controller i got this:
      {"level":"error","ts":"2026-01-26 12:48:38.840","logger":"plan|pwfls","msg":"Reconcile failed.","plan":{"name":"plan-rhel9","namespace":"mtv-test"},"error":"Storage map not found. caused by: 'Not enough data to build plan context.'","stacktrace":"github.com/kubev2v/forklift/pkg/controller/base.(*Reconciler).Ended\n\t/app/pkg/controller/base/controller.go:64\ngithub.com/kubev2v/forklift/pkg/controller/plan.Reconciler.Reconcile.func1\n\t/app/pkg/controller/plan/controller.go:177\ngithub.com/kubev2v/forklift/pkg/controller/plan.Reconciler.Reconcile\n\t/app/pkg/controller/plan/controller.go:234\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\t/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\t/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:334\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\t/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:294\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\t/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:255"}
      

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

      ├── OCP version: 4.20.11
      ├── MTV version: 2.11.0 (redhat-osbs-on-pr-abbcccd1818ef5758d252b4f13b743fec3390cc1)
      └── CNV version: 4.20.5

      How reproducible:

      Always
      

      Steps to Reproduce:

      1. oc new-project mtv-test 
      2. oc mtv create provider host --type openshift
      3. oc mtv create provider vmware-7 --type vsphere --url https://x.x.x.x/sdk --username 'user' --password 'password' --vddk-init-image vddk --cacert "$(echo | openssl s_client -showcerts -connect x.x.x.x:443 2>/dev/null | openssl x509)"
      4. oc mtv create plan plan-rhel9 -S vmware-7 --vms "ameen-RHEL9"
      5. oc delete networkmap plan-rhel9-network-map

      Actual results:

      forklift-controller crash

      Expected results:

      state of the Plan become "NotReady"

      Additional info:

       

        1. forklift-controller.logs
          106 kB
          Ameen Barakat
        2. plan.yaml
          2 kB
          Ameen Barakat

              yzamir@redhat.com Yaacov Zamir
              rh-ee-abarakat Ameen Barakat
              Ameen Barakat Ameen Barakat
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: