[Openstack] Enabling volume usage audit - cinder
Tobias Urdin
tobias.urdin at crystone.com
Tue Jun 7 08:51:25 UTC 2016
You must add a cron job for the cinder-volume-usage-audit, like this.
root at cinder:~# cat /etc/cron.d/cinder-volume-usage-audit
*/30 * * * * root (PYTHONIOENCODING=utf-8 /usr/bin/cinder-volume-usage-audit 1>> /var/log/cinder/cinder-volume-usage-audit-`date +\%Y\%m\%d`.log 2>&1)
That will run each 30 minutes.
Best regards
On 06/07/2016 10:04 AM, murali wrote:
Hello guys,
I am using Devstack Liberty version.
I need to use the volume usage audit option which is available in cinder.
I can be able to succesfully execute the cinder-volume-usage-audit command in my commandline.
I need to make it run periodically.
So that I can be able to see that adding a config entry will work.
I have added the entry in config file as follows:
volume_usage_audit_period=hour
But it seems not generating the report. I have added the entry in to config file and then restarted cinder services.
Is there anything else I am missing.
Someone let me know the way how we can achieve this ?
Any comments or suggestions?
Regards,
Murali.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160607/b26539d5/attachment.html>
More information about the Openstack
mailing list