Currently statistics requests fail with type errors.
It causes by the fact that pymongo returns bson.Int64
instead of float or int for big nums. It affects a `cpu`
meter usually.
Change-Id: I744a9f79a4bbc3b2ecdd73c126b0859f3f8a733c
Closes-bug: #1532661
(cherry picked from commit 1d73a6f12f123743e51674b5dbc876bf3d600cd8)
Reviewed: https:/ /review. openstack. org/304223 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=af3cb7b5245 a572763501502ba 33b21a36a26492
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit af3cb7b5245a572 763501502ba33b2 1a36a26492
Author: Ilya Tyaptin <email address hidden>
Date: Thu Mar 3 20:12:06 2016 +0300
Cast Int64 values to int, float in statistics
Currently statistics requests fail with type errors.
It causes by the fact that pymongo returns bson.Int64
instead of float or int for big nums. It affects a `cpu`
meter usually.
Change-Id: I744a9f79a4bbc3 b2ecdd73c126b08 59f3f8a733c 3e51674b5dbc876 bf3d600cd8)
Closes-bug: #1532661
(cherry picked from commit 1d73a6f12f12374