statistics error: Wrong type. Expected '<type 'float'>'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
New
|
Undecided
|
Unassigned | ||
python-ceilometerclient |
Invalid
|
Undecided
|
Unassigned |
Bug Description
While trying to get statistics for 'hardware.
ceilometer statistics -m hardware.
Invalid input for field/attribute sum. Value: '181871890384'. Wrong type. Expected '<type 'float'>', got '<class 'bson.int64.
And with '--debug':
ceilometer --debug statistics -m hardware.
DEBUG (session) REQ: curl -g -i -X GET http://
INFO (connectionpool) Starting new HTTP connection (1): 192.0.2.6
DEBUG (connectionpool) "GET /v2.0 HTTP/1.1" 200 335
DEBUG (session) RESP: [200] date: Fri, 04 Mar 2016 09:46:57 GMT vary: X-Auth-Token content-length: 335 content-type: application/json x-openstack-
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
f": "http://
DEBUG (v2) Making authentication request to http://
DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 4243
DEBUG (session) REQ: curl -g -i -X GET http://
INFO (connectionpool) Starting new HTTP connection (1): 192.0.2.6
DEBUG (connectionpool) "GET /v2.0 HTTP/1.1" 200 335
DEBUG (session) RESP: [200] date: Fri, 04 Mar 2016 09:46:57 GMT vary: X-Auth-Token content-length: 335 content-type: application/json x-openstack-
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
f": "http://
DEBUG (v2) Making authentication request to http://
DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 4243
DEBUG (client) REQ: curl -g -i -X 'GET' 'http://
1}3a9a7b7e428dd
INFO (connectionpool) Starting new HTTP connection (1): 192.0.2.6
DEBUG (connectionpool) "GET /v2/meters/
DEBUG (client) RESP: [400] {'date': 'Fri, 04 Mar 2016 09:47:01 GMT', 'content-length': '213', 'content-type': 'application/json', 'x-openstack-
Werkzeug/0.9.1 Python/2.7.5'}
DEBUG (client) RESP BODY: {"error_message": {"debuginfo": null, "faultcode": "Client", "faultstring": "Invalid input for field/attribute sum. Value: '181571884992'. Wrong type. Expected '<type 'float'>', got '<c
lass 'bson.int64.
DEBUG (client) Request returned failure status: 400
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
CeilometerS
File "/usr/lib/
args.
File "/usr/lib/
statistics = cc.statistics.
File "/usr/lib/
q, p))
File "/usr/lib/
resp = self.api.get(url)
File "/usr/lib/
return self.client_
File "/usr/lib/
self, method, url, **kwargs)
File "/usr/lib/
method, self.concat_
File "/usr/lib/
raise exceptions.
ceilometerclien
(Request-ID: req-e4f9974b-
Packages: python-
Regards,
Yurii
Changed in python-ceilometerclient: | |
status: | New → Invalid |
Excerpt from api.log: Int64'> ' format_exception /usr/lib/ python2. 7/site- packages/ wsme/api. py:221 hardware. disk.size. used/statistics ?aggregate. func=sum HTTP/1.1" 400 -
2016-03-04 09:56:07.972 11306 DEBUG wsme.api [-] Client-side error: Invalid input for field/attribute sum. Value: '182247054552'. Wrong type. Expected '<type 'float'>', got '<class 'bson.int64.
2016-03-04 09:56:07.974 11306 INFO werkzeug [-] 192.0.2.13 - - [04/Mar/2016 09:56:07] "GET /v2/meters/