search for: error_invalid_domain

Displaying 3 results from an estimated 3 matches for "error_invalid_domain".

2006 Mar 23
0
Re: [Xen-changelog] Improve error handling, in particular fixing the ProtocolError that is thrown
...; from xen.xend import XendDomain, XendDomainInfo, XendNode, \ > XendLogging, XendDmesg > from xen.util.xmlrpclib2 import UnixXMLRPCServer, TCPXMLRPCServer > > -from xen.xend.XendClient import XML_RPC_SOCKET > +from xen.xend.XendClient import XML_RPC_SOCKET, ERROR_INVALID_DOMAIN > > def lookup(domid): > - return XendDomain.instance().domain_lookup_by_name_or_id(domid) > + try: > + return XendDomain.instance().domain_lookup_by_name_or_id(domid) > + except exn: > + log.exception(exn) > + raise exn > > def disp...
2008 Sep 16
2
xm, no such domain error code...
Right now xm will return 1 if you run `xm list non_existant_domain` Wouldnt it be a better idea to have a specific error code for this error so that scripts wrapping around xm can better determine if the domain does not exist or if xm just failed for whatever reason? ~Shaun _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com
2008 Sep 17
2
[Xen-ia64-devel] [PATCH] xm: Don''t spawn vncviewer twice.
...cess_cpuid(vals, ''cpuid'') @@ -1193,23 +1160,10 @@ try: dominfo = server.xend.domain.create(config) except xmlrpclib.Fault, ex: - import signal - if vncpid: - os.kill(vncpid, signal.SIGKILL) if ex.faultCode == xen.xend.XendClient.ERROR_INVALID_DOMAIN: err("the domain ''%s'' does not exist." % ex.faultString) else: err("%s" % ex.faultString) - except Exception, ex: - # main.py has good error messages that let the user know what failed. - # unless the error is...