It seems that there are some concurrency problems with libvirt. I had the following script:
#!/usr/bin/python
import os, time
for i in xrange(1000):
print i
os.system('virsh restore /aml/images/pr51.img')
print "a"
os.system('virsh save pr51 /aml/images/pr51.img')
However, this script would hang libvirtd, the libvirt daemon, after awhile.
I ended up having to put sleep(3) after both os.system calls in order to make it work. I guess that the libvirt people haven't fixed this concurrency problem yet.
No comments:
Post a Comment