Avoid from storing samples with empty or not numerical volumes
In some cases Ceilometer receives notifications with 'counter_volume' equal
None, for ex. from glance when empty image was created. This patch adds check
to avoid storing samples with None or not numerical volumes.
Closes-Bug: #1484117
Closes-Bug: #1508220
Change-Id: Ic4b87c05d16dba765f601ca346b198eda7c91bea
(cherry-picked from commit 804de4ef2f26e1892dc2580fe16897b14741a13a)
Reviewed: https:/ /review. openstack. org/242556 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=2ec8c7de84b d9f6806b8129aa2 c253055ad175db
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 2ec8c7de84bd9f6 806b8129aa2c253 055ad175db
Author: Rohit Jaiswal <email address hidden>
Date: Thu Oct 22 22:03:20 2015 +0000
Avoid from storing samples with empty or not numerical volumes
In some cases Ceilometer receives notifications with 'counter_volume' equal
None, for ex. from glance when empty image was created. This patch adds check
to avoid storing samples with None or not numerical volumes.
Closes-Bug: #1484117 765f601ca346b19 8eda7c91bea 92dc2580fe16897 b14741a13a)
Closes-Bug: #1508220
Change-Id: Ic4b87c05d16dba
(cherry-picked from commit 804de4ef2f26e18