Bug 717058 - virt-v2v should fail which a much better error message. [NEEDINFO]
Summary: virt-v2v should fail which a much better error message.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: virt-v2v
Version: 5.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Matthew Booth
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-27 20:17 UTC by Allie DeVolder
Modified: 2018-11-14 13:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-07 10:15:35 UTC
Target Upstream Version:
tzheng: needinfo? (mbooth)


Attachments (Terms of Use)

Description Allie DeVolder 2011-06-27 20:17:19 UTC
Description of problem:
virt-v2v should fail which a much better error message.

Version-Release number of selected component (if applicable):
virt-v2v-0.7.1-4.el6.x86_64

How reproducible:

Very

Steps to Reproduce:
1. migrate a vm with bad kernel options:

<snip>
serial -unit=0 -speed=115200
terminal -timeout=5 serial console
</snip>

 
Actual results:

1. libvirt returns this:
Unable to convert this guest operating system. Its storage will be transferred and a domain created for it, but it may not operate correctly without manual reconfiguration.   The domain will present all storage devices as ide, all network interfaces as rtl8319, and the host as x86_64. 
virt-v2v:BAN_brman2 configured without virtio drivers.

2. Migrated guest will crash

Expected results:

Better, more descriptive error message.


Additional info:

This was opened at mdbooth's request.

Comment 1 yuping zhang 2011-06-28 09:53:40 UTC
I tested this issue on el5 and el6.
1.Add "serial -unit=0 -speed=115200 terminal -timeout=5 serial console " to guest grub.

2.Convert it with virt-v2v
#virt-v2v -ic qemu+ssh://10.66.5.10/system -os default -b breth0 kvm-rhel5.7-x86_64-qcow2
root.5.10's password: 
root.5.10's password: 
virt-v2v: Transferring storage volume rhel5u7-64b.qcow2: 5413437440 bytes
Got signal 15 from pid 22460
aug_get: aug_get: Augeas returned NULL match at /usr/lib/perl5/vendor_perl/5.8.8/Sys/VirtV2V/GuestfsHandle.pm line 191.
 at /usr/lib/perl5/vendor_perl/5.8.8/Sys/VirtV2V/Converter/RedHat.pm line 425

3.If add "serial --unit=0 --speed=115200 terminal --timeout=5 serial console",then convert the guest,it will be converted successfully

4.And also I have tested with "serial -unit=0 -speed=115200",then convert it:
# virt-v2v -ic qemu+ssh://10.66.5.10/system -os default -b breth0 kvm-rhel5.7-x86_64-qcow2
root.5.10's password: 
root.5.10's password: 
virt-v2v: Transferring storage volume rhel5u7-64b.qcow2: 5413896192 bytes
Got signal 15 from pid 22633
virt-v2v: The connected hypervisor does not support a machine type of rhel6.1.0. It will be set to the current default.
virt-v2v: kvm-rhel5.7-x86_64-qcow2 configured with virtio driver

5.Additionally,from Description,the version is virt-v2v-0.7.1-4.el6.x86_64,but the bug report version is 5.6.So installed virt-v2v-0.7.1-4.el6.x86_64 on rhel 5?

Comment 2 Matthew Booth 2011-06-28 10:32:07 UTC
This issue is fixed on the virt-v2v side in upstream commit 3b9191d9178a18a6639e9acbd2aa8a79511d54ee.

Comment 4 RHEL Program Management 2011-09-07 10:15:35 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.

Comment 5 tingting zheng 2013-02-21 09:37:21 UTC
Hi,matthew
   I tried this issue on rhel6 and rhel7,the problem still exists,I think it is trivial,need I clone the bug to rhel6/rhel7,thanks.
   steps:
   1.Add "serial -unit=0 -speed=115200 terminal -timeout=5 serial console " to guest grub.
   
   2.Use virt-v2v to convert the guest,the error is still not so clearly and friendly.
  # virt-v2v  -ic qemu+ssh://10.66.72.24/system -os default test-sparse-wl -on grubtest
test-sparse-wl.img: 100% [=============================================================================]D 0h02m55s
aug_get: aug_get: Augeas returned NULL match at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 201.
 at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 176.


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