Bug 718088

Summary: virt-v2v still fails with Can't locate object method "can_handle" via package
Product: Red Hat Enterprise Linux 6 Reporter: Mark Gooderum <mgooderum>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: rwu, whuang, yupzhang
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: virt-v2v-0.7.1-4.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-01 16:27:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 678950    
Bug Blocks:    
Attachments:
Description Flags
virt-v2v-0.7.1-4.el6.x86_64.rpm none

Description Mark Gooderum 2011-06-30 22:50:50 UTC
Description of problem:

Conversion of a Red Hat Enterprise Linux Desktop virtual machine failed with the following error:
Can't locate object method "can_handle" via package
"Sys::VirtV2V::Converter::RedHat" at
/usr/share/perl5/vendor_perl/Sys/VirtV2V/Converter.pm line 121.

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

RHEL 6.1 - virt-v2v 0.7.1

How reproducible:

run a command like:

virt-v2v -o rhev -os d2.websense.com:/data/scratch/network-install/export-rhev -of raw -oa sparse -ic 'esx://10.203.120.215/?no_verify=1' CentOS_5_Mark_Natasha

Steps to Reproduce:
1. run virt-v2v -o rhev -os d2.websense.com:/data/scratch/network-install/export-rhev -of raw -oa sparse -ic 'esx://10.203.120.215/?no_verify=1' CentOS_5_Mark_Natasha
2.
3.
  
Actual results:

Can't locate object method "can_handle" via package
"Sys::VirtV2V::Converter::RedHat" at
/usr/share/perl5/vendor_perl/Sys/VirtV2V/Converter.pm line 121.

Expected results:

It works.

Additional info:

The 6.1 Technical notes state:

BZ#67895082
Conversion of a Red Hat Enterprise Linux Desktop virtual machine failed with the following error:
Can't locate object method "can_handle" via package
"Sys::VirtV2V::Converter::RedHat" at
/usr/share/perl5/vendor_perl/Sys/VirtV2V/Converter.pm line 121.
This issue has been resolved and conversion should now complete successfully

Clearity it is not fixed.  Unfortunately bug 6789502 is hidden so I can't help or use any details from that to help troubleshoot.

Comment 2 Huang Wenlong 2011-07-01 05:05:30 UTC
Hi, Mark Gooderum

I test rhel4.9 desktop and rhel6.1 client guest with :
virt-v2v-0.7.1-4.el6.x86_64
libguestfs-1.7.17-17.el6.x86_64
augeas-libs-0.7.2-6.el6.x86_64

they all can be converted successfully  .

Could you provide the /etc/issue  file  with  command in your guest 
# cat /etc/issue 
I guess the cause of this issue is your guest is CentOS , not redhat product .

Wenlong

Comment 4 Matthew Booth 2011-07-01 09:58:31 UTC
(In reply to comment #2)
> Hi, Mark Gooderum
> 
> I test rhel4.9 desktop and rhel6.1 client guest with :
> virt-v2v-0.7.1-4.el6.x86_64
> libguestfs-1.7.17-17.el6.x86_64
> augeas-libs-0.7.2-6.el6.x86_64

Unfortunately we haven't released virt-v2v-0.7.1-4.el6.x86_64, which fixes this bug. I'm looking into it.

Comment 5 Matthew Booth 2011-07-01 10:06:30 UTC
Created attachment 510835 [details]
virt-v2v-0.7.1-4.el6.x86_64.rpm

I've attached the unreleased rpm Wenlong mentioned.

Comment 8 Matthew Booth 2011-07-01 16:27:27 UTC
This issue recurred due to an error creating the previous erratum. This has now been fixed and a new erratum pushed. virt-v2v-0.7.1-4.el6 is now available on RHN.

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