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

Bug 1345864

Summary: Can't import the guest from export domain to data domain at rhevm4.0 after converted by virt-v2v
Product: Red Hat Enterprise Virtualization Manager Reporter: mxie <mxie>
Component: ovirt-engineAssignee: Shahar Havivi <shavivi>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 4.0.0CC: gklein, juzhou, lsurette, michal.skrivanek, mxie, mzhan, ptoscano, rbalakri, Rhev-m-bugs, rjones, shavivi, srevivo, tzheng, xiaodwan, ykaul
Target Milestone: ovirt-4.1.0-alpha   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-15 02:56:28 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
screenshot
none
virt-v2v-rhevm4.0.log
none
engine.log
none
vdsm.log.gz
none
backing file none

Description mxie@redhat.com 2016-06-13 10:44:52 UTC
Created attachment 1167421 [details]
screenshot

Description of problem:
Can't import the guest from export domain to data domain at rhevm4.0 after converted by virt-v2v 


Version-Release number of selected component (if applicable):
RHEVM:4.0.0.4-0.1.el7ev

Virt-v2v conversion server has below packages:
virt-v2v-1.32.5-3.el7.x86_64
libguestfs-1.32.5-3.el7.x86_64
qemu-kvm-1.5.3-113.el7.x86_64
libvirt-1.3.5-1.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Prepare rhevm4.0 environment
2.Convert a guest to rhevm by virt-v2v, details pls refer to virt-v2v-rhevm4.0.log
virt-v2v -ic vpx://root.145.47/data/10.73.3.19/?no_verify=1  esx5.5-rhel6.7-i386 -of raw --password-file /tmp/passwd -o rhev -os 10.66.4.143:/home/p2v_export -v -x |& tee > virt-v2v-rhevm4.0.log

3.After conversion, try to import the guest from export domain to data domain
3.1 Login rhevm4.0 by FQDN: https://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/
3.2 At storage->VM import-> lift click the guest-> click import-> at import dialog, click ok-> import failed with error:General command validation failure.pls refer to screenshot


Actual results:
As above description

Expected results:
Could import the guest which converted by virt-v2v from export domain to data domain at rhevm4.0 successfully 
 

Additional info:
1.Try to convert guest to another rhevm4.0 by virt-v2v, still can't import the guest from export domain to data domain 
2.Try to import the guest at rhevm GUI, login rhevm4.0->Virtual Machines->Import->Select 'VMware'as source-> input vmware info-> select rhevh(rhev-hypervisor7-ng-4.0-20160608.0.x86_64) as host to convert the guest->load vms -> select a guest->click import-> the guest could be imported successfully

Comment 1 mxie@redhat.com 2016-06-13 10:45:32 UTC
Created attachment 1167422 [details]
virt-v2v-rhevm4.0.log

Comment 3 Richard W.M. Jones 2016-06-13 11:17:48 UTC
Created attachment 1167436 [details]
engine.log

Comment 4 Richard W.M. Jones 2016-06-13 12:00:08 UTC
Created attachment 1167468 [details]
vdsm.log.gz

Comment 5 Richard W.M. Jones 2016-06-13 12:46:16 UTC
The failure on the engine side is the mysterious "ValidateFailure".
This is raised all over the place, and I'm no closer to understanding
why that happens.

2016-06-13 06:12:27,658 ERROR [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (default task-83) [59aa15a4] Error during ValidateFailure.: org.ovirt.engine.core.common.errors.EngineException: EngineException: java.lang.NullPointerException (Failed with error ENGINE and code 5001)
        at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:
114) [bll.jar:]

There is no failure that I can find on the VDSM side.

Anyway it seems to be a RHEV-M problem of some kind.

To RHEV-M people, please improve the error messages in the UI.
"General command validation failure" is about as useless as it gets.

Update: I tried to reassign this bug to RHEV-M but I get
" A value must be set for the 'oVirt Team' field. " from Bugzilla.
There is no such field.

Comment 6 tingting zheng 2016-06-27 03:16:41 UTC
For rhev developers:

Will this bug be fixed on RHEV 4.0? As it blocks virt-v2v testing on rhel,though there is workaround by importing guests from RHEV gui for customers.

Comment 7 Yaniv Kaul 2016-06-27 05:18:05 UTC
(In reply to tingting zheng from comment #6)
> For rhev developers:
> 
> Will this bug be fixed on RHEV 4.0? As it blocks virt-v2v testing on
> rhel,though there is workaround by importing guests from RHEV gui for
> customers.

Perhaps it will, perhaps not. The supported method (AFAIK) to convert from VMware to RHEV is via the UI.

Comment 8 Richard W.M. Jones 2016-06-27 09:50:20 UTC
Yaniv, can you see from the log files (comment 3, comment 4) what
the real error is?  If I knew what RHEV-M was complaining about,
I might be able to fix it from the v2v side.

Comment 9 Yaniv Kaul 2016-06-28 05:52:12 UTC
(In reply to Richard W.M. Jones from comment #8)
> Yaniv, can you see from the log files (comment 3, comment 4) what
> the real error is?  If I knew what RHEV-M was complaining about,
> I might be able to fix it from the v2v side.

A null pointer is something we need to solve, regardless of the underlying issue.
I've assigned to virt to look for where the real issue might be.

Comment 10 Shahar Havivi 2016-07-20 10:13:38 UTC
Does this VM have a template (backing file) that is not present?
Can you share the output folder in a zip that I can test it?

Comment 11 mxie@redhat.com 2016-07-25 10:05:51 UTC
Created attachment 1183657 [details]
backing file

Comment 12 mxie@redhat.com 2016-07-25 10:11:07 UTC
Hi Shahar,

I have uploaded the backing file, pls check, if there is anything missing, feel free to needinfo me,thanks

Comment 13 zhoujunqin 2016-08-04 09:52:02 UTC
Hi  Shahar Havivi,
while i verify bug 1342398 after update our rhevm4.0 to latest one:
http://bob.eng.lab.tlv.redhat.com/builds/4.0/ovirt-4.0.2/el7/

After conversion finished, then login rhevm and can import vm from export domain successfully.

so please double check whether this bug is fixed already or not, thanks.

Comment 14 Shahar Havivi 2016-08-04 10:18:18 UTC
(In reply to zhoujunqin from comment #13)
> Hi  Shahar Havivi,
> while i verify bug 1342398 after update our rhevm4.0 to latest one:
> http://bob.eng.lab.tlv.redhat.com/builds/4.0/ovirt-4.0.2/el7/
> 
> After conversion finished, then login rhevm and can import vm from export
> domain successfully.
> 
> so please double check whether this bug is fixed already or not, thanks.

Well I didn't push any code,
if its works for you please close this bug,
We have a similar bug: 1358828 which I will check soon

Comment 15 zhoujunqin 2016-08-15 02:56:28 UTC
(In reply to Shahar Havivi from comment #14)
> (In reply to zhoujunqin from comment #13)
> > Hi  Shahar Havivi,
> > while i verify bug 1342398 after update our rhevm4.0 to latest one:
> > http://bob.eng.lab.tlv.redhat.com/builds/4.0/ovirt-4.0.2/el7/
> > 
> > After conversion finished, then login rhevm and can import vm from export
> > domain successfully.
> > 
> > so please double check whether this bug is fixed already or not, thanks.
> 
> Well I didn't push any code,
> if its works for you please close this bug,
> We have a similar bug: 1358828 which I will check soon

OK, closed this bug as CURRENTRELEASE, if you have some question, feel free to reopen it, thanks.