Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1770889

Summary: virt-v2v from VMware or Xen to RHEL 8.1 host: although import succeeds VM remains in "locked" status.
Product: [oVirt] vdsm Reporter: Nisim Simsolo <nsimsolo>
Component: CoreAssignee: Steven Rosenberg <srosenbe>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.40.0CC: bugs, michal.skrivanek, msobczyk, nsimsolo, rbarry, rdlugyhe, srosenbe
Target Milestone: ovirt-4.4.0Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhv-4.4.0-29 Doc Type: Bug Fix
Doc Text:
Previously, VDSM did not send the Host.getStats message: It did not convert the description field of the Host.getStats message to utf-8, which caused the JSON layer to fail. The current release fixes this issue. It converts the description field to utf-8 so that VDSM can send the Host.getStats message.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 20:04:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
WebAdmin and import log screenshot
none
engine.log
none
import.log
none
vdsm.log none

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.