← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1569875] Re: the interval between two neutron metering reports are not correct

 

Reviewed:  https://review.openstack.org/306348
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=fe1b52634aaf850bba99cdb0c41b5f30851a3e75
Submitter: Jenkins
Branch:    master

commit fe1b52634aaf850bba99cdb0c41b5f30851a3e75
Author: Ming Shuang Xian <xianms@xxxxxxxxxx>
Date:   Fri Apr 15 18:16:59 2016 +0800

    Correct the interval between two reports
    
    Currently the interval between two reports is wrong. For example, with
    below setting in file metering_agent.ini
    measure_interval = 30
    report_interval = 600
    
    The Ceilometer will get the reports from meter-agent per 630 seconds. The
    reason is the test condition is wrong in the code, we should use >=
    instead of >
    
    add a unit test
    neutron.tests.unit.services.metering.agents.test_metering_agent.
    TestMeteringOperations.test_notification_report_interval
    to test the report interval
    
    Change-Id: Id5820f845d20bbe5fb5a9b8b9695499aa36c5d9e
    Closes-Bug: #1569875


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1569875

Title:
  the interval between two neutron metering reports are not  correct

Status in neutron:
  Fix Released

Bug description:
  the interval between two neutron metering reports are not  correct.
  For example, we have below configuration in file metering_agent.ini

  # Interval between two metering measures
  measure_interval = 30

  # Interval between two metering reports
  report_interval = 600

  then go to the ceilometer to dump all neutron metering samples, the
  reports interval will be 630 seconds. Below are some dump result:

  ceilometer sample-list -m bandwidth -q 'resource_id=2cd7f8be-8dee-4c9c-9e58-6975fe83944a'
  +--------------------------------------+-----------+-------+--------+------+----------------------------+
  | Resource ID                          | Name      | Type  | Volume | Unit | Timestamp                  |
  +--------------------------------------+-----------+-------+--------+------+----------------------------+
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T12:32:42.353000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T12:22:12.416000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T12:11:42.415000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T12:01:12.396000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T11:50:42.446000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T11:40:12.355000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T11:29:42.361000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T11:19:12.377000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T11:08:42.353000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T10:58:12.389000 |
  | 2cd7f8be-8dee-4c9c-9e58-6975fe83944a | bandwidth | delta | 0.0    | B    | 2016-04-13T10:47:42.409000 |

  From above ceilometer result we can know the actual report interval is
  report_interval+measure_interval

  This issue is found in all openstack version

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1569875/+subscriptions


References