[PATCH] Re: [libvirt] Silently ignored virDomainRestore failures

Charles Duffy charles at dyfis.net
Fri Oct 2 05:54:22 UTC 2009


Charles Duffy wrote:
>     For existing QEMU, it might be sufficient to just put an arbitrary
>     'sleep(5)' before issuing 'cont', which would at least give it a
>     reasonable chance of avoiding the race condition.
> 
> Well -- I wasn't going to submit the patch I'm now using internally 
> (using and waiting for a sigil on stderr when migrate_url is "stdin"), 
> but I suppose that with an else clause doing a sleep it might actually 
> be the closest available option to a Right Thing for preexisting qemu.
> 
> I'll wait to hear back today from the contractors testing with it (they 
> were hitting this race condition frequently) and post an amended copy 
> here if it gets their thumbs-up.

Attached is what I'm presently using as a workaround until I have a 
proper ("info incoming") approach implemented. It is perhaps excessively 
paranoid (the extra .5sec of delay on the stdin case may not be needed), 
but we haven't been able to reproduce the issue with it applied.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-v0.7.0-0001-Wait-for-a-sigil-before-considering-a-migration-from-r3.patch
Type: text/x-patch
Size: 7243 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20091002/3158d06f/attachment-0001.bin>


More information about the libvir-list mailing list