Bug 1770889 - virt-v2v from VMware or Xen to RHEL 8.1 host: although import succeeds VM remains in "locked" status.
Summary: virt-v2v from VMware or Xen to RHEL 8.1 host: although import succeeds VM rem...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: Core
Version: 4.40.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.4.0
: ---
Assignee: Steven Rosenberg
QA Contact: Nisim Simsolo
URL:
Whiteboard:
: 1770828 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-11 12:47 UTC by Nisim Simsolo
Modified: 2020-06-23 15:49 UTC (History)
7 users (show)

Fixed In Version: rhv-4.4.0-29
Clone Of:
Environment:
Last Closed: 2020-05-20 20:04:18 UTC
oVirt Team: Virt
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)
WebAdmin and import log screenshot (264.89 KB, image/png)
2019-11-11 12:48 UTC, Nisim Simsolo
no flags Details
engine.log (1.24 MB, text/plain)
2019-11-11 12:49 UTC, Nisim Simsolo
no flags Details
import.log (512.79 KB, text/plain)
2019-11-11 12:49 UTC, Nisim Simsolo
no flags Details
vdsm.log (8.04 MB, text/plain)
2019-11-11 12:50 UTC, Nisim Simsolo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 104705 0 'None' MERGED v2v: GetStats response message fails in Json 2020-06-26 20:43:29 UTC

Description Nisim Simsolo 2019-11-11 12:47:27 UTC
Description of problem:
Importing VM from VMware to RHEL 8.1 RHV host succeeds (according to v2v import.log), but VM remains locked and no action can be done on that VM.
After restarting ovirt-engine service, the VM removed from WebAdmin.

Importing same VMware VM to rhvm-4.3.7.1-0.1.el7 is working with no issues.

Version-Release number of selected component (if applicable):
ovirt-engine-4.4.0-0.4.master.el7
RHEL 8.1 (kernel-4.18.0-147.el8.x86_64)
vdsm-4.40.0-141.gitb9d2120.el8ev.x86_64
libvirt-5.0.0-12.module+el8.0.1+3755+6782b0ed.x86_64
qemu-kvm-3.1.0-30.module+el8.0.1+3755+6782b0ed.x86_64
virt-v2v-1.40.2-6.module

How reproducible:
100%

Steps to Reproduce:
1. Import VM from VMware to RHV with RHEL8.1 host.
2.
3.

Actual results:
Import succeeds (according to import.log) but the VM remain locked in WebAdmin.

Expected results:
It should be possible to import VMs from VMware to RHV.

Additional info:
vdsm.log (import started at 2019-11-11 14:03:01), engine.log and screenshot attached.

Comment 1 Nisim Simsolo 2019-11-11 12:48:35 UTC
Created attachment 1634861 [details]
WebAdmin and import log screenshot

Comment 2 Nisim Simsolo 2019-11-11 12:49:11 UTC
Created attachment 1634864 [details]
engine.log

Comment 3 Nisim Simsolo 2019-11-11 12:49:30 UTC
Created attachment 1634866 [details]
import.log

Comment 4 Nisim Simsolo 2019-11-11 12:50:13 UTC
Created attachment 1634868 [details]
vdsm.log

Comment 5 Ryan Barry 2019-11-12 01:41:35 UTC
*** Bug 1770828 has been marked as a duplicate of this bug. ***

Comment 6 Ryan Barry 2019-11-12 01:42:21 UTC
Please retest once imageio is available

Comment 7 Marcin Sobczyk 2019-11-14 11:36:00 UTC
There's a problem on vdsm side, part of engine.log:

 2019-11-11 03:12:04,183-05 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStatsAsyncVDSCommand] (EE-ManagedThreadFactory-engineScheduled-Thread-89) [] Failed in 'Get Host Statistics' method

After v2v job starts, 'Host.getStats' call tries to include information about the status of the migration jobs. The problem is that the descriptions contain a bytes field, which can't be encoded to JSON. Here's an example part of response that's problematic:

 'v2vJobs': {'a17e9078-edae-4825-b0a1-77bcba4b2154': {'status': 'copying_disk', 'description': b'Copying disk 1/1', 'progress': 39}}

The 'description' is not encoded to string.

Comment 8 Sandro Bonazzola 2020-03-20 09:50:16 UTC
This bug is in POST but all referenced patches have been merged.
Also this bug had previously 4.4.1 target but now is untargeted.
Can we move this to modified/on_qa for 4.4.0?

Comment 9 Michal Skrivanek 2020-03-24 11:15:29 UTC
anything to do? if not please change the TM and Bug status

Comment 11 Nisim Simsolo 2020-04-19 11:58:46 UTC
Verified: 
ovirt-engine-4.4.0-0.29.master.el8ev
vdsm-4.40.9-1.el8ev.x86_64
qemu-kvm-4.2.0-17.module+el8.2.0+6131+4e715f3b.x86_64
libvirt-daemon-6.0.0-16.module+el8.2.0+6131+4e715f3b.x86_64
virt-v2v-1.40.2-22.module+el8.2.0+6029+618ef2ec.x86_64

Comment 12 Sandro Bonazzola 2020-05-20 20:04:18 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.

Comment 14 Steven Rosenberg 2020-06-23 08:05:35 UTC
(In reply to Michal Skrivanek from comment #9)
> anything to do? if not please change the TM and Bug status

Issue is closed, nothing else to do. Clearing all needinfo requests.


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