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

[Xen-API] Help with python binding. my simple example


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: Joni Lee <webcokies@xxxxxxxxx>
  • Date: Mon, 31 Aug 2009 07:25:49 -0700 (PDT)
  • Delivery-date: Mon, 31 Aug 2009 07:25:51 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=heOFJFdtl20enObBTZNwx0rgKUdp1XTbu0Zskc+XBYepxCjlqRrXiDYd6BrZNTuH9UTThZyP9pctSZSboWXCuskhV9VDlATiqLb0QB60uHG04xK+sIwiTSMnWldN81H3ubcSn1tS0jUNPwCuAs0b3v/5HTOxIYJClEJ7U49R40s=;
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

Hi list,

I install xen 3.3 from apt-get xen-server install
on Ubuntu and this is my small Python script:
-------------------------------------------------------------
import sys
sys.path.append('/usr/lib/python2.6/site-packages')
from xen.xm.XenAPI import Session
session = Session('http://localhost:8006/')
session.login_with_password('root', '')
-------------------------------------------------------------
and it returns
"xen.xm.XenAPI.Failure: The method session.login_with_password is unsupported"
-------------------------------------------------------------
Please help me with the first step into binding. I only want to get the information about the resource assumption such as CPU, RAM of the doms.

Thank you very much

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

 


Rackspace

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