Bug 680053

Summary: IPv6 migration failed 'An undefined error has ocurred'
Product: Red Hat Enterprise Linux 6 Reporter: zhanghaiyan <yoyzhang>
Component: libvirtAssignee: Laine Stump <laine>
Status: CLOSED CANTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: dallan, dyuan, eblake, llim, weizhan, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-21 03:25:38 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: 680356    
Bug Blocks:    
Attachments:
Description Flags
/var/log/libvirtd/log on source host none

Description zhanghaiyan 2011-02-24 08:53:04 UTC
Description of problem:
IPv6 migration failed 
error: internal error unable to execute QEMU command 'migrate': An undefined error has ocurred

Version-Release number of selected component (if applicable):
- libvirt-0.8.7-7.el6.x86_64
- kernel-2.6.32-113.el6.x86_64
- qemu-kvm-0.12.1.2-2.146.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. On both source and target host configure migration set up.
1) # getenforce 
Enforcing
2) # ip6tables -F
3) # mount 10.66.90.121:/vol/S3/libvirtmanual /mnt

2. Give ipv6 address for source and target host
On source
# ifconfig eth0 inet6 add 3ffe::100/64
On target
# ifconfig eth0 inet6 add 3ffe::103/64

3. Add target ipv6 and host name to /etc/hosts on source
# cat /etc/hosts
10.66.93.59	dhcp-93-59.nay.redhat.com	dhcp-93-59	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost
::1	dhcp-93-59.nay.redhat.com	dhcp-93-59	localhost6.localdomain6	localhost6
3ffe::103 kxiong

# ping kxiong
pping: unknown host kxiong
# ping6 kxiong
PING kxiong(kxiong) 56 data bytes
64 bytes from kxiong: icmp_seq=1 ttl=64 time=0.758 ms
64 bytes from kxiong: icmp_seq=2 ttl=64 time=0.331 ms

4. On source
# virsh migrate --live rhel61_i386_8 qemu+ssh://kxiong/system 
root@kxiong's password: 
error: internal error unable to execute QEMU command 'migrate': An undefined error has ocurred
  
Actual results:
4. failed migration with ipv6 

Expected results:
4. pass migration with ipv6 

Additional info:
could ssh target host successfully
# ssh kxiong
root@kxiong's password: 
Last login: Thu Feb 24 15:09:45 2011 from 10.66.93.59
[root@kxiong ~]#

Comment 1 zhanghaiyan 2011-02-24 08:55:15 UTC
Created attachment 480690 [details]
/var/log/libvirtd/log on source host

Comment 4 Laine Stump 2011-04-14 15:47:36 UTC
Does qemu itself properly support migration with IPv6? We send the following command to qemu:

03:17:53.032: 15350: debug : qemuMonitorJSONCommandWithFd:217 : Send command '{"execute":"migrate","arguments":{"detach":true,"blk":false,"inc":false,"uri":"tcp:kxiong:49156"}}' for write with FD -1

and it responds with:

03:17:53.035: 15350: debug : qemuMonitorJSONCommandWithFd:222 : Receive command reply ret=0 errno=0 92 bytes '{"error": {"class": "UndefinedError", "desc": "An undefined error has ocurred", "data": {}}}'


Also, is there any useful line in /var/log/libvirt/qemu/rhel61_i386_8.log on the source host? (it would be anything from the final qemu commandline to the end of the file?)

Finally, can you see from wireshark/tcpdump whether or not the source even tries to contact the destination?

Comment 5 zhanghaiyan 2011-04-15 02:24:14 UTC
According to bug 680356, qemu haven't support ipv6 migration yet.

Comment 7 Laine Stump 2011-06-02 20:44:17 UTC
Since qemu doesn't yet support ipv6 migration, it's currently not clear what, if anything, libvirt will need to do to support ipv6 migration.

Comment 8 Dave Allan 2011-06-21 03:25:38 UTC
(In reply to comment #7)
> Since qemu doesn't yet support ipv6 migration, it's currently not clear what,
> if anything, libvirt will need to do to support ipv6 migration.

Closing as CANTFIX.