Bug 1167601 - "Conversion was successful" pop out even virt-p2v fails
Summary: "Conversion was successful" pop out even virt-p2v fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: John Eckersberg
QA Contact: Virtualization Bugs
URL:
Whiteboard: P2V
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-25 06:57 UTC by tingting zheng
Modified: 2018-09-07 19:22 UTC (History)
7 users (show)

Fixed In Version: libguestfs-1.28.1-1.18.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-07 19:22:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot of virt-p2v (69.07 KB, image/png)
2014-11-25 06:57 UTC, tingting zheng
no flags Details

Description tingting zheng 2014-11-25 06:57:44 UTC
Created attachment 961025 [details]
screenshot of virt-p2v

Description
"Conversion was successful" pop out even virt-p2v fails

Version:
virt-v2v-1.28.1-1.13.el7.x86_64
livecd-p2v-201411201732.iso

How reproducible:
100%

Steps to Reproduce:
1.Launch virt-p2v boot GUI via iso or virt-p2v image.

2.Use virt-p2v to convert a host without operating system installed.

3.The conversion fails and connection closed,then "Conversion was successful" pop out.

Actual results:
As step 3 describes.

Expected results:
In step 3,some info like "Conversion failed" shows.

Additional info:
Screenshot attached.

Comment 2 Richard W.M. Jones 2014-11-25 16:35:47 UTC
Background:

The code that pops up the dialog is libguestfs.git/p2v/gui.c:
start_conversion_thread.

Presumably p2v/conversion.c:start_conversion is returning a
success code even when virt-v2v fails.

You can test this by running the ISO like this:

  truncate -s 10G empty
  qemu-kvm -hda empty -cdrom livecd-p2v-XXX.iso -boot d

and then starting a conversion.  It will fail because virt-v2v
cannot convert a disk without an operating system.

Comment 3 Richard W.M. Jones 2014-12-11 14:37:54 UTC
John's patch has been accepted upstream:
https://www.redhat.com/archives/libguestfs/2014-December/msg00116.html

Comment 6 tingting zheng 2014-12-18 03:30:14 UTC
Tested with:
libguestfs-1.28.1-1.18.el7.x86_64
virt-v2v-1.28.1-1.18.el7.x86_64
livecd-p2v-201412160442.iso

If conversion fails,an box will pop out with the below error:
Conversion failed:virt-v2v exited with status 1.

Comment 13 tingting zheng 2015-05-28 10:11:13 UTC
Tested with:
libguestfs-1.28.1-1.36.el7.x86_64
virt-v2v-1.28.1-1.36.el7.x86_64
livecd-p2v-201505191242.iso	

If conversion fails,an box will pop out with the below error:
Conversion failed:virt-v2v exited with status 1.

Refer to the above comments,move the bug to VERIFIED.


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