From 9899b6f12f5072787ac72a1a64d4a712db222cb3 Mon Sep 17 00:00:00 2001 From: Samta Date: Wed, 8 Oct 2014 16:27:12 +0530 Subject: Fix recording failure for system pollster The parameter "cumulative" was interpreted as a list and could not be recognized as a valid Type for SQL query hence failing to record the data for the pollster. The presence of ',' operator in the pollster class after the term CUMULATIVE caused it to be treated as a list This is corrected to interpret the field as a string which will be successfully recorded to the meter database. Change-Id: I10a69134a7f0c42a3e6c0d9bb7568e8d8fd2a932 Closes-Bug: 1378742 (cherry picked from commit f8f63d4b15ce68797d6e16943bd85efb19a77752) --- ceilometer/hardware/pollsters/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceilometer/hardware/pollsters/system.py b/ceilometer/hardware/pollsters/system.py index 9063a9d2..2cfc696d 100644 --- a/ceilometer/hardware/pollsters/system.py +++ b/ceilometer/hardware/pollsters/system.py @@ -40,11 +40,11 @@ class SystemCpuIdlePollster(_SystemBase): class SystemIORawSentPollster(_SystemBase): IDENTIFIER = 'system_stats.io.outgoing.blocks' - TYPE = sample.TYPE_CUMULATIVE, + TYPE = sample.TYPE_CUMULATIVE UNIT = 'blocks' class SystemIORawReceivedPollster(_SystemBase): IDENTIFIER = 'system_stats.io.incoming.blocks' - TYPE = sample.TYPE_CUMULATIVE, + TYPE = sample.TYPE_CUMULATIVE UNIT = 'blocks' -- cgit v1.2.1