This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [XEND] Return an Internal Server Error vi

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Return an Internal Server Error via the Xend HTTP server.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Sep 2006 17:00:25 +0000
Delivery-date: Tue, 12 Sep 2006 10:00:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User atse@xxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 7d4def53936c4c5a8a0a1e82dac42a96aae0d1c1
# Parent  956e9aaf88c9e7928b315b3e4b2f7a62c80dfe76
[XEND] Return an Internal Server Error via the Xend HTTP server.

This allows domain creation failures can be detected when done via HTTP.

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
 tools/python/xen/web/SrvBase.py |    1 +
 1 files changed, 1 insertion(+)

diff -r 956e9aaf88c9 -r 7d4def53936c tools/python/xen/web/SrvBase.py
--- a/tools/python/xen/web/SrvBase.py   Tue Sep 12 11:09:22 2006 +0100
+++ b/tools/python/xen/web/SrvBase.py   Tue Sep 12 16:33:33 2006 +0100
@@ -84,6 +84,7 @@ class SrvBase(resource.Resource):
                 return op_method(op, req)
             except Exception, exn:
+                req.setResponseCode(http.INTERNAL_SERVER_ERROR, "Request 
failed: " + op)
                 log.exception("Request %s failed.", op)
                 if req.useSxp():
                     return ['xend.err', str(exn)]

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Return an Internal Server Error via the Xend HTTP server., Xen patchbot-unstable <=