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

Easy fix - change line 66 of file "/usr/lib/python2.3/site-packages/xen/sv/DomList.py", to:

request.write( "<img src='images/small-pause.png' onclick='doOp2( \"pause\", \"%(dom)s\" )'>" % domInfoHash )

be careful of the indentation.  I will merge in a fix 2moro.

Cheers

Tom

ps  heres a tip: read error logs bottom to top in python.


On 12 Sep 2004, at 16:07, Peri Hankey wrote:

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