Description of problem: In MTV-2.1, there are cases where a VM migration status in the migration UI is endlessly running with no progress in the disk copy. The cases are detailed in: Bug 1990581 - [DOC] Migration plan not progressing without indicating the cause in UI. For those cases, migration plan should fail, along with indicating the cause (not complying with some OCPv validation rule or any other reason) Version-Release number of selected component (if applicable): MTV-2.1
This bug is fairly vague, but I think the majority of cases have probably been fixed due to 2.2.0's improved status reporting.
Please verify with mtv-operator-bundle-2.0.0-57 / iib:126435, or later.
The cases in Bug 1990581 were checked on MTV-2.2.0-84 - Details below. 1. No suitable target storage as required. Case: Migration from VMware of a 100GB disk, to NFS, when there is no PV in such a size on the cluster Result: Migration UI show migration plan is in "Transfer disk" phase, with status "Pending" - No clear reason to what it is pending. 2. Missing vddk-init-image configuration on the OCP cluster. Case: No vddk-init-image configured. Result: Migration UI show migration plan is stuck in "Initialize" phase, with no indication on that it is waiting for vddk. Bug 2015813 - Reflect "no VDDK init image" state in Migration UI by changing MTV API should address this. 3. VM has no disk. A a migration plan for a VM with no disk cannot be created in the UI, since the storage mapping step cannot be skipped. Therefore, this case is not valid when running migration from UI. 4. One of the validation rules fails the VM import, but the error is not propagated to the migration plan. Examples: a. VM is set to be Migratable (affinity policy) - For this we will also need to document RHV procedure to how change VM to be non migratable (pinned to host), or redirect to the RHV Doc. A VM is migrated from RHV regardless to the affinity policy. In case it is set as "Migratable" there is a validation warning. The migration pass and do not hang. b. VM has USB. The issue is usually displayed in the migration plan create page, by the validation service, as a critical warning, but if the user will miss/ignore it, the migration plan will be at the state described above. Also the cause is usually indicated besides the failing VM import object, in the Openshift workloads->Virtualization page. A RHV VM that has a USB Mapped host device or Console: USB enabled pass migration and do not hang. there is a validation warning on that. ================== Cases 1 & 2 still hang the plan with no clear displayed reason. They need to be fixed. Cases 3 & 4[a,b] are no longer hanging the plan. Moving this bug to verified since some of the cases are solved, and for the ones that are not there are separate bugs.
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