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] The new HTML interface....

To: Steven Hand <Steven.Hand@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] The new HTML interface....
From: Tom Wilkie <tw275@xxxxxxxxx>
Date: Tue, 27 Jul 2004 13:36:22 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx, "Fredrik Dahlberg" <fdaa@xxxxxxxxxx>
Delivery-date: Tue, 27 Jul 2004 13:36:29 +0100
Envelope-to: Steven.Hand@xxxxxxxxxxxx
In-reply-to: <E1BpPyt-0002Sm-00@xxxxxxxxxxxxxxxxx>
References: <E1BpPyt-0002Sm-00@xxxxxxxxxxxxxxxxx>
Steve

Is xend working on this computer? The actual error is a connection refused, indicating xend is not up.

The new commands (not quite checked in yet) for the interface will be 'sv start' and 'sv stop', to make things easier. Also gets rid of these .tap files.

Cheers

Tom

On 27 Jul 2004, at 12:18, Steven Hand wrote:


Just check in a few new features to the new web interface.

Here are the details.  To start it as a daemon, run

mktap web --path /var/xen/sv
twistd -nf web.tap

you only need to run the mktap command once - infact, I'll include it
in the repo next week.

the website is then available on port 8080, the main bit being called
Main.rpy

The code to shutdown / reboot the Node has been commented out, so feel
free to click the buttons...

So just installed the newest version and started it up and attached
to commando-0:8080/Main.rpy  -- following error death:


[root@commando-0 root]# twistd -nf web.tap
2004/07/27 12:17 BST [-] Log opened.
2004/07/27 12:17 BST [-] twistd 1.3.0rc1 (/usr/bin/python 2.2.2) starting up 2004/07/27 12:17 BST [-] reactor class: twisted.internet.default.SelectReactor
2004/07/27 12:17 BST [-] Loading web.tap...
2004/07/27 12:17 BST [-] Loaded.
2004/07/27 12:17 BST [-] twisted.web.server.Site starting on 8080
2004/07/27 12:17 BST [-] Starting factory <twisted.web.server.Site instance at 0x82bff24>
2004/07/27 12:17 BST [-] set uid/gid 0/0
2004/07/27 12:17 BST [HTTPChannel,0,128.232.32.126] 128.232.32.126 - - [27/Jul/2004:11:17:59 +0000] "GET / HTTP/1.1" 200 1133 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040207 Firefox/0.8" 2004/07/27 12:18 BST [HTTPChannel,0,128.232.32.126] Traceback (most recent call last): File "/usr/lib/python2.2/site-packages/twisted/protocols/basic.py", line 223, in dataReceived
            why = self.lineReceived(line)
File "/usr/lib/python2.2/site-packages/twisted/protocols/http.py", line 965, in lineReceived
            self.allContentReceived()
File "/usr/lib/python2.2/site-packages/twisted/protocols/http.py", line 1006, in allContentReceived
            req.requestReceived(command, path, version)
File "/usr/lib/python2.2/site-packages/twisted/protocols/http.py", line 557, in requestReceived
            self.process()
        --- <exception caught here> ---
File "/usr/lib/python2.2/site-packages/twisted/web/server.py", line 165, in process
            self.render(resrc)
File "/usr/lib/python2.2/site-packages/twisted/web/server.py", line 172, in render
            body = resrc.render(self)
File "/usr/lib/python2.2/site-packages/twisted/web/resource.py", line 201, in render
            return m(request)
File "/usr/lib/python2.2/site-packages/xen/sv/HTMLBase.py", line 16, in render_GET
            self.write_BODY( request )
File "/usr/lib/python2.2/site-packages/xen/sv/Main.py", line 52, in write_BODY module( self.mainUrlWriter( modName ) ).write_MENU( request ) File "/usr/lib/python2.2/site-packages/xen/sv/DomList.py", line 16, in write_MENU
            return self.write_BODY( request, head=True, long=False )
File "/usr/lib/python2.2/site-packages/xen/sv/DomList.py", line 20, in write_BODY
            domains = server.xend_domains()
File "/usr/lib/python2.2/site-packages/xen/xend/XendClient.py", line 436, in xend_domains
            return self.xendGet(self.domainurl())
File "/usr/lib/python2.2/site-packages/xen/xend/XendClient.py", line 377, in xendGet
            return self.client.xendGet(url, args)
File "/usr/lib/python2.2/site-packages/xen/xend/XendClient.py", line 152, in xendGet
            return self.xendRequest(url, "GET", args)
File "/usr/lib/python2.2/site-packages/xen/xend/XendClient.py", line 212, in xendRequest conn.request(method, url.fullpath(), self.request.data, self.request.headers)
          File "/usr/lib/python2.2/httplib.py", line 701, in request
            self._send_request(method, url, body, headers)
File "/usr/lib/python2.2/httplib.py", line 723, in _send_request
            self.endheaders()
          File "/usr/lib/python2.2/httplib.py", line 695, in endheaders
            self._send_output()
File "/usr/lib/python2.2/httplib.py", line 581, in _send_output
            self.send(msg)
          File "/usr/lib/python2.2/httplib.py", line 548, in send
            self.connect()
          File "/usr/lib/python2.2/httplib.py", line 532, in connect
            raise socket.error, msg
        socket.error: (111, 'Connection refused')

2004/07/27 12:18 BST [HTTPChannel,0,128.232.32.126] 128.232.32.126 - - [27/Jul/2004:11:18:01 +0000] "GET /Main.rpy HTTP/1.1" 500 31907 "http://commando-0.xeno.cl.cam.ac.uk:8080/"; "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040207 Firefox/0.8"