[openstack-dev] [vitrage] aodh datasource properties

Yujun Zhang zhangyujun at gmail.com
Thu Aug 11 09:36:14 UTC 2016


It seems the aodh properties definition in vitrage [1] is not consistent
with the latest ceilometer spec [2].

The response_id is now encapsulated in `traits` and we must prepend the
scope in query to make it a valid alarm condition, e.g. `query: [{u'field':
u'traits.resource_id', u'type': u'string', u'value': u'...'`

But in vitrage, the resource id is parsed from key 'resource_id' [3] and
always get an empty result.

Could anybody confirm whether this is a bug or not? Tracked in
https://bugs.launchpad.net/vitrage/+bug/1612152

- [1]
https://github.com/openstack/vitrage/blob/master/vitrage/datasources/aodh/properties.py#L27
- [2]
https://github.com/openstack/ceilometer/blob/master/etc/ceilometer/event_definitions.yaml#L76
- [3]
https://github.com/openstack/vitrage/blob/master/vitrage/datasources/aodh/driver.py#L66
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160811/7ebf1855/attachment.html>


More information about the OpenStack-dev mailing list