Bug 1898070 - [RFE][v2v][CNV VM import] Backend: Providing error message or/and block migration when vddk-init-image is missing
Summary: [RFE][v2v][CNV VM import] Backend: Providing error message or/and block migra...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: V2V
Version: 2.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.8.0
Assignee: Sam Lucidi
QA Contact: Maayan Hadasi
URL:
Whiteboard:
Depends On:
Blocks: 1897891
TreeView+ depends on / blocked
 
Reported: 2020-11-16 10:21 UTC by Maayan Hadasi
Modified: 2021-06-02 15:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-02 15:37:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Maayan Hadasi 2020-11-16 10:21:21 UTC
This bug was initially created as a copy of Bug #1897891

I am copying this bug because: the CLI user should be informed with an error about that the import fails due to missing vddk-init image 



Description of problem:
There is no information regarding vddk-init image not found in ‘v2v-vmware’ configmap

An error can be found in cdi-deployment pod log:
"level":"error","ts":1605106366.84607,"logger":"controller","msg":"Reconciler error","controller":"import-controller","name":"v2v-rhel8-foreman-os-harddisk1","namespace":"default","error":"Found v2v-vmware ConfigMap in namespace openshift-cnv, but it does not contain a 'vddk-init-image' entry."


Version-Release number of selected component (if applicable):
OCP 4.6.3
CNV 2.5.0


How reproducible:
100%


Expected results:
An import error message to let the user know that the migration is blocked due the missing of vddk-init image

Comment 1 Fabien Dupont 2020-11-18 15:07:19 UTC
Sam, can you bubble up the error in the VirtualMachineImport CR?

Comment 2 Sam Lucidi 2020-11-18 16:14:49 UTC
Unfortunately not without changes to CDI first. The reconcile error indicating that the vddk init image is missing only appears in the CDI controller log. CDI treats this as a transient reconcile error, because as soon as the the vddk-init-image key is added to the configmap the importer pod can be created. It's not propagated up to the DataVolume status or anywhere else. From the perspective of the DataVolume (and VMIO), it's just waiting a long time for the importer pod to be created.

Comment 3 Fabien Dupont 2020-12-03 09:52:34 UTC
Documentation says it should be configured. Moving to '2.7.0'.

Comment 4 Fabien Dupont 2021-06-02 15:37:17 UTC
We'll handle that in MTV when VMIO logic is absorbed. Closing.


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