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 831148

Summary: Use of uninitialized value $grub_conf in string eq at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 202
Product: Red Hat Enterprise Linux 6 Reporter: Jakub Hrozek <jhrozek>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED DEFERRED QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: cwei, jwu, mzhan, rbalakri, rjones, rmainz, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-18 11:12:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The domain XML definition none

Description Jakub Hrozek 2012-06-12 10:04:10 UTC
Created attachment 591158 [details]
The domain XML definition

Description of problem:
I was trying to migrate a Fedora 16 VM, but virt-v2v is giving me errors:

# virt-v2v -i libvirtxml -o rhev -os server:/export --network rhevm /etc/libvirt/qemu/sbose-ipa-dev.xml 
sbose-ipa-dev-disk0: 100% [===================================================================================================================================================]D 0h03m53s
Use of uninitialized value $grub_conf in string eq at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 202.
Use of uninitialized value $grub_conf in string eq at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 202.
Use of uninitialized value in subroutine entry at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 193.
Use of uninitialized value $grub_conf in concatenation (.) or string at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 535.
Use of uninitialized value $grub_conf in concatenation (.) or string at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 606.
virt-v2v: No capability in config matches os='linux' name='virtio' distro='fedora' major='16' minor='0'
Use of uninitialized value $grub_conf in concatenation (.) or string at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 456.
Use of uninitialized value $grub_conf in concatenation (.) or string at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 468.
Use of uninitialized value $grub_conf in concatenation (.) or string at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 1634.
Use of uninitialized value $grub_conf in concatenation (.) or string at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 1659.
Use of uninitialized value $grub_conf in concatenation (.) or string at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 1669.
virt-v2v: augeas error for /etc/logrotate.d/named: Iterated lens matched less than it should
error at line 1, char 0, file position 0
augeas lens: /usr/share/augeas/lenses/dist/logrotate.aug:111.13-.54:
augeas error for /etc/krb5.conf: Get did not match entire input
error at line 15, char 0, file position 278
augeas lens: /usr/share/augeas/lenses/dist/krb5.aug:124.10-126.62:


Version-Release number of selected component (if applicable):
virt-v2v-0.8.3-5.el6.x86_64
libguestfs-1.7.17-26.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. migrate that particular image
2.
3.
  
Actual results:
errors

Expected results:
successfull migration

Additional info:
I'll attach the domain XML definition.

Comment 1 Jakub Hrozek 2012-06-12 10:05:10 UTC
FWIW, it's only some domains that error out. Others work fine. I haven't been able to tell the difference.

Comment 3 yuping zhang 2012-06-14 06:42:37 UTC
AFAIK,virt-v2v does not support to convert Fedora.

Comment 4 RHEL Program Management 2012-12-14 08:19:06 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 5 Richard W.M. Jones 2014-11-18 11:12:31 UTC
Virt-v2v needs to run on the latest Red Hat Enterprise Linux release
to ensure it can correctly read and modify new guest filesystem
features.  A new version of virt-v2v is now available for RHEL 7.1.

Before RHEL 7.1 is released, follow the instructions here to
install unsupported preview packages on top of RHEL 7.0:
https://www.redhat.com/archives/libguestfs/2014-May/msg00090.html

After RHEL 7.1 is released, virt-v2v will be available in
Technical Preview.

You can run virt-v2v in a single virtual machine.  Other
requirements are covered here:
http://libguestfs.org/virt-v2v.1.html#resource-requirements

If you find a missing feature or bug in the new version of virt-v2v
please file a bug using the following link:
https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%207&component=libguestfs