Bug 681623 - libvirt double-close bug in tight loop of save/restore [5.7]
Summary: libvirt double-close bug in tight loop of save/restore [5.7]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Eric Blake
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 672725 678524
Blocks: 678548
TreeView+ depends on / blocked
 
Reported: 2011-03-02 18:53 UTC by Eric Blake
Modified: 2011-07-21 10:31 UTC (History)
14 users (show)

Fixed In Version: libvirt-0.8.2-19.el5
Doc Type: Bug Fix
Doc Text:
Clone Of: 672725
Environment:
Last Closed: 2011-07-21 10:31:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1019 0 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2011-07-21 10:31:00 UTC

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


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