Comment 1 for bug 1491224

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/219552
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=d054c7c7407f5f20e6b01f151529bf44fe8ef577
Submitter: Jenkins
Branch: master

commit d054c7c7407f5f20e6b01f151529bf44fe8ef577
Author: xiangjun li <email address hidden>
Date: Mon Sep 14 13:14:07 2015 +0800

    Add attribute 'state' to meter metadata when source is polling

    For now, instance attribute 'state' is stored to
    metadata of meter which was generated from
    notifications. But when meter was generated from
    instance polling, 'state' is not stored to
    metadata of meter even this attribute could be
    retrieved from polling action. Because the meter
    generated from notifications or polling update
    the resource information in database in cycles,
    the resource show API may return the instance
    metadata with different style(sometimes the
    returned metadata contains 'state', but at other
    times, the 'state' is disappeared in it), which
    may confuse us in some situations. In this patch,
    'state' has been added to the meter metadata if
    the meter was generated from polling source.

    Closes-Bug: #1491224

    Change-Id: Ie869672901b1d13f9444d0ca0e7d849f5e4ffc4b