Bug 1977260 - RHV VM with USB enabled hangs during migration with web console
Summary: RHV VM with USB enabled hangs during migration with web console
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: Controller
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 2.2.0
Assignee: Sam Lucidi
QA Contact: Ilanit Stein
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-29 10:42 UTC by Kobig
Modified: 2022-01-05 17:20 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 19:20:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:5066 0 None None None 2021-12-09 19:20:54 UTC

Description Kobig 2021-06-29 10:42:10 UTC
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.

Comment 3 Fabian Deutsch 2021-06-29 14:13:41 UTC
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)

Comment 4 Fabien Dupont 2021-07-01 11:46:16 UTC
I agree that we need to better understand the use case before setting the target release. Letting it unset.

Comment 5 Kok Hui Lew 2021-07-14 09:29:44 UTC
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.

Comment 6 Kobig 2021-07-14 18:32:14 UTC
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.

Comment 7 Kobig 2021-07-27 06:29:42 UTC
@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

Comment 8 Kobig 2021-07-28 06:30:42 UTC
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

Comment 9 Fabien Dupont 2021-08-04 12:54:09 UTC
How do you import a USB device ?

Comment 10 Kok Hui Lew 2021-08-05 01:26:15 UTC
I didn't import a USB device

Comment 11 Kobig 2021-08-05 04:40:16 UTC
@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?

Comment 12 Fabien Dupont 2021-08-12 07:31:27 UTC
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.

Comment 13 Sam Lucidi 2021-10-29 19:57:17 UTC
In MTV 2.2.0, USB being enabled on the source VM should not cause migration to hang.

Comment 14 Ilanit Stein 2021-11-03 10:19:03 UTC
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

Comment 17 errata-xmlrpc 2021-12-09 19:20:47 UTC
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


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