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 671083

Summary: Conversion hand when converting with 2>&1 at the end of command line
Product: Red Hat Enterprise Linux 6 Reporter: Rita Wu <rwu>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: cwei, llim, mshao, rjones, whuang, yupzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-v2v-0.7.1-1.el6 Doc Type: Bug Fix
Doc Text:
virt-v2v conversion would hang if its output was redirected at the command line. This bug was reported and corrected during development. It was not seen in production systems in the field.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:54:01 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:

Description Rita Wu 2011-01-20 09:11:18 UTC
Description of problem:
The conversion will hang for ever when converting a VM with redirected stdout 2>&1 at the end of command line, due to 'Out of memory during list extend at /usr/share/perl5/vendor_perl/Term/ProgressBar.pm line 749.'

Version-Release number of selected component (if applicable):
virt-v2v-0.7.0-1.el6.x86_64
libguestfs-1.7.17-11.el6.x86_64
libguestfs-tools-1.7.17-11.el6.x86_64
libvirt-0.8.7-2.el6.x86_64

How reproducible:
always


Steps to Reproduce:
Convert VM with redirected stdout 2>&1
#cd /
# LIBGUUESTFS_TRACE=1 virt-v2v  -ic qemu+ssh://10.66.72.xxx/system -o rhev -osd 10.66.90.115:/vol/v2vrwu1/xen_export rhel5u6-32b-qcow2-test > rhel5u6-32b-qcow2-test1.log 2>&1
root.72.xxx's password: 
root.72.xxx's password: 

# cat rhel5u6-32b-qcow2-test1.log 
Out of memory during list extend at /usr/share/perl5/vendor_perl/Term/ProgressBar.pm line 749.


Actual results:
Conversion hang before copying images.

Expected results:
Convert VM successfully.

Additional info:

Comment 2 Matthew Booth 2011-01-20 17:23:02 UTC
Fix posted:
http://www.redhat.com/archives/libguestfs/2011-January/msg00050.html

Comment 3 Huang Wenlong 2011-01-27 05:22:53 UTC
verify this bug in rhel6 with 

virt-v2v-0.7.1-1.el6.x86_64
libguestfs-1.7.17-11.el6.x86_64
libvirt-0.8.7-2.el6.x86_64

virt-v2v -ic qemu+ssh://10.66.72.112/system -op sdb1 -b breth0  rhel5u6-64b-raw-wl > /tmp/rhel5u6-64b-raw-w.log 2>&1 

conversion is successful

Comment 4 Rita Wu 2011-01-27 05:51:37 UTC
Set it as VERIFIED according to comment 3

Comment 7 Laura Bailey 2011-04-28 02:53:59 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
virt-v2v conversion would hang if its output was redirected at the command line. This bug was reported and corrected during development. It was not seen in production systems in the field.

Comment 8 errata-xmlrpc 2011-05-19 13:54:01 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0650.html