Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2059153

Summary: [RFE][UI] Getting a notification about that the default volume and access mode are not configured in non-provisioning StorageProfile CR
Product: Migration Toolkit for Virtualization Reporter: Maayan Hadasi <mguetta>
Component: User ExperienceAssignee: Jeff Ortel <jortel>
Status: CLOSED NOTABUG QA Contact: Maayan Hadasi <mguetta>
Severity: high Docs Contact: Steve Goodman <sgoodman>
Priority: unspecified    
Version: 2.3.0CC: istein
Target Milestone: ---Keywords: RFE
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-28 10:54:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Maayan Hadasi 2022-02-28 10:32:31 UTC
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"}


Version-Release number of selected component (if applicable):
MTV 2.3.0-.32 / iib:178080
CNV 4.10.0-686 / iib:178572


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

Comment 1 Maayan Hadasi 2022-02-28 10:54:02 UTC
Closing the issue as NOTABUG

MTV Jira task was opened to address this RFE: https://issues.redhat.com/browse/MTV-274