Bug 672199

Summary: Tunnelled migration failed with error 'internal error unknown migration protocol'
Product: Red Hat Enterprise Linux 6 Reporter: wangyimiao <yimwang>
Component: libvirtAssignee: Osier Yang <jyang>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: dallan, dyuan, eblake, gren, llim, mjenner, mzhan, weizhan, xen-maint, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.8.7-5.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:26:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description wangyimiao 2011-01-24 11:08:17 UTC
Description of problem:
Tunnelled migrate fail with error 'internal error unknown migration protocol'.

Version-Release number of selected component (if applicable):
libvirt-0.8.7-3.el6.x86_64
qemu-kvm-0.12.1.2-2.129.el6.x86_64
qemu-img-0.12.1.2-2.129.el6.x86_64
kernel-2.6.32-94.el6.x86_64

How reproducible:
5/5

Steps to Reproduce:
1.Run that commands on source and target host.
# iptables -F
# setenforce 0

2.Creating your local public key pair (by running "ssh-keygen -t rsa ", just give the default answer to the request questions).
  #ssh-keygen -t rsa 

3.Copying the public key to a remote host by "$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@somehost ".

  #ssh-copy-id -i ~/.ssh/id_rsa.pub root@somehost

4.mount nfs storage on source and target host
 
5.On source host.

# virsh migrate --tunnelled --p2p --live  vm2 qemu+ssh://10.66.93.39/system
error: internal error unknown migration protocol


6.#cat /var/log/libvirt/qemu/vm2.log 
....................................
2011-01-24 11:02:56.136: starting up
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel6.0.0 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name vm2 -uuid 21281ced-a055-bfac-1fbb-302c0839d008 -nodefconfig -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/vm2.monitor,server,nowait -mon chardev=monitor,mode=control -rtc base=utc -boot c -drive file=/mnt/rhel6.img,if=none,id=drive-ide0-0-0,format=raw,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,fd=21,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:7e:c0:ce,bus=pci.0,addr=0x3 -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -vnc 127.0.0.1:1 -k en-us -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
char device redirected to /dev/pts/3

  
Actual results:
Tunnelled migrate fail with error 'internal error unknown migration protocol'.

Expected results:
Tunnelled migrate should be successfully.

Comment 2 Osier Yang 2011-01-30 08:12:10 UTC
patch posted to upstream:
http://www.redhat.com/archives/libvir-list/2011-January/msg01258.html

Comment 3 Eric Blake 2011-01-31 21:18:23 UTC
Regression caused during my resolution of bug 620363 - only affects 0.8.7-2.el6 onwards

Comment 6 weizhang 2011-02-15 08:30:25 UTC
Verify pass on
libvirt-0.8.7-6.el6.x86_64
qemu-kvm-0.12.1.2-2.144.el6.x86_64
kernel-2.6.32-113.el6.x86_64

Tunnelled p2p migration can be finished successfully with no error

Comment 9 errata-xmlrpc 2011-05-19 13:26:14 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-0596.html