Bug 681623

Summary: libvirt double-close bug in tight loop of save/restore [5.7]
Product: Red Hat Enterprise Linux 5 Reporter: Eric Blake <eblake>
Component: libvirtAssignee: Eric Blake <eblake>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.7CC: abaron, berrange, dallan, danken, dyuan, eblake, gren, hjiang, llim, quintela, vbian, virt-maint, xen-maint, yoyzhang
Target Milestone: rcKeywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-0.8.2-19.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 672725 Environment:
Last Closed: 2011-07-21 10:31:20 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: 672725, 678524    
Bug Blocks: 678548    

Comment 4 Vivian Bian 2011-05-10 03:19:56 UTC
tested with 
libvirt-0.8.2-19.el5
kernel-2.6.18-259.el5
xen-3.0.3-130.el5

# for i in `seq 1000`; do  virsh save --domain pv --file /opt/pv.save;
virsh restore /opt/pv.save; done


# for i in `seq 1000`; do  virsh save --domain hvm --file /opt/hvm.save;
virsh restore /opt/hvm.save; done

All of the above command get on error during the 1000 times tight loop . 

So set bug status to VERIFIED

Comment 5 Huming Jiang 2011-06-02 03:10:45 UTC
Could not reproduce this bug on the following components of rh5.6: 
kernel-2.6.18-238.el5
xen-3.0.3-120.el5
libvirt-0.8.2-15.el5

Steps:
# cat test2.sh 
for i in `seq 1000`;
 do  
virsh save --domain rh5.6 --file /opt/pv.save;
echo $i;
virsh restore /opt/pv.save; 
done

# sh test2.sh > result.txt
# cat result.txt
...
998
Domain restored from /opt/pv.save

Domain rh5.6 saved to /opt/pv.save

999
Domain restored from /opt/pv.save

Domain rh5.6 saved to /opt/pv.save

1000
Domain restored from /opt/pv.save

Note: all success

Comment 7 errata-xmlrpc 2011-07-21 10:31:20 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/RHSA-2011-1019.html