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

xen-users

[Top] [All Lists]

[Xen-users] Question about XenAPI

To: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Question about XenAPI
From: "pine_tan" <pine_tan@xxxxxxx>
Date: Thu, 3 Apr 2008 16:59:17 +0800
Delivery-date: 2008年4月03日 02:00:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Now I am tring to do some works about Xen management with Xen API. My Xen 
version is v3.1.0.
Following is part of my /etc/xen/xen-config.sxp about xmlrpcserver
(xend-tcp-xmlrpc-server yes)
(xend-unix-xmlrpc-server no)
(xend-tcp-xmlrpc-server-address '')
(xend-tcp-xmlrpc-server-port 8006)
I can connect my xen xmlrpcserver with 8006 port with Python code as follows:
...
from xen.util.xmlrpcclient import ServerProxy
mySP = ServerProxy(URLOfMyServerAndPort)
print mySP.system.listMethods()
...
It gives me a api list as "xend.domain.*" , "xend.node.*" and others. Yes, it 
is OK.
But where is the other APIs such as "VM.get_platform"?
I insert a log.info into XMLRPCServer class's run function of 
/usr/lib/python/xen/xend/server/XMLRPCServer.py as follows:
# Register Xen API Function
....
for meth_name in dir(self.xenapi):
...
if callable(meth) and hasattr(meth, 'api'):
log.info("xmlrpc try to reg. %s as %s",(meth_name, getattr(meth,'api')))
self.server.register_function(meth, getattr(meth,'api'))
...
After I restart xend using "service xend restart", I can find some api such as 
"VM.get_platform" in /var/log/xen/xend.log file.
Then what is the matter? Why my server does no has those APIs?
Another question, how can I config username/passwd for xmlrpc server? 
Thanks a lot!
pine_tan 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-users] understanding networking - xen 3.1 and CentOS 5.1 , Götz Reinicke
Next by Date: [Xen-devel] GPL PV Windows drivers and non-english language version of Windows , James Harper
Previous by Thread: [Xen-users] Question about XenAPI , pine_tan
Next by Thread: Re: [Xen-users] Sup guys, I'm a Xen noob, I have plenty of questions... , bbmailing
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /