2013-12-09 13:56:14 |
Nadya Privalova |
description |
UDP and RPC publishers have different message's structures but collector, dispatcher and storages are designed for messages from rpc publisher and we have troubles with collecting messages with udp publisher.
Differences:
1. Udp messages have not message_signature, which is verified in database dispather. So all messages are discarded.
2013-12-09 12:57:27.524 3310 WARNING ceilometer.dispatcher.database [-] message signature invalid, discarding message: {'counter_name': 'image', 'user_id': None, 'name': 'image', 'resource_id': '44581e2b-4d44-43b5-8f75-67bdd9979aed', 'timestamp': '2013-12-09T12:57:27Z', 'id': '74cb65e8-60d1-11e3-9f77-fa163eebc8c9', 'volume': 1, 'source': 'openstack', 'counter_unit': 'image', 'counter_volume': 1, 'project_id': 'c0f3f25c35b745959df48403e46ffe83', 'type': 'gauge', 'resource_metadata': {'status': 'active', 'name': 'cirros-0.3.1-x86_64-uec-kernel', 'deleted': False, 'container_format': 'aki', 'created_at': '2013-12-06T13:32:30', 'disk_format': 'aki', 'updated_at': '2013-12-06T13:32:30', 'properties': {}, 'protected': False, 'checksum': 'c352f4e7121c6eae958bc1570324f17e', 'min_disk': 0, 'is_public': True, 'deleted_at': None, 'min_ram': 0, 'size': 4955792}, 'unit': 'image', 'counter_type': 'gauge'}
2. Each message is supposed to be modified before dispatcher starts to work:
2.1 add 'counter_' to specified key names,
2.2 id is changed to message_id
In case of UDP 2.1 took place in collector (vs publisher/rpc.py file for RPC) and 2.2 is not the truth for UDP messages at all so this results with error from storage |
UDP and RPC publishers have different message's structures but collector, dispatcher and storages are designed for messages from rpc publisher and we have troubles with collecting messages with udp publisher.
Differences:
1. Udp messages have not message_signature, which is verified in database dispather. So all messages are discarded.
2013-12-09 12:57:27.524 3310 WARNING ceilometer.dispatcher.database [-] message signature invalid, discarding message: {'counter_name': 'image', 'user_id': None, 'name': 'image', 'resource_id': '44581e2b-4d44-43b5-8f75-67bdd9979aed', 'timestamp': '2013-12-09T12:57:27Z', 'id': '74cb65e8-60d1-11e3-9f77-fa163eebc8c9', 'volume': 1, 'source': 'openstack', 'counter_unit': 'image', 'counter_volume': 1, 'project_id': 'c0f3f25c35b745959df48403e46ffe83', 'type': 'gauge', 'resource_metadata': {'status': 'active', 'name': 'cirros-0.3.1-x86_64-uec-kernel', 'deleted': False, 'container_format': 'aki', 'created_at': '2013-12-06T13:32:30', 'disk_format': 'aki', 'updated_at': '2013-12-06T13:32:30', 'properties': {}, 'protected': False, 'checksum': 'c352f4e7121c6eae958bc1570324f17e', 'min_disk': 0, 'is_public': True, 'deleted_at': None, 'min_ram': 0, 'size': 4955792}, 'unit': 'image', 'counter_type': 'gauge'}
2. Each message is supposed to be modified before dispatcher starts to work:
2.1 add 'counter_' to specified key names,
2.2 id is changed to message_id
In case of UDP 2.1 take place in collector (vs publisher/rpc.py file for RPC) and 2.2 is not the truth for UDP messages at all so this results with error from storage |
|