Bug 726650 - Pause a domain while being migrated will cause migration error
Summary: Pause a domain while being migrated will cause migration error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.2
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-29 10:39 UTC by weizhang
Modified: 2011-12-06 11:18 UTC (History)
5 users (show)

Fixed In Version: libvirt-0.9.4-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 11:18:13 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1513 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-12-06 01:23:30 UTC

Description weizhang 2011-07-29 10:39:42 UTC
Description of problem:
When do migration, pause the domain will cause migration error.
on 0.8.7-18 there is no problem, so it is a regression bug.

Version-Release number of selected component (if applicable):
kernel-2.6.32-171.el6.x86_64
qemu-kvm-0.12.1.2-2.172.el6.x86_64
libvirt-0.9.4-0rc1.el6.x86_64

How reproducible:
80%

Steps to Reproduce:
1. start domain "migrate"

   # virsh start migrate

2. wait for the domain fully started.

3. prepare migration environment and do migrate

   # virsh migrate --live migrate qemu+ssh://${dest_host_ip}/system  

4.Before step 3 finished,open the other terminal and suspend guest os on source host .

    # virsh suspend migrate
  
Actual results:
migration will report error:
error: An error occurred, but the cause is unknown

Expected results:
migration will succeed

Additional info:
with LIBVIRT_DEBUG=1
....
16:10:57.802: 23407: debug : virDomainFree:2144 : dom=0x7f421c0008c0, (VM: name=rhel61, uuid=303b0ad4-c3b2-d75b-28e8-76f3cee0b78f),
16:10:57.802: 23407: debug : virUnrefDomain:276 : unref domain 0x7f421c0008c0 rhel61 1
16:10:57.802: 23407: debug : virReleaseDomain:238 : release domain 0x7f421c0008c0 rhel61 303b0ad4-c3b2-d75b-28e8-76f3cee0b78f
16:10:57.802: 23407: debug : virReleaseDomain:246 : unref connection 0x16f58f0 3
16:10:57.802: 23406: debug : virDomainFree:2144 : dom=0x16f5c30, (VM: name=rhel61, uuid=303b0ad4-c3b2-d75b-28e8-76f3cee0b78f),
16:10:57.802: 23406: debug : virUnrefDomain:276 : unref domain 0x16f5c30 rhel61 1
16:10:57.802: 23406: debug : virReleaseDomain:238 : release domain 0x16f5c30 rhel61 303b0ad4-c3b2-d75b-28e8-76f3cee0b78f
16:10:57.802: 23406: debug : virReleaseDomain:246 : unref connection 0x16f58f0 2
error: An error occurred, but the cause is unknown

16:10:57.802: 23406: debug : virConnectClose:1320 : conn=0x16f58f0
16:10:57.802: 23406: debug : virUnrefConnect:145 : unref connection 0x16f58f0 1
16:10:57.802: 23406: debug : virReleaseConnect:94 : release connection 0x16f58f0
...

Comment 2 Dave Allan 2011-07-29 21:02:38 UTC
I was able to reproduce misbehavior on fairly recent source tree, but it appears to fixed in the current git HEAD, commit id:

c5b6537b1f1f3e126c2f06f84ca88fe3df6cde34

The only thing to note is that the domain will begin running on the dst host when the migration completes.  It's not entirely clear to me if that's a bug or not.

Comment 3 Dave Allan 2011-09-16 14:22:54 UTC
(In reply to comment #2)
> I was able to reproduce misbehavior on fairly recent source tree, but it
> appears to fixed in the current git HEAD, commit id:
> 
> c5b6537b1f1f3e126c2f06f84ca88fe3df6cde34
> 
> The only thing to note is that the domain will begin running on the dst host
> when the migration completes.  It's not entirely clear to me if that's a bug or
> not.

Moving to MODIFIED.

Comment 6 Vivian Bian 2011-09-26 05:08:15 UTC
tested with 
libvirt-0.9.4-12.el6.x86_64
qemu-kvm-0.12.1.2-2.192.el6.x86_64
kernel-2.6.32-197.el6.x86_64

Steps 
1. start domain "migrate"

   # virsh start migrate

2. wait for the domain fully started.

3. prepare migration environment and do migrate

   # virsh migrate --live migrate qemu+ssh://${dest_host_ip}/system  

4.Before step 3 finished,open the other terminal and suspend guest os on source
host .

Result:
Guest could be migrated successfully . So set bug status to VERIFIED

Comment 7 errata-xmlrpc 2011-12-06 11:18:13 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-2011-1513.html


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