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

Re: [Xen-API] Xen API connection with python and xml-rpc int limit


  • To: xen-api@xxxxxxxxxxxxx
  • From: George Shuklin <george.shuklin@xxxxxxxxx>
  • Date: Wed, 02 Jan 2013 08:04:29 +0400
  • Delivery-date: Wed, 02 Jan 2013 04:04:44 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

Not sure what wrong, but we change VM memory limits over 4GiB with XenAPI without messing up with hacks...


On 28.12.2012 14:08, Koldo Aingeru Marcos FernÃndez wrote:
Hello all,

I'm trying to change the memory limits using the python implementation of the xenapi and I'm having trouble because the value in the api is a 64bit int and the xml-rpc specifies ints as 32 bit. ÂSo I'm getting this error (both in MacOSX and CentOS):

 File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xmlrpclib.py", line 710, in dump_int
  raise OverflowError, "int exceeds XML-RPC limits"
OverflowError: int exceeds XML-RPC limits

And this is the code in xmlrpclib.py:

  def dump_int(self, value, write):
    # in case ints are > 32 bits
    if value > MAXINT or value < MININT:
      raise OverflowError, "int exceeds XML-RPC limits"

Â
Is there any workaround for this? I would like to avoid both doing a ssh connection to the host or modifying xmlrpclib.py.

Thanks!

========================================
Koldo Aingeru Marcos Fdez.Â
Sarenet S.A.
Tel: 944209470 - Fax: 944209465
Parque TecnolÃgico, Edificio 103
48170 Zamudio
Bizkaia
========================================






_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/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®.