Re: [Libvir] Proposal: New virDomainLookup function to indicate Not found vs Error

2007-06-29 Thread Richard W.M. Jones
Daniel P. Berrange wrote: That said, I'm not convinced we need this if we fix the error reporting of the original functions to allow the 'no such domain' error to be reliably caught & handled. OK, I tend to agree. I'll come up with a patch which adds the no-such-domain/network errors and make

Re: [Libvir] Proposal: New virDomainLookup function to indicate Not found vs Error

2007-06-28 Thread Daniel P. Berrange
On Wed, Jun 27, 2007 at 02:43:18PM +0100, Richard W.M. Jones wrote: > virt-install has some code which waits for a domain to appear just after > it has been created. It looks like the loop attached to the end of this > email, and is functional but has two problems. > > Problem (1) is that self.

[Libvir] Proposal: New virDomainLookup function to indicate Not found vs Error

2007-06-27 Thread Richard W.M. Jones
virt-install has some code which waits for a domain to appear just after it has been created. It looks like the loop attached to the end of this email, and is functional but has two problems. Problem (1) is that self.conn.lookupByName doesn't distinguish between a "Not found" domain and an ac