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-api

[Xen-API] Ruby XEN interface

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Ruby XEN interface
From: Fabian Holler <fho@xxxxxxxxxxx>
Date: Thu, 20 Mar 2008 15:45:52 +0100
Delivery-date: Thu, 20 Mar 2008 07:46:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Organization: inmedias.it GmbH
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: IceDove 1.5.0.14pre (X11/20080208)
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] Ruby XEN interface, Fabian Holler <=