Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:
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 ***