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] xen-2.0 20040910 problems

To: Tom Wilkie <tw275@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] xen-2.0 20040910 problems
From: Peri Hankey <mpah@xxxxxxxxxxxxxx>
Date: Sun, 12 Sep 2004 16:07:47 +0100
Delivery-date: Sun, 12 Sep 2004 16:09:55 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <0BCB63E2-04A6-11D9-854D-000A95C61052@xxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1C6OQK-0002vI-00@xxxxxxxxxxxxxxxxx> <41440A44.4070203@xxxxxxxxxxxxxx> <0BCB63E2-04A6-11D9-854D-000A95C61052@xxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115
One simple problem:

... # xensv start
Traceback (most recent call last):
 File "/usr/sbin/xensv", line 25, in ?
   from xen.xend.server.params import PID_FILE as XEND_PID_FILE
ImportError: cannot import name PID_FILE

Then after modifying xensv line line 25 to read "from xen.xend.server.params import XEND_PID_FILE"


... # xensv start
... # start a domain using a tried and tested sxp file ....
... try web access ...

... # Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line 223, in dataReceived
   why = self.lineReceived(line)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 965, in lineReceived
   self.allContentReceived()
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 1006, in allContentReceived
   req.requestReceived(command, path, version)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 557, in requestReceived
   self.process()
--- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 165, in process
   self.render(resrc)
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 172, in render
   body = resrc.render(self)
File "/usr/lib/python2.3/site-packages/twisted/web/resource.py", line 201, in render
   return m(request)
File "/usr/lib/python2.3/site-packages/xen/sv/HTMLBase.py", line 17, in render_GET
   self.write_BODY( request )
File "/usr/lib/python2.3/site-packages/xen/sv/Main.py", line 58, in write_BODY
   module( self.mainUrlWriter( modName ) ).write_MENU( request )
File "/usr/lib/python2.3/site-packages/xen/sv/DomList.py", line 16, in write_MENU
   return self.write_BODY( request, head=True, long=False )
File "/usr/lib/python2.3/site-packages/xen/sv/DomList.py", line 45, in write_BODY
   self.write_DOMAIN( request, getDomInfoHash( domain ), long )
File "/usr/lib/python2.3/site-packages/xen/sv/DomList.py", line 66, in write_DOMAIN request.write( "<img src='images/small-pause.png' onclick='doOp2( \"pause\", \"%(dom)-4d\" )'>" % domInfoHash )
exceptions.TypeError: int argument required

I hope that helps - as I explained, I haven't yet dug into it, and I'm learning python as I go.

Peri

Tom Wilkie wrote:

On a different topic, I have never yet seen the web interface work for long enough to be useful - it always crashes with the int-text type clash that was
mentioned somewhere in the changelogs as having been fixed.


The web interface is very much a work-in-progress that we're
hoping other people will contribute on.
I realised that, but hadn't yet made very serious attempts to find my way into the guts of the python.


Hi

If you can give me a pointer to where the problem is, I'll fix it. I've just been in america for a week, and am off to europe soon, but I'll give it a stab.

The int-string clash is because we changed xend from addressing domains by id to name, but the functions where supposed to still accept ints... Also, I think the wizard is broke again.

Cheers

Tom





-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel