Bug 2059153 - [RFE][UI] Getting a notification about that the default volume and access mode are not configured in non-provisioning StorageProfile CR
Summary: [RFE][UI] Getting a notification about that the default volume and access mod...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: User Experience
Version: 2.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Jeff Ortel
QA Contact: Maayan Hadasi
Steve Goodman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-28 10:32 UTC by Maayan Hadasi
Modified: 2022-02-28 10:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-28 10:54:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.