diff options
author | Samta <srangare@mvista.com> | 2014-10-08 16:27:12 +0530 |
---|---|---|
committer | Eoghan Glynn <eglynn@redhat.com> | 2014-10-14 12:56:55 +0100 |
commit | 9899b6f12f5072787ac72a1a64d4a712db222cb3 (patch) | |
tree | 73493b096afc310c56e18475e5dd6ade8dda71c6 | |
parent | 5b966ba778ad9e87a41fc639a64e68f84d6ca8e2 (diff) | |
download | ceilometer-9899b6f12f5072787ac72a1a64d4a712db222cb3.tar.gz |
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)
-rw-r--r-- | ceilometer/hardware/pollsters/system.py | 4 |
1 files 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' |