Bug 706031 - Migration will failed with "error: server closed connection"when restart libvirt on source host during live migration
Summary: Migration will failed with "error: server closed connection"when restart libv...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.7
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-19 08:53 UTC by wangyimiao
Modified: 2011-11-21 05:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-15 19:45:29 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description wangyimiao 2011-05-19 08:53:21 UTC
Description of problem:
Migration will failed with "error: server closed connection" when restart libvirt on source host during live migration.

Version-Release number of selected component (if applicable):
libvirt-0.8.2-20.el5
kvm-qemu-img-83-232.el5
kernel-2.6.18-259.el5

How reproducible:
5/5

Steps to Reproduce:
1.Execute that commands on source and targect hosts.
# iptables -F
# mount 10.66.5.181:/var/lib/libvirt/images/  /mnt 

2. Define and start a domain.
   # virsh start win7

3. Start a live migration.
   # virsh migrate --live  win7 qemu+ssh://10.66.5.181/system

4. While the migration is happening, reboot libvirtd on the source of the migration.
   # service libvirtd restart


Actual results:
Migration will failed with "error: server closed connection"when restart libvirt on source host during live migration.

Expected results:
The migration should finish successfully.

Comment 1 Huming Jiang 2011-06-01 06:14:46 UTC
Could reproduce this bug on the following components of rh5.6:
kernel-2.6.18-238.el5
libvirt-0.8.2-15.el5
kvm-83-224.el5
virt-manager-0.6.1-13.el5

Steps:
1. build the environment of migration;
#iptables -F
#setsebool -P virt_use_nfs 1
2. Define and start a domain.
   # virsh start rh5

3. Start a live migration.
   # virsh migrate --live  rh5 qemu+ssh://10.66.6.149/system

4. While the migration is happening, reboot libvirtd on the source of the
migration.
   # service libvirtd restart(source)
error: server closed connection: 
   # virsh list --all(source host)
 Id Name                 State
----------------------------------
  1 rh5                  running

Comment 2 RHEL Program Management 2011-06-21 05:28:37 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 4 RHEL Program Management 2011-08-15 19:45:29 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.

Comment 5 yuping zhang 2011-11-21 05:20:54 UTC
Migration successful when migration with restart destination libvirtd.

Version-Release number of selected component (if applicable):
libvirt-0.8.2-24.el5
libvirt-python-0.8.2-24.el5

How reproducible:
always

Steps to Reproduce:
1.Configure a migration environment on el5.

2.On Source,start a live migration:
#virsh migrate --live rhel6.2rc qemu+ssh://10.66.5.10/system

3.On target,while the migration is happening, reboot libvirtd on the destination of the migration;
   # service libvirtd restart

Actual results:
On source:
virsh migrate rhel6.2rc --live qemu+ssh://10.66.5.10/system
error: cannot send data: Broken pipe
error: Reconnected to the hypervisor

On target:
virsh list
 Id Name                 State
----------------------------------
  5 rhel6.2rc            paused

Expected results:
Guest will still running on source and no guest trace on target, migration failed gracefully with error 
error: Cannot write data: Broken pipe
error: Reconnected to the hyperviso


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