Bug 1365051 - Importing VMs from KVM fails when using qemu+tcp libvirt uri
Summary: Importing VMs from KVM fails when using qemu+tcp libvirt uri
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: 4.18.0
Hardware: All
OS: Linux
high
medium
Target Milestone: ovirt-4.0.5
: 4.18.15
Assignee: Francesco Romani
QA Contact: Nisim Simsolo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-08 12:04 UTC by nijin ashok
Modified: 2017-01-18 07:36 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-18 07:36:51 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
michal.skrivanek: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 62052 0 master MERGED kvm2ovirt: Fixes issue in importing VMs with libvirt uri qemu+tcp 2016-08-18 14:38:22 UTC
oVirt gerrit 62257 0 master ABANDONED kvm2ovirt: add dry run option 2016-11-30 12:32:25 UTC
oVirt gerrit 63678 0 ovirt-4.0 MERGED kvm2ovirt: Fixes issue in importing VMs with libvirt uri qemu+tcp 2016-09-13 06:57:03 UTC
oVirt gerrit 63679 0 ovirt-4.0 NEW kvm2ovirt: use None if no password is given 2016-09-12 11:24:59 UTC

Description nijin ashok 2016-08-08 12:04:36 UTC
Description of problem:

Importing VMs from KVM to RHEV fails when libvirt uri is using qemu+tcp . This is failing with below error.

Thread-124::DEBUG::2016-08-08 03:14:04,426::commands::68::root::(execCmd) /usr/bin/taskset --cpu-list 0-7 /usr/bin/nice -n 19 /usr/bin/ionice -c 3 /usr/libexec/vdsm/kvm2ovirt --uri qemu+tcp://10.65.209.113/system --username nijin --password-file /var/run/vdsm/v2v/03751e96-bc69-410b-b8c5-7df5ca166d6c.tmp --source /images/rhel6.5-template.qcow2 --dest /rhev/data-center/00000001-0001-0001-0001-000000000249/949b8b98-dfe6-428d-8d91-45c11ad32323/images/539fa706-f38e-4713-a4c5-1d8df7cd20aa/732bc9ca-429a-4205-a3cd-1dc7d5ee8626 (cwd None)

Thread-124::ERROR::2016-08-08 03:14:14,763::v2v::672::root::(_run) Job u'03751e96-bc69-410b-b8c5-7df5ca166d6c' failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 667, in _run
    self._import()
  File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 694, in _import
    self._proc.stderr.read(1024)))
V2VProcessError: Job u'03751e96-bc69-410b-b8c5-7df5ca166d6c' process failed exit-code: 1, stderr: Traceback (most recent call last):
  File "/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 91, in req
    cred[4] = passwd.value if passwd else None

Listing of VMs from KVM works fine. Also importing using qemu+ssh also works good.

Version-Release number of selected component (if applicable):

vdsm-4.18.6-1.el7ev.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Import the VM with libvirt uri qemu+tcp://ip/system

2. Importing fails with error.


Actual results:

Importing Vms from KVM with qemu+tcp is not working.

Expected results:

Importing should work.

Additional info:

Comment 1 nijin ashok 2016-08-08 12:24:45 UTC
Proposed a fix upstream https://gerrit.ovirt.org/#/c/62052/

Comment 2 Red Hat Bugzilla Rules Engine 2016-08-09 05:28:03 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 3 Tomas Jelinek 2016-09-01 07:16:37 UTC
this is merged only to master, moving back to post

Comment 4 Francesco Romani 2016-09-13 06:57:26 UTC
patch landed in 4.0 branch -> MODIFIED

Comment 5 Nisim Simsolo 2016-10-13 08:06:17 UTC
Verified:
ovirt-engine-4.0.5-0.1.el7ev
qemu-kvm-rhev-2.6.0-27.el7.x86_64
sanlock-3.4.0-1.el7.x86_64
vdsm-4.18.15-1.el7ev.x86_64
libvirt-client-2.0.0-10.el7.x86_64


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