[ovirt-devel] cpuTune stats overflowing xmlrpc

Adam Litke alitke at redhat.com
Thu Jun 19 14:08:31 UTC 2014


Hi Kobi,

I have found a problem with your vdsm implementation of the cpuTune
stats.  When using vdsClient I see the following error:

sudo vdsClient -s 0 getVmStats 359a9045-34e2-40d2-ba5f-ba614421a624
Traceback (most recent call last):
  File "/usr/share/vdsm/vdsClient.py", line 2668, in <module>
    code, message = commands[command][0](commandArgs)
  File "/usr/share/vdsm/vdsClient.py", line 459, in do_getVmStats
    return self.ExecAndExit(self.s.getVmStats(vmId))
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1297, in
single_request
    return self.parse_response(response)
  File "/usr/lib64/python2.7/site-packages/vdsm/vdscli.py", line 41,
in wrapped_parse_response
    return old_parse_response(*args, **kwargs)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1473, in
parse_response
    return u.close()
  File "/usr/lib64/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: "<type 'exceptions.OverflowError'>:long int exceeds
XML-RPC limits">

You need to convert Long ints to strings to avoid overflows.

-- 
Adam Litke



More information about the Devel mailing list