Bug 658141

Summary: [libvirt] libvirt crash on multiple migration [Segmentation fault]
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.1CC: antillon.maurizio, bazulay, berrange, cpelland, dallan, danken, dyuan, eblake, hateya, iheim, jdenemar, kxiong, mgoldboi, mjenner, plyons, pm-eus, veillard, weizhan, xen-maint, yoyzhang
Target Milestone: rcKeywords: TestBlocker, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.8.1-27.el6_0.1 Doc Type: Bug Fix
Doc Text:
A race condition where an application could query block information on a virtual guest that had just been migrated away could occur when migrating a guest. As a result, the libvirt service crashed. The libvirt application now verifies that a guest exists before attempting to start any monitoring operations.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-14 16:18:34 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: 638285    
Bug Blocks:    

Description RHEL Program Management 2010-11-29 14:01:36 UTC
This bug has been copied from bug #638285 and has been proposed
to be backported to 6.0 z-stream (EUS).

Comment 4 Jiri Denemark 2010-11-29 23:51:54 UTC
Patches built into libvirt-0.8.1-27.el6_0.1

Comment 7 Dan Kenigsberg 2010-12-21 08:17:22 UTC
Haim, could you assist zhanghaiyan in verification?
zhanghaiyan, please consider testing migration with much more than 8 guests (20?) doing concurrent bidirectional migration (A-->B while B-->A). This has exposed more issues in the past.

Comment 13 koka xiong 2011-01-31 06:30:20 UTC
Verified with
libvirt: libvirt-0.8.1-27.el6_0.3
kernel: kernel-2.6.32-71.16.1.el6
qemu-kvm: qemu-kvm-0.12.1.2-2.113.el6_0.6
in plain libvirt environment.
1. Config migration enviroment in source host A and target host B
   # iptables -F
   # mount 10.66.90.121:/vol/S3/libvirtmanual /mnt
2. Define&Start 8 guests
3. Migrate 8 guests to target host B
# for i in `virsh list |grep running |awk '{print $2}'`; do virsh migrate --live $i qemu+ssh://10.66.93.59/system; done
4. Migrate 8 guests back to source host A

Actual result:
Both step 3&4 migration successfully without error and all the guests works
well after migration

Comment 14 errata-xmlrpc 2011-04-14 16:18:34 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-0446.html

Comment 15 Martin Prpič 2011-04-15 14:18:01 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:
A race condition where an application could query block information on a virtual guest that had just been migrated away could occur when migrating a guest. As a result, the libvirt service crashed. The libvirt application now verifies that a guest exists before attempting to start any monitoring operations.