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 786115 - virt-v2v hangs if source server has a ssh banner when using -ic xen+ssh:
Summary: virt-v2v hangs if source server has a ssh banner when using -ic xen+ssh:
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-v2v
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Matthew Booth
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 785844
Blocks: 786114
TreeView+ depends on / blocked
 
Reported: 2012-01-31 14:05 UTC by Matthew Booth
Modified: 2012-06-20 12:42 UTC (History)
5 users (show)

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.
Clone Of: 785844
Environment:
Last Closed: 2012-06-20 12:42:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0788 0 normal SHIPPED_LIVE virt-v2v bug fix and enhancement update 2012-06-19 20:34:39 UTC

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


Note You need to log in before you can comment on or make changes to this bug.