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

A status condition indicating a falied mapping resource of a plan should be added to the plan

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • 2.7.0
    • None
    • Controller
    • None
    • False
    • None
    • True

      How to reproduce?
      1. using API create a storage or network mapping that should produce error (network is    mapped by name and it is not uniq for the provider (in this case, vmware).
      2. Verify the network or backup resource are in falied state
      3. using API create a plan with the above mapping

      Actual Results
      The plan remains with no status,  and UI indicates UNKNOWN plan status .
      Forklift controller reports the error

      {"level":"info","ts":"2024-09-12 13:00:49.384","logger":"plan|5kdmg","msg":"Reconcile started.","plan":{"name":"mtv-api-tests-24-12-09-15-56-44-e44-plan","namespace":"openshift-mtv"}}
      {"level":"error","ts":"2024-09-12 13:00:49.403","logger":"plan|5kdmg","msg":"Reconcile failed.","plan":{"name":"mtv-api-tests-24-12-09-15-56-44-e44-plan","namespace":"openshift-mtv"},"error":"Reference ref.Ref{ID:\"\", Name:\"VM Network\", Namespace:\"\", Type:\"\"} matched multiple resources.","stacktrace":"github.com/konveyor/forklift-controller/pkg/controller/base.(*Reconciler).Ended\n\t/remote-source/app/pkg/controller/base/controller.go:57\ngithub.com/konveyor/forklift-controller/pkg/controller/plan.Reconciler.Reconcile.func1\n\t/remote-source/app/pkg/controller/plan/controller.go:171\ngithub.com/konveyor/forklift-controller/pkg/controller/plan.Reconciler.Reconcile\n\t/remote-source/app/pkg/controller/plan/controller.go:213\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/remote-source/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/remote-so...
      {"level":"info","ts":"2024-09-12 13:00:49.403","

      Expected Result
      A status condition indicating the failed mapping should be added

            mnecas@redhat.com Martin Necas
            amastbau Amos Mastbaum
            Chenli Hu Chenli Hu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: