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

[RFE] Getting a notification about that the default volume and access mode are not configured in non-provisioning StorageProfile CR

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • User Experience
    • None
    • False
    • False

      Description of problem:
      Using MTV 2.3, in order to use a non-provisioning StorageClass as a target network, such as NFS - the user should edit its StorageProfile CR before the migration starts, otherwise the migration looks stuck on the initialize step without any notification in the MTV UI

      cdi-deployment pod's log shows this error:

      {"level":"error","ts":1646042763.7311773,"logger":"controller.datavolume-controller","msg":"Reconciler error","name":"warm-test-1disk-nfs-52f64cd9-c0bc-4f5a-b026-939fc76acc30-885mq","namespace":"mtv-api-tests","error":"no accessMode defined DV nor on StorageProfile for nfs StorageClass","errorVerbose":"no accessMode defined DV nor on StorageProfile for nfs StorageClass\nkubevirt.io/containerized-data-importer/pkg/controller.getDefaultVolumeAndAccessMode\n\t/remote-source/app/pkg/controller/util.go:1020\nkubevirt.io/containerized-data-importer/pkg/controller.pvcFromStorage\n\t/remote-source/app/pkg/controller/util.go:947\nkubevirt.io/containerized-data-importer/pkg/controller.RenderPvcSpec\n\t/remote-source/app/pkg/controller/util.go:911\nkubevirt.io/containerized-data-importer/pkg/controller.(*DatavolumeReconciler).Reconcile\n\t/remote-source/app/pkg/controller/datavolume-controller.go:405\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:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227\nruntime.goexit\n\t/usr/lib/golang/src/runtime/asm_amd64.s:1581","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227"}

       

      Expected results:
      To have a failed plan with an informative message that the default volume and access mode are not configured in the StorageProfile CR

       

      Additional info:
      https://bugzilla.redhat.com/show_bug.cgi?id=2037652#c4

            Unassigned Unassigned
            mguetta1 Maayan Hadasi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: