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

forklift-controller crashing during OVA plan migration

XMLWordPrintable

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

      forklift-controller crashing during OVA plan migration in MTV 2.7, the same works for 2.6

      {"level":"info","ts":"2024-10-07 22:01:30.656","logger":"migration|t5j64","msg":"Reconcile ended.","migration":{"name":"kkkk-xggg7","namespace":"vmlab"},"reQ":0}
      {"level":"info","ts":"2024-10-07 22:01:30.659","logger":"plan|9vc78","msg":"Found (active) migration.","plan":{"name":"kkkk","namespace":"vmlab"},"migration":"vmlab/kkkk-xggg7"}
      {"level":"info","ts":"2024-10-07 22:01:30.659","logger":"plan|9vc78","msg":"Migration [RUN]","plan":{"name":"kkkk","namespace":"vmlab"},"migration":"vmlab/kkkk-xggg7","vm":" id:06457d8bd37aad0a5d8c9033d29d69c31f0f name:'pa-jsrv-02' ","phase":"CopyDisksVirtV2V"}
      {"level":"info","ts":"2024-10-07 22:01:30.673","logger":"networkMap|l99fr","msg":"Reconcile ended.","map":{"name":"ceph-nfs-6828q","namespace":"vmlab"},"reQ":0}
      {"level":"info","ts":"2024-10-07 22:01:30.683","logger":"plan|9vc78","msg":"Reconcile ended.","plan":{"name":"kkkk","namespace":"vmlab"},"reQ":0}
      {"level":"info","ts":"2024-10-07 22:01:30.683","msg":"Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference","controller":"plan","object":{"name":"kkkk","namespace":"vmlab"},"namespace":"vmlab","name":"kkkk","reconcileID":"d8d2a356-51ea-4077-8c7a-38b7741ab44b"}
      panic: runtime error: invalid memory address or nil pointer dereference [recovered]
          panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x128 pc=0x1a1b22e]

       

      and

      goroutine 370 [running]:
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
      	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:116 +0x1e5
      panic({0x2c44fe0?, 0x4fb4b40?})
      	/usr/lib/golang/src/runtime/panic.go:914 +0x21f
      github.com/konveyor/forklift-controller/pkg/controller/plan/util.GetFirmwareFromYaml({0xc000ade800, 0x1d4, 0x200})
      	/remote-source/app/pkg/controller/plan/util/kubevirtvmparser.go:69 +0xce
      github.com/konveyor/forklift-controller/pkg/controller/plan.(*KubeVirt).UpdateVmByConvertedConfig(0xc0002b19e8, 0xc000bd88c0, 0xc001b5a000, 0xc001932cf0)
      	/remote-source/app/pkg/controller/plan/kubevirt.go:987 +0x265
      github.com/konveyor/forklift-controller/pkg/controller/plan.(*Migration).execute(0xc0002b19d0, 0xc000bd88c0)
      	/remote-source/app/pkg/controller/plan/migration.go:1150 +0x12365
      github.com/konveyor/forklift-controller/pkg/controller/plan.(*Migration).Run(0xc0002b19d0)
      	/remote-source/app/pkg/controller/plan/migration.go:196 +0x285
      github.com/konveyor/forklift-controller/pkg/controller/plan.(*Reconciler).execute(0xc001939410, 0xc00196a000)
      	/remote-source/app/pkg/controller/plan/controller.go:428 +0x98b
      github.com/konveyor/forklift-controller/pkg/controller/plan.Reconciler.Reconcile({{{0x36a5038, 0xc0008a9f80}, {0x36c1040, 0xc0001187e0}, {0x36b7b38, 0xc000803220}}}, {0x36d04a0?, 0xc000bb7ce8?}, {{{0xc000b1dc74, 0x5}, ...}})
      	/remote-source/app/pkg/controller/plan/controller.go:257 +0x9de
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x36b5e08?, {0x36b26f8?, 0xc0019393e0?}, {{{0xc000b1dc74?, 0xb?}, {0xc000b1dc70?, 0x0?}}})
      	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:119 +0xb7
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0009445a0, {0x36b2730, 0xc000703a40}, {0x2e6bd60?, 0xc00098c020?})
      	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:316 +0x3cc
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0009445a0, {0x36b2730, 0xc000703a40})
      	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266 +0x1c9
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
      	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227 +0x79
      created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 in goroutine 86
      	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:223 +0x565 

       

              jjongsma@redhat.com Jonathon Jongsma
              rhn-support-jspanko Jaroslav Spanko
              Chenli Hu Chenli Hu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: