From: Ewan Mellor Subject: Re: XMLRPC behavior changed? Date: Wed, 15 Nov 2006 09:27:34 +0000 Message-ID: <20061115092734.GB9614@leeni.uk.xensource.com> References: <20061115004352.37732.qmail@web35812.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20061115004352.37732.qmail@web35812.mail.mud.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: jdsw Cc: xendevel List-Id: xen-devel@lists.xenproject.org On Tue, Nov 14, 2006 at 04:43:52PM -0800, jdsw wrote: > Hi > I am trying to connect to a remote XEN daemon using SSH tunnel > (written using paramiko) . The servers have xend-tcp-xml-rpc-server is > enabled. It works fine when I connect from Xen 3.0.2 to Xen 3.0.2 >=20 > But it fails with parsing the response when I connect from Xen 3.0.3 to > Xen 3.0.3. > The request sent seems similar. The server is does not seem to be writing > the XML response header (or is getting lost). Seems like a bug. Has > anything changed in this area? Lots of things have changed above this, but little has changed at the probl= em layer, as far as I can tell. We still intend to preserve the old protocol,= so this is a bug. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > send: 'POST /RPC2 HTTP/1.0\r\nHost: 192.168.12.102:8005\r\nUser-Agent: xm= lrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: text/xml\r\nConte= nt-Length: 151\r\n\r\n' > send: "\n\nxend.domains\n\n\n1\n\n\n\n" > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > reply: 'HTTP/1.1 200 OK\r\n' > header: Server: BaseHTTP/0.3 Python/2.4.3 > header: Date: Tue, 14 Nov 2006 17:17:30 GMT > header: Content-Type: text/xml > header: Content-Length: 17015 > body: 'domid\n51\n\n\nuuid\nd61f62d9-2f77-e6a1-8bef-3f2e36abf4e5\= n\n\nvcpus\n1\n\n\ncpu_weight\n1.0= \n\n\nmemory\n256\n\n\nshadow_memory\n0\n\n<= data>\nmaxmem\n256\n\n\nfeatures\n\n\= n\nname >\nT1 got expat error not well-formed (invalid token): line 1, column 23 It looks like you've lost the first block of the body of the response, thou= gh you've got the HTTP header, so the connection itself is OK. Could you add some tracing into xen.util.xmlrpclib2 (_marshaled_dispatch seems the right place) and see where it is losing that data? Cheers, Ewan.