diff options
author | Ilya Tyaptin <ityaptin@mirantis.com> | 2013-12-17 17:55:39 +0400 |
---|---|---|
committer | Ilya Tyaptin <ityaptin@mirantis.com> | 2014-01-09 12:53:30 +0400 |
commit | cdab1401dc9cc6fdf7d079c1d139ad915a7d47da (patch) | |
tree | 126e1825a19ba4e18663d6112dc75b3cd46a1584 /tools | |
parent | e564c1e395d6ac4321912b1ad5999e236cd3c77f (diff) | |
download | ceilometer-cdab1401dc9cc6fdf7d079c1d139ad915a7d47da.tar.gz |
Fix work of udp publisher
* Signature is appended also to udp messages
* All methods for convert from sample to message are moved to publisher/utils.py
* In configs metering_secret is moved from group publisher_rpc to publisher
* Changed tests for udp publisher
Fixes: bug #1259171
Change-Id: Ic7727c69d4be6d17ff00f21e323341efd57122a7
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/make_test_data.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/make_test_data.py b/tools/make_test_data.py index 7a8e4f12..a938e234 100755 --- a/tools/make_test_data.py +++ b/tools/make_test_data.py @@ -29,6 +29,7 @@ import sys from oslo.config import cfg from ceilometer.publisher import rpc +from ceilometer.publisher import utils from ceilometer import sample from ceilometer import storage from ceilometer.openstack.common import timeutils @@ -131,9 +132,9 @@ def main(): resource_metadata={}, source='artificial', ) - data = rpc.meter_message_from_counter( + data = utils.meter_message_from_counter( c, - cfg.CONF.publisher_rpc.metering_secret) + cfg.CONF.publisher.metering_secret) conn.record_metering_data(data) n += 1 timestamp = timestamp + increment |