* Re: xend http interface
[not found] <457B976C.2070801@scalent.com>
@ 2006-12-12 2:40 ` Evan Bigall
2006-12-12 9:43 ` Ewan Mellor
0 siblings, 1 reply; 4+ messages in thread
From: Evan Bigall @ 2006-12-12 2:40 UTC (permalink / raw)
To: xen-devel
Tried this on xen-users and got no responses, so I am trying here...
I am trying to use the xend http interface (yes, I know about
http://wiki.xensource.com/xenwiki/XenApi, but this is for a quick demo
this month).
When I open http://127.0.0.1:8000/xend/domain I get a page the just
says: "/ xend / domain /" thats its, no list of the domains.
If I telnet to 127.0.0.1 8000 and do "GET /xend HTTP/1.1" I get a 500
Internel server error.
Looking at xend-debug.log I see:
Traceback (most recent call last):
File "//usr/lib/python/xen/web/httpserver.py", line 141, in process
return self.render(resource)
File "//usr/lib/python/xen/web/httpserver.py", line 188, in render
self.resultErr(ex)
File "//usr/lib/python/xen/web/httpserver.py", line 181, in render
val = resource.render(self)
File "//usr/lib/python/xen/web/resource.py", line 59, in render
return meth(req)
File "//usr/lib/python/xen/xend/server/SrvDomainDir.py", line 138, in
render_GET
self._list(req, 'detail' in req.args and req.args['detail'] == ['1'])
File "//usr/lib/python/xen/xend/server/SrvDomainDir.py", line 149, in
_list
self.ls_domain(req, detail, False)
File "//usr/lib/python/xen/xend/server/SrvDomainDir.py", line 167, in
ls_domain
req.write(
AttributeError: XendDomainInfo instance has no attribute 'getSsidref'
This is xen 3.03 with a RHEL4U3 host. I downloaded the source and built
it from scratch. Have I gone wrong somewhere?
Evan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: xend http interface
2006-12-12 2:40 ` xend http interface Evan Bigall
@ 2006-12-12 9:43 ` Ewan Mellor
2006-12-12 9:54 ` Ewan Mellor
2006-12-13 4:05 ` Evan Bigall
0 siblings, 2 replies; 4+ messages in thread
From: Ewan Mellor @ 2006-12-12 9:43 UTC (permalink / raw)
To: Evan Bigall; +Cc: xen-devel
On Tue, Dec 12, 2006 at 09:40:48AM +0700, Evan Bigall wrote:
> Tried this on xen-users and got no responses, so I am trying here...
>
> I am trying to use the xend http interface (yes, I know about
> http://wiki.xensource.com/xenwiki/XenApi, but this is for a quick demo
> this month).
>
> When I open http://127.0.0.1:8000/xend/domain I get a page the just
> says: "/ xend / domain /" thats its, no list of the domains.
>
> If I telnet to 127.0.0.1 8000 and do "GET /xend HTTP/1.1" I get a 500
> Internel server error.
>
> Looking at xend-debug.log I see:
>
> Traceback (most recent call last):
> File "//usr/lib/python/xen/web/httpserver.py", line 141, in process
> return self.render(resource)
> File "//usr/lib/python/xen/web/httpserver.py", line 188, in render
> self.resultErr(ex)
> File "//usr/lib/python/xen/web/httpserver.py", line 181, in render
> val = resource.render(self)
> File "//usr/lib/python/xen/web/resource.py", line 59, in render
> return meth(req)
> File "//usr/lib/python/xen/xend/server/SrvDomainDir.py", line 138, in
> render_GET
> self._list(req, 'detail' in req.args and req.args['detail'] == ['1'])
> File "//usr/lib/python/xen/xend/server/SrvDomainDir.py", line 149, in
> _list
> self.ls_domain(req, detail, False)
> File "//usr/lib/python/xen/xend/server/SrvDomainDir.py", line 167, in
> ls_domain
> req.write(
> AttributeError: XendDomainInfo instance has no attribute 'getSsidref'
>
> This is xen 3.03 with a RHEL4U3 host. I downloaded the source and built
> it from scratch. Have I gone wrong somewhere?
This is a regression that I fixed this last week -- you need the
attached patch, which you ought to be able to apply singly, or you could
pull forward to the latest xen-unstable.
That said, this server is by far the worst of all your options for demo'ing Xen!
What are you trying to demo? There are a plethora of Xen administration
interfaces, both web-based and not, open source and not, and I'm pretty
sure that any one of them is better than that HTTP interface.
Ewan.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: xend http interface
2006-12-12 9:43 ` Ewan Mellor
@ 2006-12-12 9:54 ` Ewan Mellor
2006-12-13 4:05 ` Evan Bigall
1 sibling, 0 replies; 4+ messages in thread
From: Ewan Mellor @ 2006-12-12 9:54 UTC (permalink / raw)
To: Evan Bigall; +Cc: xen-devel
[-- Attachment #1: Type: text/plain, Size: 2249 bytes --]
On Tue, Dec 12, 2006 at 09:43:25AM +0000, Ewan Mellor wrote:
> On Tue, Dec 12, 2006 at 09:40:48AM +0700, Evan Bigall wrote:
>
> > Tried this on xen-users and got no responses, so I am trying here...
> >
> > I am trying to use the xend http interface (yes, I know about
> > http://wiki.xensource.com/xenwiki/XenApi, but this is for a quick demo
> > this month).
> >
> > When I open http://127.0.0.1:8000/xend/domain I get a page the just
> > says: "/ xend / domain /" thats its, no list of the domains.
> >
> > If I telnet to 127.0.0.1 8000 and do "GET /xend HTTP/1.1" I get a 500
> > Internel server error.
> >
> > Looking at xend-debug.log I see:
> >
> > Traceback (most recent call last):
> > File "//usr/lib/python/xen/web/httpserver.py", line 141, in process
> > return self.render(resource)
> > File "//usr/lib/python/xen/web/httpserver.py", line 188, in render
> > self.resultErr(ex)
> > File "//usr/lib/python/xen/web/httpserver.py", line 181, in render
> > val = resource.render(self)
> > File "//usr/lib/python/xen/web/resource.py", line 59, in render
> > return meth(req)
> > File "//usr/lib/python/xen/xend/server/SrvDomainDir.py", line 138, in
> > render_GET
> > self._list(req, 'detail' in req.args and req.args['detail'] == ['1'])
> > File "//usr/lib/python/xen/xend/server/SrvDomainDir.py", line 149, in
> > _list
> > self.ls_domain(req, detail, False)
> > File "//usr/lib/python/xen/xend/server/SrvDomainDir.py", line 167, in
> > ls_domain
> > req.write(
> > AttributeError: XendDomainInfo instance has no attribute 'getSsidref'
> >
> > This is xen 3.03 with a RHEL4U3 host. I downloaded the source and built
> > it from scratch. Have I gone wrong somewhere?
>
> This is a regression that I fixed this last week -- you need the
> attached patch, which you ought to be able to apply singly, or you could
> pull forward to the latest xen-unstable.
>
> That said, this server is by far the worst of all your options for demo'ing Xen!
> What are you trying to demo? There are a plethora of Xen administration
> interfaces, both web-based and not, open source and not, and I'm pretty
> sure that any one of them is better than that HTTP interface.
Attached patch actually attached this time ;-)
Ewan.
[-- Attachment #2: 12770 --]
[-- Type: text/plain, Size: 1144 bytes --]
# HG changeset patch
# User Ewan Mellor <ewan@xensource.com>
# Date 1165491904 0
# Node ID 5bf91da9797df82f228b674bcc551ff47c62c8f2
# Parent 8e035701b9ffa91caf95e01cd89579ebb1f6bd98
Remove broken call to XendDomainInfo.getSsidref(), fixing the obsolete HTTP
server.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
diff -r 8e035701b9ff -r 5bf91da9797d tools/python/xen/xend/server/SrvDomainDir.py
--- a/tools/python/xen/xend/server/SrvDomainDir.py Thu Dec 07 11:45:00 2006 +0000
+++ b/tools/python/xen/xend/server/SrvDomainDir.py Thu Dec 07 11:45:04 2006 +0000
@@ -165,10 +165,9 @@ class SrvDomainDir(SrvDir):
req.write('<ul>')
for d in domains:
req.write(
- '<li><a href="%s%s">Domain %s</a>: id = %s, memory = %d, '
- 'ssidref = %d.'
+ '<li><a href="%s%s">Domain %s</a>: id = %s, memory = %d'
% (url, d.getName(), d.getName(), d.getDomid(),
- d.getMemoryTarget(), d.getSsidref()))
+ d.getMemoryTarget()))
req.write('</li>')
req.write('</ul>')
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: xend http interface
2006-12-12 9:43 ` Ewan Mellor
2006-12-12 9:54 ` Ewan Mellor
@ 2006-12-13 4:05 ` Evan Bigall
1 sibling, 0 replies; 4+ messages in thread
From: Evan Bigall @ 2006-12-13 4:05 UTC (permalink / raw)
To: Ewan Mellor; +Cc: xen-devel
I won't be demo'ing the interface. To integrate xen with our product I
just need a very basic control interface where I can drive xen from an
external (not dom0) interface. Given that I'm going to have to rewrite
all this when the XenApi is stable I just want the simplest easiest to
program thing for now.
Thanks for the quick response with the patch, I'll test it out today.
Evan
> That said, this server is by far the worst of all your options for demo'ing Xen!
> What are you trying to demo? There are a plethora of Xen administration
> interfaces, both web-based and not, open source and not, and I'm pretty
> sure that any one of them is better than that HTTP interface.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-13 4:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <457B976C.2070801@scalent.com>
2006-12-12 2:40 ` xend http interface Evan Bigall
2006-12-12 9:43 ` Ewan Mellor
2006-12-12 9:54 ` Ewan Mellor
2006-12-13 4:05 ` Evan Bigall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.