WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Daily Xen-HVM Build Testing: cs10470: broken

To: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
Subject: Re: [Xen-devel] Daily Xen-HVM Build Testing: cs10470: broken
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Wed, 21 Jun 2006 16:48:51 -0500
Cc: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>, Rick Gonzalez <rcgneo@xxxxxxxxxx>
Delivery-date: Wed, 21 Jun 2006 14:49:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8FFF7E42E93CC646B632AB40643802A83D6FEF@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <8FFF7E42E93CC646B632AB40643802A83D6FEF@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (X11/20060615)
Can ya'll try out the following patch? It seems to solve the problem for me.

Have not run it through xm-test yet though.

Regards,

Anthony Liguori

Nakajima, Jun wrote:
Yes, we are observing the same problem. Our team is saying it would work
if the changeset 10454 "Add support to Xend XML-RPC server for HTTP/1.1
Keep-Alive" is backed out.

Looks like the newly created HVM guest is placed into the pause state.
If we do xm unpause, it starts running.

Jun
---
Intel Open Source Technology Center
-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Rick
Gonzalez
Sent: Wednesday, June 21, 2006 9:51 AM
To: Xen Developers
Subject: [Xen-devel] Daily Xen-HVM Build Testing: cs10470: broken


Hardware:  x460


- 32bit and 64bit dom0 boots fine.
- 32bit and 64bit hvm guests do not boot at all. the get in a pause
state.
- dom0 crashes when I issue the following command "xm destroy <id>"
- no error messages are displayed with "xm dmesg" or "dmesg" on dom0.

I need to hookup a console to get debug information.

Investigation further.



------------------------
Rick Gonzalez
Linux Technology Center
IBM Corporation
Phone#: 512-838-0623


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

# HG changeset patch
# User Anthony Liguori <anthony@xxxxxxxxxxxxx>
# Node ID ddd4d7e3d79e8bf4999c820fdb5e003d31283d5f
# Parent  411a3c01bb40681731ad50fd3b8c5d7972baf36d
Make sure to explicitly close the connection if we're using HTTP/1.0.  This
shouldn't be needed but it appears to be necessary as the Python client
just does a wfile.read() instead of only reading the reported Content-Length.

Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>

diff -r 411a3c01bb40 -r ddd4d7e3d79e tools/python/xen/util/xmlrpclib2.py
--- a/tools/python/xen/util/xmlrpclib2.py       Tue Jun 20 18:51:46 2006 +0100
+++ b/tools/python/xen/util/xmlrpclib2.py       Wed Jun 21 16:47:48 2006 -0500
@@ -58,8 +58,6 @@ class XMLRPCRequestHandler(SimpleXMLRPCR
     #    propagate so that it shows up in the Xend debug logs
     # 2) we don't bother checking for a _dispatch function since we don't
     #    use one
-    # 3) we never shutdown the connection.  This appears to be a bug in
-    #    SimpleXMLRPCServer.py as it breaks HTTP Keep-Alive
     def do_POST(self):
         data = self.rfile.read(int(self.headers["content-length"]))
         rsp = self.server._marshaled_dispatch(data)
@@ -71,6 +69,8 @@ class XMLRPCRequestHandler(SimpleXMLRPCR
 
         self.wfile.write(rsp)
         self.wfile.flush()
+        if self.close_connection == 1:
+            self.connection.shutdown(1)
 
 class HTTPUnixConnection(HTTPConnection):
     def connect(self):
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel