Bug 1400412 - Guest should be load correctly from xen server on rhv4.0 not "some vms are running in the external system and therefore have been filtered"
Summary: Guest should be load correctly from xen server on rhv4.0 not "some vms are r...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: ---
Hardware: x86_64
OS: Unspecified
high
high
Target Milestone: ovirt-4.0.7
: ---
Assignee: Tomáš Golembiovský
QA Contact: Nisim Simsolo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-01 07:01 UTC by kuwei@redhat.com
Modified: 2017-02-27 11:46 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: vdsm mistakenly filtered out VMs that contained any type of drives backed up by block device, not just disks. Consequence: VMs containing e.g. CD-ROM drive backed up by block device caused the VM to be filtered out. Fix: Only VMs that contain disk drives on block device are filtered out. Result: VMs with other drive types using block devices can be imported.
Clone Of:
Environment:
Last Closed: 2017-02-27 11:46:17 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)
vdsm.log (378.38 KB, text/plain)
2016-12-01 07:01 UTC, kuwei@redhat.com
no flags Details
engine.log (17.75 KB, text/plain)
2016-12-01 07:03 UTC, kuwei@redhat.com
no flags Details
v2v.log (896.06 KB, text/plain)
2016-12-02 07:40 UTC, kuwei@redhat.com
no flags Details
v2v-vdsm.log (896.56 KB, text/plain)
2016-12-02 10:28 UTC, kuwei@redhat.com
no flags Details
GUI_image (160.17 KB, image/png)
2016-12-14 06:01 UTC, kuwei@redhat.com
no flags Details
new_vdsm.log (6.81 MB, text/plain)
2016-12-14 06:05 UTC, kuwei@redhat.com
no flags Details
newvdsm (379.79 KB, text/plain)
2016-12-15 01:13 UTC, kuwei@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 68571 0 master MERGED v2v: exclude only disks on block device on Xen 2016-12-21 14:38:50 UTC
oVirt gerrit 69419 0 ovirt-4.0 MERGED v2v: exclude only disks on block device on Xen 2017-01-10 13:32:40 UTC

Description kuwei@redhat.com 2016-12-01 07:01:23 UTC
Created attachment 1226644 [details]
vdsm.log

Description of problem:
Guest will disappear soon after starting import from xen server on rhv4.0

Version-Release number of selected component (if applicable):
The packages on registed host:
qemu-kvm-rhev-2.6.0-29.el7.x86_64
virt-v2v-1.32.7-3.el7.x86_64
vdsm-4.18.9-1.el7ev.x86_64

RHV4.0:4.0.5-0.1.el7ev

How reproducible:
100%

Steps to Reproduce:
1.Environment setup:
In order to import VMs password-less SSH access has to be enabled between VDSM host and the Xen host. The following steps needed to be done at the VDSM host:

1.1 Generate ssh key for vdsm user
# sudo -u vdsm ssh-keygen

1.2 Copy vdsms public key to the Xen host
# sudo -u vdsm ssh-copy-id root@*xen IP*

1.3 Login to the remote host (in order to test the connection and add the Xen host to the known_hosts file
# sudo -u vdsm ssh root@* xen IP*
Result: Can login without password

1.4 Exit the remote Xen host logout

2. Then login rhv 4.0 and try to import virtual machine from Xen.
Virtual Machines-->Import-->Fill items on 'Import Virtual Machine(s)' window with:
Data Center:xx
Source: Xen(via RHEL)
URI: xen+ssh://root@* xen IP*
Proxy Host: *host *

3.After load, then select guest name list in "Virtual Machines on Source" to import, then click "Next" , then click "OK" in next page, then guest import start.

4.Guest will disappear soon after starting import from xen server on rhv4.0

Actual results:
Step4 failed to convert xen server's guests with error:
Fail to import Vm guest to Data Center Default,Cluster Default


Expected results:
Convert xen server's guests on rhv4.0 successfully

Additional info:
Could convert guest  from xen server by v2v on the host which is registed on rhv4.0
1:ssh to registed host.
2:Define a password for user:
# echo password |saslpasswd2 -p -a libvirt username
3:Using v2v to convert guest from xen server to  rhv4.0:
# virt-v2v -ic xen+ssh://IP  $guest  -o rhev -os IP:/home/nfs_export

Comment 1 kuwei@redhat.com 2016-12-01 07:03:51 UTC
Created attachment 1226645 [details]
engine.log

Comment 2 Michal Skrivanek 2016-12-02 06:27:57 UTC
Please also add host logs, vdsm.log and v2v

Comment 3 Michal Skrivanek 2016-12-02 06:29:46 UTC
just the v2v log:)

Comment 4 kuwei@redhat.com 2016-12-02 07:40:08 UTC
Created attachment 1227186 [details]
v2v.log

Comment 5 Michal Skrivanek 2016-12-02 09:00:38 UTC
so..the log seems to show a successful conversion. Did you attach log from the failure?

When you say it works on cmdline, does it work when running exactly this?:

/usr/bin/taskset --cpu-list 0-3 /usr/bin/nice -n 19 /usr/bin/ionice -c 3 /usr/bin/virt-v2v -ic xen+ssh://root.144.38 -o vdsm -of raw -oa sparse --vdsm-image-uuid cf49654e-c756-474a-9f6f-866d0c382529 --vdsm-vol-uuid 20750a55-6e0a-416f-aba3-9e5c01a2d060 --vdsm-vm-uuid 8ebaa2fb-ff42-5dc1-b4c3-aca343f4a302 --vdsm-ovf-output /var/run/vdsm/v2v --machine-readable -os /rhev/data-center/ab6c235b-95ba-4eb5-b363-4c951413d716/b7258e76-a133-42ef-9e8c-583cdd8cec42 test1

Comment 6 kuwei@redhat.com 2016-12-02 10:28:42 UTC
Created attachment 1227256 [details]
v2v-vdsm.log

Comment 7 Tomáš Golembiovský 2016-12-02 14:13:56 UTC
This is a duplicate of already fixed bug. Please update your vdsm, this should be fixed in vdsm-4.18.12-1.el7ev.x86_64

*** This bug has been marked as a duplicate of bug 1367839 ***

Comment 8 kuwei@redhat.com 2016-12-14 05:59:02 UTC
Hi,I think it is still has some problem.
when i update vdsm to the latest patch,it has another error.

Version-Release:
vdsm-4.18.18-1.el7ev.x86_64
qemu-kvm-rhev-2.6.0-29.el7.x86_64
virt-v2v-1.32.7-3.el7.x86_64

RHV4.0:4.0.6-3 

Steps to Reproduce:
1:As above。

Actual results:
1:As the attach picture.
It will give us the " some vms are running in the external system and therefore have been filtered"

Comment 9 kuwei@redhat.com 2016-12-14 06:01:10 UTC
Created attachment 1231442 [details]
GUI_image

Comment 10 kuwei@redhat.com 2016-12-14 06:05:22 UTC
Created attachment 1231443 [details]
new_vdsm.log

Comment 11 Tomas Jelinek 2016-12-14 11:28:40 UTC
Only VMs which are down can be converted, others are filtered out. e.g. this is not an error message, it is just a warning which tells you why you don't see some (any) VMs in the list. Are the VMs on the source system down?

Comment 12 kuwei@redhat.com 2016-12-14 11:43:59 UTC
Yes,you are right.All the vms had been down.
As you see,we can't see any one vms.

Comment 13 Tomáš Golembiovský 2016-12-14 15:08:55 UTC
In logs I see problem with permissions while connecting to the Xen host. Can you recheck that the password-less ssh access still works after the upgraded of VDSM host?

Comment 14 kuwei@redhat.com 2016-12-15 01:09:01 UTC
Yes,I am sure password still works,and I am sorry the log maybe contain a long time,i will attach a new log.

Comment 15 kuwei@redhat.com 2016-12-15 01:13:42 UTC
Created attachment 1231938 [details]
newvdsm

Comment 16 Tomas Jelinek 2016-12-15 09:55:43 UTC
From logs it looks a lot like you have only one VM on the XEN server and that one is UP. If this is indeed the case it is an expected behavior.

Could you please make double sure that you have a down VM on the XEN from the time you are providing the logs?

Comment 17 kuwei@redhat.com 2016-12-15 10:18:01 UTC
Yes , I am sure all the guest had dowm,when i run the command :virsh list
[root@dell-op780-04 ~]# virsh list --all
 Id Name                 State
----------------------------------
  0 Domain-0             running
  - rhel6.7              shut off
  - xen-hvm-rhel6.7-mxie shut off
So,in the Xen server has two guest ,and had been shut off.

Comment 18 Sandro Bonazzola 2017-01-25 07:55:35 UTC
4.0.6 has been the last oVirt 4.0 release, please re-target this bug.

Comment 19 Nisim Simsolo 2017-01-26 14:12:56 UTC
Verification builds: 
rhevm-4.0.7-0.1.el7ev
qemu-kvm-rhev-2.6.0-28.el7_3.3.x86_64
vdsm-4.18.22-1.el7ev.x86_64
libvirt-client-2.0.0-10.el7_3.4.x86_64
sanlock-3.4.0-1.el7.x86_64
virt-v2v-1.32.7-3.el7_3.2.x86_64

Verification scenario (Polarion test case) added to external trackers.


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