[Bug 1623144] Re: Not collecting ceilometer volume data
OpenStack Infra
1623144 at bugs.launchpad.net
Fri Oct 7 16:24:50 UTC 2016
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 <jorge.niedbalski at canonical.com>
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 <jorge.niedbalski at canonical.com>
** Changed in: cinder (Juju Charms Collection)
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to cinder in Juju Charms Collection.
Matching subscriptions: charm-bugs
https://bugs.launchpad.net/bugs/1623144
Title:
Not collecting ceilometer volume data
Status in cinder package in Juju Charms Collection:
Fix Committed
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 at 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 at 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",
To manage notifications about this bug go to:
https://bugs.launchpad.net/charms/+source/cinder/+bug/1623144/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list