Not collecting ceilometer volume data

Bug #1623144 reported by Jorge Niedbalski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cinder (Juju Charms Collection)
Fix Released
Medium
Jorge Niedbalski

Bug Description

[Environment]

Trusty-Mitaka
Charms 16.07

[Description]

Some installations require to gather usage metrics from volumes.

By default those metrics are not enabled:

buntu@niedbalski-sec-bastion:~/openstack-charm-testing$ curl -H X-Auth-Token:$TOKEN http://$CEILOMETER:8777/v2/meters | python -m json.tool|grep -i vol
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 2902 100 2902 0 0 133k 0 --:--:-- --:--:-- --:--:-- 134k

In order to enable this, it is required to set some configuration variables in cinder.conf

control_exchange = cinder
volume_usage_audit_period = hour

AND enable the messaging version 2 notifications:

[oslo_messaging_notifications]
driver = messagingv2

Also, it is required to set a recurring cronjob for gathering the data:

0 * * * * (PYTHONIOENCODING=utf-8 /usr/bin/cinder-volume-usage-audit 1>> /var/log/cinder/cinder_audit_hourly_`date +\%Y\%m\%d`.log 2>&1)

After enabling these configuration directives:

ubuntu@niedbalski-sec-bastion:~/openstack-charm-testing$ curl -H X-Auth-Token:$TOKEN http://$CEILOMETER:8777/v2/meters | python -m json.tool| grep vol
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 8582 100 8582 0 0 38184 0 --:--:-- --:--:-- --:--:-- 38312
        "name": "volume.size",
        "name": "volume",
        "unit": "volume",
        "name": "volume.exists",
        "unit": "volume",
        "name": "volume.size",
        "name": "volume",
        "unit": "volume",
        "name": "volume.exists",
        "unit": "volume",
        "name": "volume.size",
        "name": "volume",
        "unit": "volume",
        "name": "volume.exists",
        "unit": "volume",

Tags: sts
Changed in cinder (Juju Charms Collection):
assignee: nobody → Jorge Niedbalski (niedbalski)
tags: added: sts
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/370325

Changed in cinder (Juju Charms Collection):
status: New → In Progress
Revision history for this message
Jorge Niedbalski (niedbalski) wrote :
Changed in cinder (Juju Charms Collection):
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder (master)

Reviewed: https://review.openstack.org/370325
Committed: https://git.openstack.org/cgit/openstack/charm-cinder/commit/?id=07ae3acbb49368c58b0ad3d119ff21db39fb31c2
Submitter: Jenkins
Branch: master

commit 07ae3acbb49368c58b0ad3d119ff21db39fb31c2
Author: Jorge Niedbalski <email address hidden>
Date: Wed Sep 14 13:25:26 2016 -0300

    Adds volume-usage-audit-period config directive >= kilo.

    This change adds the config directive called
    volume-usage-audit-period for versions >= kilo.

    Also, According to the doc change I90dff1b5c2a7dd2943cfa7ff25bb63c08eb7986d,
    messagingv2 should be the default for anything > Icehouse.

    So, this change also sets the following configuration section for
    versions >= mitaka.

    [oslo_messaging_notifications]
    driver = messagingv2

    This change adds a specific configuration context that installs
    a crontab entry for running the cinder-volume-usage-audit recurrently.

    Change-Id: I0056edaac55210a1a1f509ec908ae61c0ea887df
    Closes-Bug: #1623144
    Signed-off-by: Jorge Niedbalski <email address hidden>

Changed in cinder (Juju Charms Collection):
status: In Progress → Fix Committed
Changed in cinder (Juju Charms Collection):
milestone: none → 16.10
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.