From: Peri Hankey Subject: Re: xen-2.0 20040910 problems Date: Sun, 12 Sep 2004 16:07:47 +0100 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <41446643.3000204@thegreen.co.uk> References: <41440A44.4070203@thegreen.co.uk> <0BCB63E2-04A6-11D9-854D-000A95C61052@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <0BCB63E2-04A6-11D9-854D-000A95C61052@cam.ac.uk> Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Tom Wilkie , xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org 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() --- --- 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( "" % 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