Bug 786115

Summary: virt-v2v hangs if source server has a ssh banner when using -ic xen+ssh:
Product: Red Hat Enterprise Linux 6 Reporter: Matthew Booth <mbooth>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: boutilpj, rjones, rwu, tzheng, yupzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-v2v-0.8.6-1.el6 Doc Type: Bug Fix
Doc Text:
Cause The customer attempts to convert a guest which is accessed over an ssh connection. The target host has an SSH login banner configured. Specifically this will involved virt-v2v command lines with the option -ic xen+ssh://... or -ic qemu+ssh://.... Consequence The conversion process hangs indefinitely. Fix virt-v2v was updated to ignore SSH login banners. Result The conversion completes correctly.
Story Points: ---
Clone Of: 785844 Environment:
Last Closed: 2012-06-20 12:42:00 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: 785844    
Bug Blocks: 786114    

Description Matthew Booth 2012-01-31 14:05:50 UTC
+++ This bug was initially created as a clone of Bug #785844 +++

Description of problem:

virt-v2v hangs if source server has a ssh banner when using -ic xen+ssh:

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

0.8.3

How reproducible:

Always

Steps to Reproduce:
1. Configure a banner on source server
2. Run something like

   virt-v2v -ic xen+ssh://root.10.10 -os STGPOOL --bridge br0 XenVM

3.
  
Actual results:

virt-v2v just hangs, no error.


Expected results:

virt-v2v completes and migrates Xen VM.


Additional info:

I get around the problem by adding a -q to the ssh command in /usr/share/perl5/vendor_perl/Sys/VirtConvert/Transfer/SSH.pm

Comment 1 Matthew Booth 2012-01-31 14:30:39 UTC
Fixed upstream in commit 9b6ca6545aa9be45f4133a8f13ebf6d267a60f9e.

Comment 2 Matthew Booth 2012-01-31 14:31:37 UTC
Documentation note: this bug applies equally to xen+ssh and qemu+ssh.

Comment 3 Rita Wu 2012-02-01 10:20:24 UTC
Can reproduce it with virt-v2v-0.8.3-5.el6.x86_64.
1. create /etc/ssh/ssh_banner and add the banner info in it
2. update sshd config file:

# no default banner path
#Banner /path/banner file
Banner /etc/ssh/ssh_banner

3. restart sshd in source server
4. convert the vm in source server -> hang

Comment 5 tingting zheng 2012-02-07 07:49:53 UTC
Tested the bug with virt-v2v-0.8.6-1.el6.x86_64 as comment 3 shows.
It can convert xen guests successfully with banner info in source server.

Comment 6 Matthew Booth 2012-04-11 13:46:24 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:
Cause
The customer attempts to convert a guest which is accessed over an ssh connection. The target host has an SSH login banner configured. Specifically this will involved virt-v2v command lines with the option -ic xen+ssh://... or -ic qemu+ssh://....

Consequence
The conversion process hangs indefinitely.

Fix
virt-v2v was updated to ignore SSH login banners.

Result
The conversion completes correctly.

Comment 8 errata-xmlrpc 2012-06-20 12:42:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0788.html