cinder/bin
Ollie Leahy d09b7c78b3 Allow user to specify audit period.
The script 'cinder-volume-usage-audit' is generally run by cron to
generate volume and snapshot exists audit notifications that can be
consumed by ceilometer or other auditing systems. In this mode it sends
notifications for volumes that existed in the 'last completed audit
period' as calculated by cinder.utils.last_completed_audit_period()

However, it may sometimes be necessary to be able to send notifications
for audit periods other than than the last completed audit period. For
example if the host running the audit script was down for a period.

This patch provides three optional command line parameters to the script
cinder-volume-usage-audit. If no parameters are provided then the
operation of the script is unchanged. If parameters are provided then
they have the following effects:

--start_time specifies a date and time that is used in place of the
start of the last completed audit period.

--end_time specifies a date and time that is used in place of the end of
the last completed audit period.

--send_actions As well as sending exits notifications the script will
send any create or delete notifications that would have been sent during
the specified audit period.

Closes-Bug: #1259147

Change-Id: I0cfe963ea59d811ba4bac0bd3de31382a088b8c8
2014-01-17 09:25:50 +00:00
..
cinder-all Remove vim header 2013-12-30 18:53:02 -06:00
cinder-api Remove vim header 2013-12-30 18:53:02 -06:00
cinder-backup Fix and enable gating on F401 2013-12-20 15:01:23 +01:00
cinder-clear-rabbit-queues Remove vim header 2013-12-30 18:53:02 -06:00
cinder-manage Merge "Output Strings of bin/*.py should support i18n" 2013-12-31 20:13:57 +00:00
cinder-rootwrap Merge "Output Strings of bin/*.py should support i18n" 2013-12-31 20:13:57 +00:00
cinder-rpc-zmq-receiver Remove vim header 2013-12-30 18:53:02 -06:00
cinder-rtstool Update hacking to hacking>=0.8.0,<0.9 2013-12-03 15:24:19 +02:00
cinder-scheduler Remove vim header 2013-12-30 18:53:02 -06:00
cinder-volume Remove vim header 2013-12-30 18:53:02 -06:00
cinder-volume-usage-audit Allow user to specify audit period. 2014-01-17 09:25:50 +00:00