ceilometer/ceilometer/tests/ipmi/pollsters
Chris Dent 8323cfe92a Handle poorly formed individual sensor readings
ipmitool returns a series of multiple readings per run. Some of
these readings may be of a form that parser code cannot handle. The
desired behavior in this case is for the single reading to be
dropped and for parsing to continue. This change ensures that
behavior by continuing through the loop instead of allowing
exceptions to cause the loop to exit.

Tests have been added which verify the correct behavior.

Note that though there was an opportunity to log each skipped
reading this would lead to a very large number of log messages as
many or even most samples from ipmitool are not parsed.

Change-Id: I6a3193d5a6e12c69ca5c548e5fb58d8bc9646348
Closes-Bug: #1381600
2014-10-15 17:22:41 +01:00
..
__init__.py Add IPMI pollster 2014-09-13 16:36:40 +08:00
base.py Handle poorly formed individual sensor readings 2014-10-15 17:22:41 +01:00
test_node.py Include a 'node' key and value in ipmi metadata 2014-10-06 20:10:39 +01:00
test_sensor.py Handle poorly formed individual sensor readings 2014-10-15 17:22:41 +01:00