Description of problem: Migration hangs when trying to import VM from RHV using web UI import wizard Version-Release number of selected component (if applicable): 2.6.5 How reproducible: Import VM's from RHV with USB enabled Actual results: VM hangs on 10% Expected results: VM migration will work successfully Additional info: The wizard should run a check or run some assessment before trying to migrate, run a test pod or something similar to verify the migration, and in case issue is found show the error message on the UI and not in the must-gather logs.
We need to understand why USB is set on the VM. It can be legit to still import it to CNV with this USB device present, mainyl ebcause it will still wotk on the CNV side, some features might be just impacted (i.e. spice passthrough is not available)
I agree that we need to better understand the use case before setting the target release. Letting it unset.
Noticed that the RHV has default USB policy enabled when VM creation. From my observation, OV import wizard detects the USB device and abort the import. However, there is no USB device is attached on the VM. To make the import works, I have disabled the USB policy in RHV prior to import the VM. Second thing from my observation is a need to click restart button to proceed during importing VM. It happened in 10% imported.
If this is the case then we should add something to the import process that will know if a USB is attached and import it and in case nothing is attached, it will just ignore it and continue the migration. OR if thats a problem then i think we should add a checkbox or something into the migration process that says "Import USB", and in case this checkbox is marked then a usb device will be imported and in case it doesn't then it will ignore the USB even if something is attached to it. This will make the migration process very easy and straightforward to user who probably will go with the default.
@Kok Hui Lew Can you please have the same test with MTV? I mean, if this happens in MTV has well we should open a BZ for this has well
I think we should do this for us regardless of the POC . We are planning to add this tool to the next versions of OCP and if this issue exists then we can get stuck again, but if we check this now we can (maybe) prevent this in future versions and implementations
How do you import a USB device ?
I didn't import a USB device
@Fabien Dupont not sure someone imported a USB, not sure why someone will want to do it. @Kok Hui Lew do you have an option to do/test it?
VMIO will is already deprecated in CNV 4.8 and the UI will be disable in CNV 4.9, in favor of MTV 2.2.0. Let's move this to MTV and target it to 2.2.0, so we make sure we handle this use case correctly in our next release.
In MTV 2.2.0, USB being enabled on the source VM should not cause migration to hang.
Checked those migration from RHV test cases using MTV-2.2.0-63: 1) Migrate a VM with display type SPICE/SPICE+VNC (set in Edit VM): 2) Console: USB enabled (set in Edit VM) 3) Host device mapped of type: USB, PCI, ISCSI 4) A "High performance" VM For all those test cases migration passed along with indicating validation concerns, that were displayed in the UI. Based on the above, moving bug to verified
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (MTV 2.2.0 Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2021:5066