invalid/unhandled type stored in mongo meters

Bug #1483180 reported by Igor Degtiarov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
High
Igor Degtiarov

Bug Description

In upstream we have a bug https://bugs.launchpad.net/ceilometer/+bug/1474031 that also affected fuel.

In some cases MongoDB and HBase return integer values from samples and statistics, but wsme expected a float type.

So we need to cast Int types to float after data is taken from database.

Changed in mos:
milestone: none → 7.0
assignee: nobody → Igor Degtiarov (idegtiarov)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/ceilometer (openstack-ci/fuel-7.0/2015.1.0)

Fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Igor Degtiarov <email address hidden>
Review: https://review.fuel-infra.org/10240

Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :

This patch should protect users from possible API failures

Changed in mos:
importance: Undecided → High
status: New → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/ceilometer (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/10240
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: 88d6c57ae65ec9e856ddd331f486e3f8635f4f54
Author: Igor Degtiarov <email address hidden>
Date: Mon Aug 10 09:45:42 2015

Cast Int64 values to float

Currently MongoDB and HBase return integer values from samples and
statistics, but wsme expected a float type.
In this CR MongoDB and HBase statistics and sample values cast to float.

Closes-Bug: #1483180
Change-Id: Id6602aa8d47589302c97fece753c64dbe950f98b
(cherry-picked from I97ccf8f8cd10e065ebd80ccbe1a688bf8d722b2f)

Revision history for this message
Nadya Privalova (nprivalova) wrote :

The commit to be reverted by https://review.fuel-infra.org/#/c/10343/ . The plan is to fix regression in upstream and commit two fixes again.

Revision history for this message
Ilya Tyaptin (ityaptin) wrote :

Described in the original bug behavior is looked only in MongoDB 3.+. Agree the fact what MOS Ceilometer 7.0 installs MongoDB 2.6.9 this bug doesn't affect MOS 7.0.
It also correct for external MongoDB, because installed pymongo version (2.7.2) isn't compatible with MongoDB 3+ and we can't use higher than 2.6.9 db version in this case.

So, I suggest to move this bug into "Invalid" state.

Changed in mos:
status: In Progress → Invalid
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/ceilometer (openstack-ci/fuel-8.0/liberty)

Fix proposed to branch: openstack-ci/fuel-8.0/liberty
Change author: Igor Degtiarov <email address hidden>
Review: https://review.fuel-infra.org/13442

Changed in mos:
status: Invalid → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/ceilometer (openstack-ci/fuel-8.0/liberty)

Change abandoned by Ilya Tyaptin <email address hidden> on branch: openstack-ci/fuel-8.0/liberty
Review: https://review.fuel-infra.org/13442
Reason: it's backport from liberty https://review.openstack.org/#/c/207567/

Changed in mos:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.