[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Ruby XEN interface


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: Fabian Holler <fho@xxxxxxxxxxx>
  • Date: Thu, 20 Mar 2008 15:45:52 +0100
  • Delivery-date: Thu, 20 Mar 2008 07:46:03 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

Hello,

I don't get an connection from the Ruby Xen lib to my local XEN Server :/

I'm running Debian Etch with "xen-hypervisor-3.0.3-1-i386".
I have installed the Ruby Xen lib "xen-0.1.2.1" with ruby gems.

If i try to connect to my XEN Server from Ruby, I get the error message:

"irb(main):043:0> xenhost = Xen::Host.new('localhost')
Errno::ECONNREFUSED: Connection refused - connect(2)
 [...]"

Or when I try to connect to Port 8005:

"irb(main):042:0* xenhost = Xen::Host.new('localhost',"8005")
XMLRPC::FaultException: XMLRPC::FaultException
[..]"

/var/log/xen/xend.log:

[2008-03-20 15:35:24 xend 11936] ERROR (__init__:1072) method
"session.login_with_password" is not supported
Traceback (most recent call last):
  File "/usr/lib/xen-3.0.3-1/lib/python/xen/util/xmlrpclib2.py", line
162, in _marshaled_dispatch
    response = self._dispatch(method, params)
  File "SimpleXMLRPCServer.py", line 408, in _dispatch
    raise Exception('method "%s" is not supported' % method)
Exception: method "session.login_with_password" is not supported
[2008-03-20 15:40:54 xend 11936] ERROR (__init__:1072) method
"session.login_with_password" is not supported
Traceback (most recent call last):
  File "/usr/lib/xen-3.0.3-1/lib/python/xen/util/xmlrpclib2.py", line
162, in _marshaled_dispatch
    response = self._dispatch(method, params)
  File "SimpleXMLRPCServer.py", line 408, in _dispatch
    raise Exception('method "%s" is not supported' % method)
Exception: method "session.login_with_password" is not supported


My xend-config.sxp:
debian:/etc/xen-tools# grep ^[^#] /etc/xen/xend-config.sxp
(xend-http-server no)
(xend-unix-server no)
(xend-tcp-xmlrpc-server yes)
(xend-unix-xmlrpc-server yes)
(network-script 'network-bridge netdev=eth0')
(vif-script vif-bridge)
(dom0-min-mem 196)
(dom0-cpus 0)


What could be wrong?
The ""session.login_with_password" is not supported" looks like it
doesn't work with my XEN version? :/
Maybe I need an newer XEN Version for the ruby lib?

best regards

Fabian


-- 
--
-
- inmedias.it - linux und service
-
- Infrastruktur / Groupware / Terminalserver / Computertelefonie
- Red Hat Advanced Business Partner / Zarafa Technology Partner /
- NX Value Partner / Asterisk
-
--
- inmedias.it GmbH, Lippmannstraße 71, 22769 Hamburg
- Fon://+49-40-41436-0 / Fax://+49-40-41436-414
- http://www.inmedias.it
- Amtsgericht Hamburg HRB 69814 / UStID DE812744902
- Geschäftsführer Dipl. Inform. FH Carsten Brunke
--

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.