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